Welcome to Halil Demirezen's Tips and Tutorials Page
Personal
Home
Contact
Biography
Research

Projects
Tutorials
Celsus Library (TR)

Categories

LinuxNetworkComputer VisionDatabasesProgamming
vmware


MULTIPATH: Setting Multipath and configuring it for SAN disk (example) 2019-07-11 09:03:51

Install multipath packages (Below are for Centos 6)

yum install device-mapper-multipath device-mapper-multipath-libs


Enable multipath module
modprobe dm_multipath


Make it enabled after reboot
echo dm_multipath >> /etc/modules



Edit /etc/multipath.conf add new multipath configuration

defaults {
polling_interval 30
failback immediate
no_path_retry 5
rr_min_io 100
path_checker tur
user_friendly_names yes
path_grouping_policy multibus
}

devices {
device {
vendor "IBM"
product "2145"
path_grouping_policy group_by_prio
prio "alua"
getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
path_checker tur
path_selector "round-robin 0"
rr_min_io 100
rr_weight priorities
failback immediate
no_path_retry queue
}
}

multipaths {
multipath {
wwid 3600507680c8080265000000000000028
alias ext0
path_selector "round-robin 0"
}
}



Restart multipathd and make it start during reboot
/etc/init.d/multipathd restart
chkconfig multipathd on




Check /etc/multipath/wwids

# Valid WWIDs:
/3600507680c8080265000000000000028/
/3600605b00ad11a601e576ca74a8b02b3/
/3600605b00ad11a60206e1cae571df475/




Check /etc/multipath/bindings
mpatha 3600605b00ad11a601e576c70474470aa
mpathb 3600605b00ad11a601e576c22429b296b
mpathc 3600605b00ad11a601e576cd54d49ba64
mpathd 3600605b00ad11a601e576ca74a8b02b3
mpathe 3600605b00ad11a60206e1cae571df475
mpathf 3600507680c8080265000000000000028