• 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. “-bash: firewall: command not found” – How to resolve in CentOS/RHEL 7
  2. prt-get Command Examples in Linux
  3. rm: cannot remove ‘doc/by-app’: Function not implemented (CentOS/RHEL 7)
  4. How to enable NFS debug logging using rpcdebug
  5. gnome-software: command not found
  6. kdocker: command not found
  7. How To Generate An CentOS/RHEL 6 UEFI Bootable ISO Image
  8. sftp Command Examples in Linux
  9. fallocate Command Examples in Linux
  10. How to Calculate Memory Usage in Linux using sar, ps, and free

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright