def rescan(): """ Forces multipath daemon to rescan the list of available devices and refresh the mapping table. New devices can be found under /dev/mapper Should only be called from hsm._rescanDevices() """ # First rescan iSCSI and FCP connections iscsi.rescan() hba.rescan() # Now wait until multipathd is ready. wait_until_ready()
def rescan(): """ Forces multipath daemon to rescan the list of available devices and refresh the mapping table. New devices can be found under /dev/mapper Should only be called from hsm._rescanDevices() """ # First rescan iSCSI and FCP connections iscsi.rescan() hba.rescan() # Scanning SCSI interconnects starts a storm of udev events. Wait until all # events are processed, ensuring detection of new devices and creation or # update of multipath devices. timeout = config.getint('irs', 'udev_settle_timeout') udevadm.settle(timeout)
def rescan(): """ Forces multipath daemon to rescan the list of available devices and refresh the mapping table. New devices can be found under /dev/mapper Should only be called from hsm._rescanDevices() """ # First rescan iSCSI and FCP connections iscsi.rescan() hba.rescan() # Scanning SCSI interconnects starts a storm of udev events. Wait until all # events are processed, ensuring detection of new devices and creation or # update of multipath devices. timeout = config.getint('irs', 'udev_settle_timeout') udevadm.settle(timeout)