Device Mapper Multipathing (or DM-multipathing) is a Linux native multipath tool, which allows you to configure multiple I/O paths between server nodes and storage arrays into a single device. The post describes the steps to un-configure and remove device mapper multipath completely from the system.
Disabling the service
1. Make sure device mapper multipath is not in use. Then stop multipathd service:
# service multipathd stop
2. Check multipathd service has been disable in system startup
# chkconfig --list | grep multipathd
3. If not then disable it using following command:
# chkconfig multipathd off # chkconfig --list | grep multipathd multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Removing the package and rebuild Initial RAM disk
1. Obtain the full package name:
# rpm -qa |grep multipath device-mapper-multipath-0.4.9-93.el6.x86_64 device-mapper-multipath-libs-0.4.9-93.el6.x86_64
2. Remove the package using yum:
# yum remove device-mapper-multipath
3. And then finally rebuild initramfs by omitting multipath module:
# cp /boot/initramfs-[kernel version].img /boot/initramfs-[kernel version].img.BAK # dracut -v -f --omit dm_multipath initramfs-[kernel version].img [kernel version]