Project

General

Profile

Bug #6592

Updated by Loïc Dachary over 10 years ago

After *ceph-deploy create osd* the osd fails to start because the journal can't be found 
 <pre> 
 root@bm0301:~# ls -l /var/lib/ceph/osd/ceph-0/journal 
 lrwxrwxrwx 1 root root 58 Oct 18 16:13 /var/lib/ceph/osd/ceph-0/journal -> /dev/disk/by-partuuid/763ec75e-ae9b-4729-84c9-2dfcb7f0697f 
 root@bm0301:~# ls -l /dev/disk/by-partuuid/763ec75e-ae9b-4729-84c9-2dfcb7f0697f 
 ls: cannot access /dev/disk/by-partuuid/763ec75e-ae9b-4729-84c9-2dfcb7f0697f: No such file or directory 
 </pre> 
 It is because it's missing from */dev/disk/by-partuuid* : 
 <pre> 
 root@ops-bm0301:/dev/disk# ls -l by-partuuid             
 total 0 
 lrwxrwxrwx 1 root root 18 Oct 18 16:14 0aad873e-048a-4501-b0d6-fe8619cc7a07 -> ../../cciss/c0d2p1 
 lrwxrwxrwx 1 root root 18 Oct 18 16:43 256c419c-f05e-46e8-a5d9-e096c656fac7 -> ../../cciss/c0d1p1 
 lrwxrwxrwx 1 root root 18 Oct 18 16:14 8aa4cf3b-2767-40ab-8f30-199451e5ed4e -> ../../cciss/c0d4p1 
 lrwxrwxrwx 1 root root 18 Oct 18 16:14 970b4ed5-78f4-4052-a008-2f2f659d9443 -> ../../cciss/c0d6p1 
 lrwxrwxrwx 1 root root 18 Oct 18 16:14 a9a6972c-f9ac-4d26-96ba-49c4692ce428 -> ../../cciss/c0d3p1 
 lrwxrwxrwx 1 root root 18 Oct 18 16:14 c164d530-2875-4a52-982a-54b8bc5ded9a -> ../../cciss/c0d5p1 
 </pre> 
 although 
 <pre> 
 sgdisk --print /dev/cciss/c0d1 
 Number    Start (sector)      End (sector)    Size         Code    Name 
    1           2099200         585871930     278.4 GiB     FFFF    ceph data 
    2              2048           2097152     1023.0 MiB    FFFF    ceph journal 
 and 
 sgdisk --info=2 /dev/cciss/c0d1   
 Partition GUID code: 45B0969E-9B03-4F30-B4C6-B4B80CEFF106 (Unknown) 
 Partition unique GUID: 763EC75E-AE9B-4729-84C9-2DFCB7F0697F 
 First sector: 2048 (at 1024.0 KiB) 
 Last sector: 2097152 (at 1024.0 MiB) 
 Partition size: 2095105 sectors (1023.0 MiB) 
 Attribute flags: 0000000000000000 
 Partition name: 'ceph journal' 
 </pre> 
 The problem is resolved after a reboot. That problem does not happen when dealing with */dev/sdX* devices 

Back