1. Determine if the system is in accordance with Multipath
Rpm-qa|grep Device-mapper-multipath
2. Reload the new HBA store (if not the HBA storage, do not do this step)
Modprobe-r Lpfcmodprobe LPFC
3. Installing Multipath
Yum Install Device-mapper-multipath
4. Check if the multipath is loaded correctly, run the following command if it is not loaded, or restart the operating system
Lsmod|grep Multipath[[email protected] ~]# lsmod|grep multdm_multipath 17649 1 dm_round_robindm_mod 81692 dm_multipath,dm_mirror,dm_log# Reload driver [[email protected] ~]# modprobe dm-multipath[[email protected] ~]# MODP Robe Dm-round-robin
5. Set the Multipath service to start automatically and start the Multipath service
Chkconfig MULTIPATHD on service MULTIPATHD start
6. Multipath Basic Operation command
Service multipath start #启动multipath multipath-f #删除无效路径 multipath-v2 #检查路径, merge path, format Multipath-ll #检查路径状态 of the path
7. Configure/etc/multipath.conf, add the following:
Blacklist{devnode "^sda"}defaults {user_friendly_names yesudev_dir/devpath_grouping_policy multibusfailback Immediateno_path_retry fail}
8. Get the Wwid of the disk via the scsi_id command
Here are a few things to look out for
1, first, through the scsi_id to obtain the WWID device name, you must be able to find the device through the fdisk-l command
2. Be careful not to use the kind of/sbin/scsi_id-s that is said online-g/block/sdb such, can not find out wwid, change/dev/sdb so
3. Regarding the scsi_id command, Linux has a bug, reference scsi_id does not return WWID FOR/DEV/SDA with Aacraid driver
https://bugzilla.redhat.com/show_bug.cgi?id=445696
[Email protected] ~]#/sbin/scsi_id-u-g/dev/mapper/mpatha14f504e46494c45526d56564a4b6f2d6a4e66552d77434947[[ Email protected] ~]#/sbin/scsi_id-u-g/dev/mapper/mpathb14f504e46494c4552516a6d535a652d637576712d6f726250[[email Protected] ~]#/sbin/scsi_id-u-g/dev/mapper/mpathc14f504e46494c45527a4e387762672d715632712d68396951[[email Protected] ~]#/sbin/scsi_id-u-g/dev/mapper/mpathd14f504e46494c45526a4c5a6b58632d395a56312d42527652[[email Protected] ~]#/sbin/scsi_id-u-g/dev/mapper/mpathe14f504e46494c45526c36694345372d524761642d32736c77
9, modify the multipath.conf configuration file to achieve the persistence of the device
Add the following to the configuration file:
multipaths { multipath { wwid 14f504e46494c45526d56564a4b6f2d6a4e66552d77434947 alias rac-disk-01 path_grouping_policy multibus path_checker readsector0 path_selector "Round-robin 0" failback manual rr_weight priorities no_path_retry 5 } multipath { wwid 14f504e46494c4552516a6d535a652d637576712d6f726250 alias rac-disk-02 path_grouping_policy multibus path_checker readsector0 path_selector "Round-robin 0" failback manual rr_weight priorities no_path_retry 5 } multipath { wwid 14f504e46494c45527a4e387762672d715632712d68396951 alias asm-disk-01 path_grouping_policy multibus path_checker readsector0 path_selector " Round-robin 0 " failback manual rr_weight priorities no_path_retry 5 } multipath { wwid 14f504e46494c45526a4c5a6b58632d395a56312d42527652 alias asm-disk-02 path_grouping_policy multibus path_checker readsector0 path_ selector "Round-robin 0" failback manual rr_weight priorities no_path_retry 5 } multipath { wwid 14f504e46494c45526c36694345372d524761642d32736c77 alias asm-disk-03 &nBsp; path_grouping_policy multibus path_checker readsector0 path_selector "Round-robin 0" failback manual rr_ weight priorities no _path_retry 5 } }
10. Restart Multipath Service
This article is from the "Database Road" blog, make sure to keep this source http://dbaway.blog.51cto.com/7099215/1683942
CentOS 6.3 under Configuration Multipah