On 19/11/13 18:56, Robert van Leeuwen wrote:
Hi,

Since the /dev/sdX device location could shuffle things up (and that would mess 
things up) I'd like to use a more-persistent device path.

Since I'd like to be able to replace a disk without adjusting anything (e.g. 
just formatting the disk) the /dev/disk/by-path seems the best fit.
However, this device has colons in the name and ceph-deploy uses this as 
separators so that won't work.

Also, I'm interested to what ceph (deploy) uses to decide which disks should be 
mounted @ boot.
I do not see any fstab entries but disks do get mounted.
It looks like it is just using /dev/sdX for this instead of the /dev/disk/by-id 
/by-path given by ceph-deploy.

So I am wondering how other people are setting up machines and how things work 
:)



The auto mount stuff is handled by installed udev scripts that come with the ceph package installation (usually installed in (/lib/udev/rules.d) - see the udev dir in the src.

This should mean you can just use ceph-deploy and say 'make me an osd on /dev/sdx' and it will make a symlink /var/lib/ceph/osd/ceph-n that points to (one, often this 1st) partition on /dev/sdx.

No doubt other schemes are possible, but this seems to be quite ok to me!

Cheers

Mark
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to