Moving redhat7 FC boot LUN from single path to multipath

This is quite possible that you install your Redhat 7 / Centos7 on a single path disk i.e. /dev/sda

Now your storage engineer enabled all path and you need to enable multipath from now for even /boot  which is /dev/sda1  and for lvm PV /dev/sda2 which has now mounted LV on /  and on /swap

So here is the simple solution from redhat --

# yum install device-mapper-multipath -y
Above will install multipath package but we would not have any multipath config file at
/etc/multipath.conf
Create this file now with command

# mpathconf --enable

Now we will add wwid of our /dev/sda2 device

# multipath -a /dev/sda2

wwid '3600d02300069c9ce09d41c4ac9c53200' added

Now run multipath again to check ..
# multipath
Oct 21 09:37:19 | 3600d02300069c9ce09d41c4ac9c53200: ignoring map

Now we will rebuild initrd in order to include multipath driver during kernel load.




# dracut --force -H --add multipath


Done !

you can simply reboot your server.

Comments

Popular posts from this blog

Running web ssh client on port 443 /80 with nginx as reverse proxy

Running cockpit behind nginx reverse proxy with nginx ssl and cockpit non ssl

Setup VOD streaming server with nginx using RTMP on Ubuntu 18.04