6.2. Moving a root file system from a single path device to a multipath device
Move the root filesystem from a single-path device to a multipath setup to ensure path redundancy for critical system data. This enhances reliability by allowing the system to boot and operate even if one storage path fails, improving overall availability.
Prerequisites
-
You have installed the
device-mapper-multipathpackage.
Procedure
Create the
/etc/multipath.confconfiguration file:# mpathconf --enableEnable the
multipathdservice:# systemctl enable multipathd.service-
If the
find_multipathsconfiguration parameter is not set toon, edit theblacklistandblacklist_exceptionssections of the/etc/multipath.conffile, as described in Preventing devices from multipathing. Add the WWID of the device to the
/etc/multipath/wwidsfile:# multipath -a /dev/sdb wwid '3600d02300069c9ce09d41c4ac9c53200' addedReplace /dev/sdb with the root device name.
Confirm that your configuration file is set up correctly:
# multipath -d 3600d02300069c9ce09d41c4ac9c53200 : mpatha (3600d02300069c9ce09d41c4ac9c53200) undef 3PARdata,VV size=446M features='1 queue_if_no_path' hwhandler='1 alua' wp=undef `-+- policy='service-time 0' prio=50 status=undef `- 5:0:0:0 sdb 8:16 undef ready runningReplace 3600d02300069c9ce09d41c4ac9c53200 with the WWID of your swap device.
Rebuild the
initramfsfile system withmultipath:# dracut --force --add multipath- Shut the machine down.
- Boot the machine.
- Make the other paths visible to the machine.
Verification
Check if the multipath device is created by running the following command:
# multipath -l | grep 3600d02300069c9ce09d41c4ac9c53200 mpatha (3600d02300069c9ce09d41c4ac9c53200) dm-0 3PARdata,VV