Hide Forgot
Description of problem: case - support use_friendly_names issue - running multipath doesn't reload changes from /etc/multipath.conf hence when using use_friendly_names = yes and configuring aliases, changes are not taking affect, only after running multipath -r or reloading multipathd service. repro: - vi /etc/multipath.conf - add the following: defaults { polling_interval 5 getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n" no_path_retry fail user_friendly_names yes flush_on_last_del yes fast_io_fail_tmo 5 dev_loss_tmo 30 max_fds 4096 } multipaths { multipath { wwid 36090a068a0746b89ddee943b5b253db6 alias rhev-a24-01_myDev1 } multipath { wwid 36090a068a074fb95ddeee43b5b259da7 alias rhev-a24-01_myDev2 } } - [root@rhev-a24c-01 ~]# multipath - [root@rhev-a24c-01 ~]# multipath -ll 36090a068a074fb95ddeee43b5b259da7 dm-3 EQLOGIC,100E-00 size=75G features='0' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=1 status=active `- 18:0:0:0 sdj 8:144 active ready running - [root@rhev-a24c-01 ~]# multipath -r Dec 19 02:32:50 | failed to find rport_id for target6:0:0 Dec 19 02:32:50 | failed to find rport_id for target18:0:0 Dec 19 02:32:50 | 36090a068a074fb95ddeee43b5b259da7: rename 36090a068a074fb95ddeee43b5b259da7 to rhev-a24-01_myDev2 rename: rhev-a24-01_myDev2 (36090a068a074fb95ddeee43b5b259da7) undef EQLOGIC,100E-00 size=75G features='0' hwhandler='0' wp=undef `-+- policy='round-robin 0' prio=1 status=undef `- 18:0:0:0 sdj 8:144 active ready running code relations: from multipath.py +71, execCmd should be changed to misc.execCmd([constants.EXT_MULTIPATH, '-r']) tested and it works. def rescan(): """ Forces multiupath 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 ask iSCSI to rescan all its sessions iscsi.rescan() supervdsm.getProxy().forceIScsiScan() # Now let multipath daemon pick up new devices misc.execCmd([constants.EXT_MULTIPATH])
Option -r is not documented; what does it do exactly?
(In reply to comment #1) > Option -r is not documented; what does it do exactly? from multipath upstream git; cat multipath/multipath.8 | grep -B 1 reload .B \-r force devmap reload
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.