Configure ISCSI Multipathing in Linux

Loading

This blog will walk you through the procedure to configure multipathing in Linux using device mapper multipathing which is the native multipathing in Linux. Multipathing combines multiple I/O paths between servers and storage and creates a single device at the OS. As part of this install, I’ve already configured my ISCSI target server on a Microsoft Server and we will be attaching it to that ISCSI san.

1. Install ISCSI Initiator package.

2. Check installed  HBA modules  with  lspci

2. Start ISCSI Initiator service.

3. Get ISCSI ID Info

4. Add the IQN to the SAN Array

4. Enable initiators to find targets (logical drives mapped to the host) by
specifying iSCSI host port addresses / Login to the ISCSI Server – Path A

5. Enable initiators to find targets (logical drives mapped to the host) by
specifying iSCSI host port addresses/ Login to the ISCSI Server – Path B

6. Login to the iSCSI targets:

root@virt-scale-04 ~]# iscsiadm -m node -T iqn.1991-05.com.microsoft:win-opjkarsc1hv-esx-san-target -P 172.27.13.100 -l

7. Install Device Mapper Multipath package.

Install the device-mapper-multipath package.

8. Set the multipath daemon starts on bootup

9. Basic Configuration of Linux Device Mapper Multipathing

Take a backup of the configuration file /etc/multipath.conf file and edit the configuration file to ensure you have the following entries

The blacklist includes the devices which are not to be configured for Multipathing. Typically our OS installed disk is /dev/sd so the first entry in the blacklist will exclude it.

10. Start and Enable multipath daemons.

Enable the multipath service to start on boot.

Check the status of the multipath service

11. Check multipathing status.

Print the status of multipath devices using the command multipath -ll

12 Check if the device alias is appearing correctly

root@virt-scale-04 etc]# ll /dev/mapper/

12 Check multipathing IO by disabling a path on san

13 How to find the WWID of storage disk including a multipath device?

(Visited 36 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.