[PVE-User] [v4.1] Ceph Server and systemd

Eneko Lacunza elacunza at binovo.es
Mon Jan 25 18:47:16 CET 2016


Hi Alexandre,

El 25/01/16 a las 18:34, Alexandre DERUMIER escribió:
>
>>> root at camelot:~# systemctl start ceph-osd at 8
>>> Failed to start ceph-osd at 8.service: Unit ceph-osd at 8.service failed to
>>> load: No such file or directory.
> systemd unit file are supported since infernalis only.
I was missing this, thanks for pointing it out.
> /etc/init.d/ceph start osd.8
>
> is the correct command before infernalis
>
>>> root at camelot:~# systemctl status ceph-osd at 8
>>>ceph-osd at 8.service
>>> Loaded: not-found (Reason: No such file or directory)
>>> Active: inactive (dead)
> not sure you'll be able to have status with systemctl without unit file.
>
> are you sure that it was not started by /etc/init.d/ceph start osd.8 ?
>
> /etc/init.d/ceph status osd.8 should give you status
>

Quite sure, look at the output in my desktop terminal (I've kept it open 
since this morning):

---
root at camelot:~# /etc/init.d/ceph start osd.8
[ ok ] Starting ceph (via systemctl): ceph.service.
root at camelot:~# systemctl status ceph
● ceph.service - LSB: Start Ceph distributed file system daemons at boot 
time
    Loaded: loaded (/etc/init.d/ceph)
    Active: active (exited) since lun 2016-01-11 17:19:47 CET; 1 weeks 6 
days ago
   Process: 2777 ExecStart=/etc/init.d/ceph start (code=exited, 
status=0/SUCCESS)

ene 11 17:19:46 camelot ceph[2777]: libust[3326/3326]: Warning: HOME 
environment variable not set. Disabling LTTng-UST per-user tracing. (in 
setup_local_apps() at lttng-ust-comm.c:375)
ene 11 17:19:46 camelot ceph[2777]: create-or-move updated item name 
'osd.1' weight 0.91 at location {host=camelot,root=default} to crush map
ene 11 17:19:46 camelot ceph[2777]: Starting Ceph osd.1 on camelot...
ene 11 17:19:46 camelot ceph[2777]: Running as unit run-3368.service.
ene 11 17:19:46 camelot ceph[2777]: libust[3409/3409]: Warning: HOME 
environment variable not set. Disabling LTTng-UST per-user tracing. (in 
setup_local_apps() at lttng-ust-comm.c:375)
ene 11 17:19:46 camelot ceph[2777]: === osd.8 ===
ene 11 17:19:47 camelot ceph[2777]: libust[3566/3566]: Warning: HOME 
environment variable not set. Disabling LTTng-UST per-user tracing. (in 
setup_local_apps() at lttng-ust-comm.c:375)
ene 11 17:19:47 camelot ceph[2777]: create-or-move updated item name 
'osd.8' weight 0.91 at location {host=camelot,root=default} to crush map
ene 11 17:19:47 camelot ceph[2777]: Starting Ceph osd.8 on camelot...
ene 11 17:19:47 camelot ceph[2777]: Running as unit run-3609.service.
root at camelot:~# ceph osd tree
ID WEIGHT  TYPE NAME             UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 8.18990 root default
-2 2.72997     host camelot
  1 0.90999         osd.1              up  1.00000          1.00000
  3 0.90999         osd.3              up  1.00000          1.00000
  8 0.90999         osd.8            down        0          1.00000
-3 2.72997     host butroe
  0 0.90999         osd.0              up  1.00000          1.00000
  2 0.90999         osd.2              up  1.00000          1.00000
  4 0.90999         osd.4              up  1.00000          1.00000
-4       0     host txoritokieta
-5 2.72997     host sanmarko
  7 0.90999         osd.7              up  1.00000          1.00000
  6 0.90999         osd.6              up  1.00000          1.00000
  5 0.90999         osd.5              up  1.00000          1.00000

---

This status command:
/etc/init.d/ceph status osd.8
is yet reporting the osd.8 init from January 11th (3.4->4.1 upgrade 
day), the same as above. It should report this morning's start, I guess :)

This is our office's cluster, I can do non-destructive tests if that's 
valuable.

Thanks a lot
Eneko

-- 
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
       943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
www.binovo.es




More information about the pve-user mailing list