[SOLVED] How does CEPH identify OSD ?

Belokan

Active Member
Apr 27, 2016
155
16
38
Hello all,

I have a simple question. I have a 2 controllers host with boot/backup disks on the 1st controller and OSD/data devices on the 2nd one.

So far, sda & sdb are present (1st controller) and sdc (OSD) & sdd (pass-through a NAS VM using disk/by-id) on the second.

I have to add a disk on the 1st controller. So new disk will become sdc and OSD sdd (and sde for data disk). How ceph identifies its OSD ? I've added it through the GUI selecting "/dev/sdc", it is mounted as /dev/sdc (of course ...) but will it be able to find the OSD once its /dev/sdX changed ? I guess/hope ceph use disk/by-*uuid but ...

Thanks in advance !
 
Yes it will, ceph check the GPT table and can identify which partition is a OSD.