• 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 5 : How to disable device mapper multipath (dm-multipath)

by admin

In CentoS/ RHEL 5, the device mapper multipath is installed by default. In order to avoid any conflict with third party multipath software, it is advised to disable the native RHEL device-mapper-multipath software. Follow the steps below to disable the dm-multipath in RHEL 5 systems.

Disabling dm-multipath

1. To disable device-mapper-multipath, turn it off with the chkconfig command. chkconfig command makes sure that dm-multipath is not started after reboot or service restart.

# chkconfig multipathd off

2. In addition, make sure the file /etc/sysconfig/mkinitrd/multipath has the following line:

MULTIPATH=NO

The purpose of the /etc/sysconfig/mkinitrd/multipath file, is to help mkinitrd determine whether or not to include the dm-multipath modules in the initrd image file.

3. By default, /etc/multipath.conf has all devices blacklisted. If this default configuration has been changed, the change should be reverted. If the devices are not blacklisted, then running the multipath command could cause a conflict with other multipathing software. The /etc/multipath.conf file should contain the following:

# Blacklist all devices by default. Remove this to enable multipathing
# on the default devices.
blacklist {
        devnode "*"
}

The above steps will ensure that device-mapper-multipath does not conflict with any other multipathing solution in use.

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 6 : How to add/remove additional IP addresses to a network interface
  2. which: command not found
  3. Ngrok how to share localhost to world
  4. pluma: command not found
  5. lvm: command not found
  6. Linux OS Service ‘rusersd’
  7. How to configure IPtables to open Ports in CentOS / RHEL
  8. CentOS/RHEL: /tmp mount point not automatically mounting when added in /etc/fstab
  9. How to add Swap Space on Linux Servers (CentOS/RHEL) On the Fly
  10. How to Disable IPv6 in CentOS/RHEL 8

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright