I don't use ceph-deploy, but using ceph-disk for creating the OSDs automatically uses the by-partuuid reference for the journals (at least I recall only using /dev/sdX for the journal reference, which is what I have in my documentation). Since ceph-disk does all the partitioning, it automatically finds the volume with udev, mounts it in the correct location and accesses the journal on the right disk. It also may be a limitation on the version of ceph-deploy/ceph-disk you are using. On Thu, Mar 19, 2015 at 5:54 PM, Colin Corr <colin@xxxxxxxxxxxxx> wrote: > On 03/19/2015 12:27 PM, Robert LeBlanc wrote: >> Udev already provides some of this for you. Look in /dev/disk/by-*. >> You can reference drives by UUID, id or path (for >> SAS/SCSI/FC/iSCSI/etc) which will provide some consistency across >> reboots and hardware changes. > > Thanks for the quick responses. And to Kobi (off list) as well. > > It seems the optimal way to do this is to create the OSDs by ID in the first place. > > So, for /dev/sde with a journal on /dev/sda5: > > root@osd1:~$ ls -l /dev/disk/by-id/ | grep sde > lrwxrwxrwx 1 root root 9 Mar 19 23:36 ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E5TUCJX9 -> ../../sde > lrwxrwxrwx 1 root root 9 Mar 19 23:36 wwn-0x50014ee20a66aefe -> ../../sde > > root@osd1:~$ ls -l /dev/disk/by-id/ | grep sda5 > lrwxrwxrwx 1 root root 10 Mar 19 23:36 ata-Crucial_CT480M500SSD1_14210C292B50-part5 -> ../../sda5 > lrwxrwxrwx 1 root root 10 Mar 19 23:36 wwn-0x500a07510c292b50-part5 -> ../../sda5 > > The deploy command looks like this: > > ceph-deploy --overwrite-conf osd create osd1:/dev/disk/by-id/wwn-0x50014ee20a66aefe:/dev/disk/by-id/wwn-0x500a07510c292b50-part5 > > And alternatively, create a udev rule set for existing devices. > > I haven't tested yet, but I am guessing that the udev rule for that same disk (deployed as sde) would look something like this: > > KERNEL=="sde", SUBSYSTEM=="block", DEVLINKS=="/dev/disk/by-id/wwn-0x50014ee20a66aefe" > > > Many thanks for the assistance! > > Colin > > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com