Linux system how to configure multi-path

  

Linux multi-path refers to the connection between the host and the hard disk, and also includes the one-to-many path connection between the host and the network server. Virtualization of the disk is achieved through multi-path connections. So how do Linux systems configure multipathing? What are the steps to configure multipathing? This article will introduce you to everyone.

1, the installation package multipath:

device-mapper-1.02.67-2.el5

device-mapper-event-1.02.67.2. El5

device-mapper-multipath-0.4.7-48.el5

[root@RKDB01 Server]# rpm -ivh device-mapper-1.02.67-2.el5.x86_64. Rpm

warning: device-mapper-1.02.67-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing. . ###############################################################################

package device-mapper-1.02.67-2.el5.x86_64 is already installed

[root@RKDB01 Server]# rpm -ivh device-mapper-event-1.02.67-2.el5. X86_64.rpm

warning: device-mapper-event-1.02.67-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing. . ###############################################################################

package device-mapper-event-1.02.67-2.el5.x86_64 is already installed

[root@RKDB01 Server]# rpm -ivh device-mapper-multipath-0.4.7-48. El5.x86_64.rpm

warning: device-mapper-multipath-0.4.7-48.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing. . ###############################################################################

package device-mapper-multipath-0.4.7-48.el5.x86_64 is already installed

2, set boot, and check if the installation package is normal:

chkconfig -- Level 345 multipathd on

lsmod | Grep dm_multipath

[root@RKDB01 Server]# chkconfig --level 345 multipathd on

[root@RKDB01 Server]# lsmod | Grep dm_multipath

dm_multipath 58969 0

scsi_dh 42561 1 dm_multipath

dm_mod 102417 4 dm_mirror,dm_multipath,dm_raid45,dm_log

[root@RKDB01 Server]#

3, configure multipathd to make it work, edit /etc/multipath.conf, open the following content:

defaults {

udev_dir /dev

Polling_interval 10

selector “round-robin 0”

path_grouping_policy multibus

getuid_callout “/sbin/scsi_id -g -u -s /block/%n”< Br>

prio_callout none

path_checker readsector0

rr_min_io 100

max_fds 8192

rr_weight priorities

failback immediate

no_path_retry fail

user_friendly_names yes

}

blacklist {

wwid 26353900f02796769

devnode “^(ram| Raw| Loop| Fd| Md| Dm-| Sr| Scd| St)[0-9]*”

devnode “^hd[az]”

}

4, and close the following content

#blacklist {

# devnode “*”

#}

#defaults {

27 # user_friendly_names yes

28 #}

5. After completing the command, execute the following command to find the multipath:

[root@RKDB01 Server]# modprobe dm-multipath

[root@RKDB01 Server]# Multipath -F

[root@RKDB01 Server]# multipath dm-multipath

[root@RKDB01 Server]# multipath dm-round-robin

[root@RKDB01 Server ]# service multipathd restart

Shutting down the multipathd port monitor: [OK]

Starting the daemon multipathd: [OK]

[root@RKDB01 Server]# multipath -v2

[root@RKDB01 Server]# multipath -v2

[root@RKDB01 Server]# multipath -ll

mpath1 (3600d02310000011b16a 5d57c6a1bd99a) dm-0 TOYOU, NetStor_iSUM510

[size=3.3T][features=0][hwhandler=0][rw]

\\_ round-robin 0 [prio=2] [ena bled]

\\_ 1:0:0:0 sdb 8:16 [failed][ready]

\\_ 1:0:1:0 sdc 8:32 [failed ][ready]

[root@RKDB01 Server]#
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved