#1324 PR merged
: Use mpathconf to setup multipath in recovery (if available)¶
Labels: enhancement
, fixed / solved / done
schabrolles opened issue at 2017-04-21 11:34:¶
mpathconf is present in Fedora based distribution. It helps to make the
first configuration of multipath.
It can be used to properly setup the multipath configuration during
recovery when you migration from non-multipath system to multipath. (see
#1311, #1314)
Having a good multipath.conf
since the very beginning (start of
recovery) is important because this file can determine the name of the
multipath device.
with an empty multipath.conf :
/dev/mapper/3600507680c82004cf8000000000000d8
with a multipath.conf with friendly name (setup with mpathconf) :
/dev/mapper/mpatha
The issue is :
During migration, the recovery process will use THIS name to modify some
key file on the target OS.
(lilo.conf, yaboot.conf etc ...). It is why it is important to get the
good name from the beginning.
This patch propose to
- add
mpathconf
tool in the recovery image if it exists. - use
mpathconf
(if available) to properly setup the multipath during device discovery.
jsmeix commented at 2017-04-24 13:13:¶
@schabrolles
does the
# load mudules and start multipath discovery
comment also need to be moved outside the if statement?
schabrolles commented at 2017-04-24 13:28:¶
@gdha, @jsmeix I've updated with your comments ...
I also removed "friendly_names" for SLES11 because there is no binding files which guaranty the association between "names" and "wwid"...
schabrolles commented at 2017-04-25 13:45:¶
@gdha , @jsmeix I finally find a way to use friendly_names with SUSE by
forcing the binding file location in multipath.conf
.
tested on sles11, sles12, rhel6 and rhel7
jsmeix commented at 2017-04-25 13:57:¶
When there are no objections
I will merge it soon...
[Export of Github issue for rear/rear.]