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

The Geek Diary

CONCEPTS | BASICS | HOWTO

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

How to configure DM-Multipath from an iSCSI initiator to an iSCSI target in CentOS / RHEL

By admin

The procedure to configure DM-Multipath from an iSCSI initiator to an iSCSI target is presented, which assumes the following:

  • The iSCSI target package is installed on the server.
  • Targets and LUNs are configured on the iSCSI server.
  • The iSCSI initiator package is installed on the client.
  • The DM-Multipath package is installed on the client.
  • The targets have been discovered by the client.
  • An iSCSI session is active between the target and the initiator.
  • The initiator has redundant network connections to the target.

Before enabling DM-Multipath on the client, there is no /etc/multipath.conf configuration file:

# ls /etc/multipath.conf

You can manually create this file or enable DM-Multipath with the mpathconf utility:

# mpathconf --enable

This command copies multipath.conf from the /usr/share/doc/device-mapper-multipath-[version] directory to the /etc directory.

Run the following command to enable DM-Multipath. Notice that the configuration file now exists:

# mpathconf --enable
# ls /etc/multipath.conf /etc/multipath.conf

Before starting the multipathd daemon, there are no mpathN devices in /dev/mapper:

# ls /dev/mapper/mpatha
ls: cannot access /dev/mapper/mpatha: No such file or directory

After starting the multipathd daemon, the mpathN device is created in /dev/mapper: # systemctl start multipathd

# ls /dev/mapper/mpatha
/dev/mapper/mpatha

Use the /dev/mapper/mpatha name when creating a partition, when creating an LVM physical volume, and when making and mounting a file system. If one of the network interfaces fails on the initiator, I/O continues through the remaining active interface.

How to configure iSCSI target using targetcli in CentOS / RHEL 7
How to configure iSCSI Initiator (client) in CentOS / RHEL 7
How to configure iSCSI Initiator (client) in CentOS / RHEL 6
Beginners guide to Device Mapper (DM) multipathing

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

Some more articles you might also be interested in …

  1. How to verify if NX/XD is Enabled or Disabled in CentOS/RHEL 7 and 8
  2. How to find if NUMA configuration is enabled or disabled?
  3. Swapon Fails To Mount Swap – Gives Invalid Argument Error
  4. 6 Useful journalctl Command Examples in CentOS / RHEL 7 (Cheat Sheet)
  5. How to change the number of commands stored in Bash History
  6. CentOS / RHEL 6,7 : How to use yum history to roll back a yum update
  7. How to configure VNC Server on CentOS/RHEL 6
  8. How to disable NetworkManager on CentOS / RHEL 7
  9. How to configure CentOS/RHEL 6 system to not used last 3 passwords used
  10. CentOS / RHEL 7 : How to Create and Remove the LVM Mirrors Using lvconvert

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary