Project

General

Profile

Feature #11881

Updated by Loïc Dachary almost 9 years ago

See https://github.com/ceph/ceph/pull/1229 

 * ceph-disk must understand the underlying infrastructure (devmapper instead of /dev/XXX) 
 * ceph-disk must not be confused by the fact that two paths point to the same device 
 * the partitions must be created on the actual hardware, the devmapper names can't be used 
 * use real hardware to figure things out (find one) 
 * write tests using isci multipath 

 * modprobe scsi_debug vpd_use_hostno=0 add_host=2 dev_size_mb=100 

 will get you 2 100MB scsi_debug devices that multipath will happily set 
 itself up on. But I don't know if this will help you, since you can't 
 choose what's on the device when it gets discovered. The device usually 
 (always?) comes up with the same WWID, so after the first time, the 
 multipath udev rules will flag it correctly, but I doubt that the 
 95-ceph-osd.rules would pick it up. 

 Probably a better way, is to simply pick an unused scsi device, 
 and run 

 # multipath <scsi_device> 

 Multipath will make a multipath device with only one path on top of it, 
 and will remember that it is supposed to be multipathed in the future. 

 Once you're all one with it, run: 

 # multipath -f <multipath_device> 

 to remove the multipath device, and 

 # multipath -w <scsi_device> 

 To wipe the information that it's supposed to be a multipath device (so 
 that it won't automatically get multipathed the next time you start up). 

Back