• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 6 : How to completely remove device mapper multipath (dm-multipath)

by admin

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]

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Enable Remote Desktop to Share the Current Desktop Session in CentOS/RHEL 7
  2. locate Command Examples in Linux
  3. CentOS / RHEL : How to find the creation time of LVM volume
  4. How to change the path of the auditd log file /var/log/audit/audit.log
  5. How To Configure Timeout On SSH Client Putty
  6. How To Enforce Password Complexity For All Users, Including “root”, By Using the “passwdqc” PAM Module CentOS/RHEL
  7. How to copy directories recursively using rsync while excluding specific files
  8. “su: Authentication failure” – in Docker
  9. How to delete a non-root use with UID 0 in Linux
  10. CentOS / RHEL : How to convert volume group metadata between LVM1 and LVM2

You May Also Like

Primary Sidebar

Recent Posts

  • qemu-system-x86_64: command not found
  • timedatectl: command not found
  • mpirun.openmpi: command not found
  • startkde: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright