Loading... 在P2000分配好LUN之后 <ol> <li>执行以下操作</li> </ol> chkconfig multipathd on modprobe dm-multipath modprobe dm-round-robin service multipathd start multipath –v2 <ol start="2"> <li>安装HP多路径软件(仅仅针对RHEL5.5以下版本,5.5以上版本自带多路径软件);</li> </ol> tar -xzvf HPDMmultipath-4.4.1.tar.gz cd /tmp/HPDMmultipath-4.4.1 [root@localhost HPDMmultipath-4.4.1]# ./INSTALL ** HPDMmultipath-4.4.1 kit Installation. Date : Tue Feb 14 15:58:58 CST 2012 ** Checking for the Operating System version. Please wait... HP Device Mapper Multipath v4.4.1 kit - Installation Menu 1. Install HPDM Multipath Utilities 2. Uninstall HPDM Multipath Utilities 3. Exit Enter choice [1/2/3] : 1 Note: This will install HPDMmultipath-4.4.1 tools for HP StorageWorks disk Warning: If you are retaining the existing /etc/multipath.conf file, you will have to manually edit the file with HP recommended parameters. Please refer user documentation for more details. Would you like to overwrite the existing /etc/multipath.conf file with the new multipath configuration file ? (y/n) : y Saving /etc/multipath.conf file to /etc/multipath.conf.savefile Copying new multipath configuration file multipath.conf to /etc directory Configuring multipath services to start at boot time....OK Installation completed successfully! 3. vi /etc/multipath.conf ### Donot edit the first two lines of this file or remove this file ### HP Device Mapper Multipath Enablement Kit v4.4.1 ### The Device Mapper Multipath Template configuration file for RHEL5U4 ### or later releases to be used with HP Storageworks Arrays. ### Use this configuration file as your /etc/multipath.conf file. ### If you already have a valid working configuration file, refer here ### for the recommended configuration for HP arrays. ### For a list of configuration options with descriptions, please refer ### to /usr/share/doc/<multipath-tools-version>/multipath.conf.annotated # The defaults section defaults { udev_dir/dev polling_interval10 selector"round-robin 0" path_grouping_policyfailover getuid_callout"/sbin/scsi_id -g -u -s /block/%n" prio_callout"/bin/true" path_checkertur rr_min_io100 rr_weight uniform failbackimmediate no_path_retry12 user_friendly_namesyes } # The blacklist section - use this to blacklist a multipath device based on # it's wwid ( using wwid ) or device names ( using devnode ) or # vendor and product id ( using device block). blacklist { #wwid26353900f02796769 devnode"^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" devnode "^hd[a-z][[0-9]*]" #devnode"^cciss!c[0-9]d[0-9]*" #device { #vendor "HP" #product"OPEN-*" #} } # The blacklist_exceptions section - to list device names to be treated # as multipath candidates even if they are on the blacklist. # Note: blacklist exceptions are only valid in the same class. # It is not possible to blacklist devices using the devnode keyword # and to exclude some devices of them using the wwid keyword. #blacklist_exceptions { #wwid2345234245647657 #devnode"sda" #device { #vendor"HP" #product"OPEN-*" #} #} # The multipaths section - uncomment this section to define a per multipath # device settings. multipaths { # uncomment the multipath block to modify the settings of a multipath device # based on its wwid multipath { wwid 3600c0ff000134c44f69f3a4f01000000 alias mpath1 path_grouping_policy group_by_prio path_selector "round-robin 0" failback immediate rr_weight uniform no_path_retry 10 rr_min_io 100 } multipath { wwid 3600c0ff000134c44bc9f3a4f01000000 alias mpath0 path_grouping_policy group_by_prio path_selector "round-robin 0" failback immediate rr_weight uniform no_path_retry 10 rr_min_io 100 } } # The devices section - used to define per storage array model settings devices { # If you are already using a valid configuration file and do not have a # device subsection for HP arrays, please add the appropriate device subsection # for the respective arrays from the entries below. # If you already have a device subsection for HP arrays which has different # parameters from the entries below, modify it appropriately. # For EVA A/A arrays #device { #vendor"HP|COMPAQ" #product "HSV1[01]1 \(C\)COMPAQ|HSV2[01]0|HSV300|HSV4[05]0" #path_grouping_policygroup_by_prio # getuid_callout"/sbin/scsi_id -g -u -s /block/%n" # path_checkertur # path_selector"round-robin 0" # prio_callout"/sbin/mpath_prio_alua /dev/%n" # rr_weightuniform # failbackimmediate #hardware_handler"0" # no_path_retry18 #rr_min_io100 #} # For HP P2000 family device { vendor "HP" product "P2000 G3 FC|P2000G3 FC" path_grouping_policy group_by_prio getuid_callout "/sbin/scsi_id -g -u -s /block/%n" path_checker tur path_selector "round-robin 0" prio_callout "/sbin/mpath_prio_alua /dev/%n" rr_weight uniform failback immediate hardware_handler "0" no_path_retry 18 rr_min_io 100 } # For XP arrays #device { # vendor"HP" # product"OPEN-.*" # path_grouping_policymultibus # getuid_callout"/sbin/scsi_id -g -u -s /block/%n" #path_selector"round-robin 0" # rr_weightuniform # path_checkertur #hardware_handler"0" # failbackimmediate # no_path_retry18 #rr_min_io1000 #} # For MSA A/A arrays #device { # vendor "HP" # product "MSA VOLUME*" # path_grouping_policy group_by_prio # getuid_callout "/sbin/scsi_id -g -u -s /block/%n" # path_checker tur # path_selector "round-robin 0" # prio_callout "/sbin/mpath_prio_alua /dev/%n" # rr_weight uniform # failback immediate # hardware_handler "0" # no_path_retry 18 # rr_min_io 100 #} # For MSA2xxxsa arrays #device { # vendor "HP" # product "MSA2012sa|MSA2312sa|MSA2324sa" # path_grouping_policy group_by_prio # getuid_callout "/sbin/scsi_id -g -u -n -s /block/%n" # path_checker tur # path_selector "round-robin 0" # prio_callout "/sbin/mpath_prio_alua %d" # rr_weight uniform # failback immediate # hardware_handler "0" # no_path_retry 18 # rr_min_io 100 #} # For MSA23xxfc and MSA23xxi arrays #device { # vendor "HP" # product "MSA2312fc|MSA2324fc|MSA2312i|MSA2324i" # path_grouping_policy group_by_prio # getuid_callout "/sbin/scsi_id -g -u -s /block/%n" # path_checker tur # path_selector "round-robin 0" # prio_callout "/sbin/mpath_prio_alua /dev/%n" # rr_weight uniform # failback immediate # hardware_handler "0" # no_path_retry 18 # rr_min_io 100 #} # For MSA20xxfc, MSA22xxfc and MSA20xxi arrays #device { # vendor"HP" # product"MSA2[02]12fc|MSA2012i" # path_grouping_policymultibus # getuid_callout"/sbin/scsi_id -g -u -s /block/%n" #path_selector"round-robin 0" # rr_weightuniform # path_checkertur #hardware_handler"0" # failbackimmediate # no_path_retry18 #rr_min_io100 #} # To blacklist a device by vendor and product say, to blacklist a XP device # uncomment the below block #device { #vendor"HP" #product_blacklist"OPEN-.*" #} } 4. 重启机器或者重启multipath服务 service multipathd restart <ol start="5"> <li>查看多路径和磁盘的信息;</li> </ol> multipath -ll fdisk -l Last modification:October 6, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏