• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

The Geek Diary

HowTos | Basics | Concepts

  • Solaris
    • Solaris 11
    • SVM
    • ZFS
    • Zones
    • LDOMs
    • Hardware
  • Linux
    • CentOS/RHEL 7
    • RHCSA notes
    • SuSE Linux Enterprise
    • Linux Services
  • VCS
    • VxVM
  • Interview Questions
  • oracle
    • ASM
    • mysql
    • RAC
    • oracle 12c
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Hadoop
    • Hortonworks HDP
      • HDPCA
    • Cloudera
      • CCA 131

How to disable native multipath (dm-multipath) in CentOS/RHEL

By admin

We no longer intend to use the native RedHat multipathing or dm-multipathing. How can we disable it permanently so that it can not be enabled automatically upon reboot?

To disable the native multipathing on a CentOS/RHEL 6,7 system follow the steps outlined below:

1. Edit /etc/multipath.conf and edit the blacklist{} section:

# vi /etc/multipath.conf
blacklist { 
  devnode *
}

2. Stop multipathd and chkconfig daemon off:

### For CentOS/RHEL 6 ###
# service multipathd stop
# chkconfig multipathd off
### For CentOS/RHEL 7 ###
# systemctl stop multipathd.service
# systemctl disable multipathd.service

3. Rebuild initramfs and remove multipath dracut modules:

# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.BAK
# dracut -v -f -o multipath /boot/initramfs-$(uname -r).img $(uname -r)

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Fedora, Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 7 : How to modify the kernel command line
  2. Understanding the rc Scripts in Linux
  3. How to set custom device names using udev in CentOS/RHEL 7
  4. How to Configure YUM to connect to Oracle Public Repository in Oracle Enterprise Linux
  5. Understanding System auditing with auditd
  6. OpenLDAP Server and Client Utilities list
  7. How to recover GRUB (Corrupted boot partition) in CentOS/RHEL 5,6
  8. How to compare performance difference between two systems using PCP in CentOS/RHEL
  9. How to Setup a Simple Apache httpd Web Server in Microsoft Azure
  10. How to troubleshoot iSCSI issues in CentOS / RHEL 6,7

You May Also Like

Primary Sidebar

Recent Posts

  • How to set the order to load certain modules in CentOS/RHEL 7 and 8
  • How to configure initrd / initramfs to including kernel modules in CentOS/RHEL
  • How to configure systemd.path to trigger an event when any changes made to a directory
  • Script to monitor RMAN Backup and Restore Operations
  • Oracle RMAN Backup Shell Script Example
  • Archives
  • Contact Us
  • Copyright

© 2019 · The Geek Diary