Open cernceph opened 11 years ago
Would it be possible to reference by UUID? Or indeed, not partition. Useful when you're just wanting to try on a spare LVM LV :)
M
Sure we could use /dev/disk/by-id or similar, but we would need to patch device.pp since it seems to expect /dev/sdX with lines like:
$devname = regsubst($name, '.*/', '')
and
command => "mkfs.xfs -f -d agcount=${::processorcount} -l \
size=1024m -n size=64k ${name}1",
I am wondering what people are using on clusters today... or is noone using this module in pseudo-production?
Perhaps just trip the "1" from the ${name}1, and specify a partition directly. Then, use a third party module to partition your disk -- or, in the case of moving to btrfs which can (IIRC) use a whole disk without a partition table being present, just use the disk "raw" as it were.
Just some thoughts, anyway!
Today we have been testing drive failing/replacement and noticed a couple short-comings in the device.pp manifest:
Do people have experience already with better practices to prevent these two problems?? Help is much appreciated!
Cheers, Dan CERN IT