Professional Documents
Culture Documents
Multipath Enabled
As shown in above diagram, Linux server is connected to SAN Storage with dual
paths (path-1 and path-2). If we map an LUN from SAN Device it will show in
Linux server as two disks because it is coming from two HBA cards (typically two
paths). Here is to combine both the paths and use them as single path
(redundancy).
1|Page
Procedure To Install and configure
Multipath RHEL 7
1. To configure multipath in Linux, we have to install the packages
# yum install -y device-mapper*
4. Run start, enable and check status multipathd service using below command
[root@ArkItServ yum.repos.d]# systemctl start multipathd – if
[root@ArkItServ yum.repos.d]# systemctl enable multipathd
[root@ArkItServ yum.repos.d]# systemctl status multipathd.service
● multipathd.service - Device-Mapper Multipath Device Controller
Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled;
vendor preset: enabled)
Active: active (running) since Thu 2018-06-22 16:12:08 IST; 7s ago
Process: 4664 ExecStart=/sbin/multipathd (code=exited, status=0/SUCCESS)
Process: 4661 ExecStartPre=/sbin/multipath -A (code=exited,
status=0/SUCCESS)
2|Page
5. Check Multipathd service has already loaded the module to kernel
[root@ArkItServ ~]# modprobe dm_multipath
[root@ArkItServ ~]# lsmod |grep dm_multipath
dm_multipath 23065 0
dm_mod 114430 23
dm_multipath,dm_log,dm_persistent_data,dm_mirror,dm_bufio,dm_thin_pool
3|Page
4. Use multipath alias section to specify alternative name to override friendly
name. Below is the actual /etc/multipath.conf file configuration for failover
device path
### Default Multipath configuration RHEL 7 ###
defaults {
udev_dir /dev
polling_interval 10
selector "round-robin 0"
path_grouping_policy failover
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
# prio_callout "/sbin/mpath_prio_ontap /dev/%n"
prio_callout /bin/true
path_checker readsector0
rr_min_io 100
max_fds 8192
rr_weight priorities
failback immediate
# no_path_retry fail
user_friendly_names yes
}
multipaths {
multipath {
wwid 4500a098038303635685d472f492d6b5q --> UUID device block mpath1
alias DATA-DISK --> name alias for device block mpath1
path_grouping_policy failover --> Define rule active-passive
4|Page
3. Check new changes
Kpartx –a /dev/mapper/DATA-DISK
5|Page
Start To Create Linux LVM using
multipath disk
1. Define path /dev/mapper/DATA-DISKp1 to physical volume
# pvcreate /dev/mapper/DATA-DISKp1
Writing physical volume data to disk "/dev/mapper/DATA-DISKp1"
Physical volume "/dev/mapper/DATA-DISKp1" successfully created
6. Set Permanent mount by add entry below line in to /etc/fstab configuration file
/dev/DATAVG/LV03 /mountpoint ext4 defaults 1 2
6|Page