3.5. Configuring multipathing in initramfs
Setting up multipathing in the initramfs ensure multipath devices are available early in the boot process. This is essential for storage setups requiring redundancy and load balancing, helping maintain system integrity and avoid issues during startup.
Prerequisites
- Configured DM multipath on your system.
Procedure
Rebuild the
initramfsfile system with the multipath configuration files:# dracut --force --add multipath注意When using multipath in the
initramfsand modifying its configuration files, remember to rebuild theinitramfsfor the changes to take effect. If your root device employs multipath, thedracutcommand will automatically include the multipath module in theinitramfs.Optional: If multipath in the
initramfsis no longer necessary:Remove the multipath configuration file:
# rm /etc/dracut.conf.d/multipath.confRebuild the
initramfswith the added multipath configuration:# dracut --force --omit multipath
Verification
Check if multipath-related files and configurations are present:
# lsinitrd /path/to/initramfs.img -m | grep multipath
While verification steps provided can give you an indication of success, a final test boot-up is recommended to ensure that the configuration works as expected.
After the reboot, confirm that the multipath devices are recognized correctly:
# multipath -ll