admin 发表于 2020-7-9 21:37:25

rhel7.6配置multipath

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)

# yum install -y device-mapper device-mapper-multipath


# rpm -qa | grep mapper
device-mapper-multipath-libs-0.4.9-123.el7.x86_64
device-mapper-event-libs-1.02.149-8.el7.x86_64
device-mapper-persistent-data-0.7.3-3.el7.x86_64
device-mapper-libs-1.02.149-8.el7.x86_64
device-mapper-event-1.02.149-8.el7.x86_64
device-mapper-multipath-0.4.9-123.el7.x86_64
device-mapper-1.02.149-8.el7.x86_64

# mpathconf --enbale
# cat /etc/multipath.conf
blacklist {

devnode "^sda"

}

defaults {

user_friendly_names yes

path_grouping_policy multibus

failback immediate

no_path_retry fail

}
# service multipathd status
Redirecting to /bin/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 四 2020-07-09 20:46:17 CST; 47min ago
Process: 107103 ExecStart=/sbin/multipathd (code=exited, status=0/SUCCESS)
Process: 107100 ExecStartPre=/sbin/multipath -A (code=exited, status=0/SUCCESS)
Process: 107096 ExecStartPre=/sbin/modprobe dm-multipath (code=exited, status=0/SUCCESS)
Main PID: 107106 (multipathd)
   CGroup: /system.slice/multipathd.service
         └─107106 /sbin/multipathd

7月 09 20:46:17 localhost.localdomain multipathd: mpathk: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpathl: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpathm: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpathn: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpatho: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpathp: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpathq: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpathr: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: mpaths: event checker started
7月 09 20:46:17 localhost.localdomain multipathd: path checkers start up
# echo "- - -" > /sys/class/scsi_host/host0/scan


# multipath -ll

mpathr (364467471006c366f06c588cd00000029) dm-21 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:8   sddy 128:0   active ready running
| |- 17:0:3:8sdeb 128:48active ready running
| `- 18:0:2:8sdbn 68:16   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:8   sdcp 69:208active ready running
|- 16:0:0:8sdj8:144   active ready running
`- 17:0:0:8sdcm 69:160active ready running
mpathe (364467471006c366f06c5ddaa0000002e) dm-8 HUAWEI,XSG1            
size=1.0T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:13sdcy 70:96   active ready running
| |- 16:0:0:13 sdo8:224   active ready running
| `- 17:0:0:13 sdcx 70:80   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:13sdei 128:160 active ready running
|- 17:0:3:13 sdel 128:208 active ready running
`- 18:0:2:13 sdbs 68:96   active ready running
mpathq (364467471006c366f06c588a400000028) dm-20 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:7   sdcn 69:176active ready running
| |- 16:0:0:7sdi8:128   active ready running
| `- 17:0:0:7sdck 69:128active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:7   sddx 71:240active ready running
|- 17:0:3:7sddz 128:16active ready running
`- 18:0:2:7sdbm 68:0    active ready running
mpathd (364467471006c366f06c589820000002d) dm-7 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:12sdeg 128:128 active ready running
| |- 17:0:3:12 sdej 128:176 active ready running
| `- 18:0:2:12 sdbr 68:80   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:12sdcw 70:64   active ready running
|- 16:0:0:12 sdn8:208   active ready running
`- 17:0:0:12 sdcv 70:48   active ready running
mpathp (364467471006c366f06c5887b00000027) dm-19 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:6   sddv 71:208active ready running
| |- 16:0:2:6sdz65:144active ready running
| |- 17:0:3:6sddw 71:224active ready running
| `- 18:0:2:6sdbl 67:240active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:6   sdcl 69:144active ready running
|- 16:0:0:6sdh8:112   active ready running
`- 17:0:0:6sdci 69:96   active ready running
mpathc (364467471006c366f06c589570000002c) dm-6 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:11sdcu 70:32   active ready running
| |- 16:0:0:11 sdm8:192   active ready running
| `- 17:0:0:11 sdct 70:16   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:11sdee 128:96active ready running
|- 17:0:3:11 sdeh 128:144 active ready running
`- 18:0:2:11 sdbq 68:64   active ready running
mpatho (364467471006c366f06c5883c00000026) dm-18 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:5   sdcj 69:112active ready running
| |- 16:0:0:5sdg8:96    active ready running
| `- 17:0:0:5sdch 69:80   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:5   sddt 71:176active ready running
|- 16:0:2:5sdy65:128active ready running
|- 17:0:3:5sddu 71:192active ready running
`- 18:0:2:5sdbk 67:224active ready running
mpathb (364467471006c366f06c589290000002b) dm-5 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:10sdec 128:64active ready running
| |- 17:0:3:10 sdef 128:112 active ready running
| `- 18:0:2:10 sdbp 68:48   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:10sdcs 70:0    active ready running
|- 16:0:0:10 sdl8:176   active ready running
`- 17:0:0:10 sdcr 69:240active ready running
mpathn (364467471006c366f06c4ff0b00000025) dm-17 HUAWEI,XSG1            
size=50G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:4   sddr 71:144active ready running
| |- 16:0:2:4sdx65:112active ready running
| |- 17:0:3:4sdds 71:160active ready running
| `- 18:0:2:4sdbj 67:208active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:4   sdcg 69:64   active ready running
|- 16:0:0:4sdf8:80    active ready running
`- 17:0:0:4sdcf 69:48   active ready running
mpatha (364467471006c366f06c4a99400000022) dm-4 HUAWEI,XSG1            
size=10G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:1   sdca 68:224active ready running
| |- 16:0:0:1sdc8:32    active ready running
| `- 17:0:0:1sdbz 68:208active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:1   sddl 71:48   active ready running
|- 16:0:2:1sdu65:64   active ready running
|- 17:0:3:1sddm 71:64   active ready running
`- 18:0:2:1sdbg 67:160active ready running
mpathm (364467471006c366f06c4e1f700000024) dm-16 HUAWEI,XSG1            
size=10G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:3   sdce 69:32   active ready running
| |- 16:0:0:3sde8:64    active ready running
| `- 17:0:0:3sdcd 69:16   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:3   sddp 71:112active ready running
|- 16:0:2:3sdw65:96   active ready running
|- 17:0:3:3sddq 71:128active ready running
`- 18:0:2:3sdbi 67:192active ready running
mpathl (364467471006c366f06c4c93100000023) dm-15 HUAWEI,XSG1            
size=10G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:2   sddn 71:80   active ready running
| |- 16:0:2:2sdv65:80   active ready running
| |- 17:0:3:2sddo 71:96   active ready running
| `- 18:0:2:2sdbh 67:176active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:2   sdcc 69:0    active ready running
|- 16:0:0:2sdd8:48    active ready running
`- 17:0:0:2sdcb 68:240active ready running
mpathk (364467471006c366f06c609a700000034) dm-14 HUAWEI,XSG1            
size=1.0T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:19sddj 71:16   active ready running
| |- 16:0:0:19 sdt65:48   active ready running
| |- 17:0:0:19 sddk 71:32   active ready running
| `- 18:0:0:19 sdbf 67:144active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:19sdev 129:112 active ready running
|- 17:0:3:19 sdew 129:128 active ready running
`- 18:0:2:19 sdby 68:192active ready running
mpathj (364467471006c366f06c6097800000033) dm-13 HUAWEI,XSG1            
size=1.0T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:18sdes 129:64active ready running
| |- 17:0:3:18 sdeu 129:96active ready running
| `- 18:0:2:18 sdbx 68:176active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:18sddh 70:240active ready running
|- 16:0:0:18 sds65:32   active ready running
|- 17:0:0:18 sddi 71:0    active ready running
`- 18:0:0:18 sdbe 67:128active ready running
mpathi (364467471006c366f06c6093400000032) dm-12 HUAWEI,XSG1            
size=1.0T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:17sddg 70:224active ready running
| |- 16:0:0:17 sdb8:16    active ready running
| |- 17:0:0:17 sddf 70:208active ready running
| `- 18:0:0:17 sdbd 67:112active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:17sder 129:48active ready running
|- 17:0:3:17 sdet 129:80active ready running
`- 18:0:2:17 sdbw 68:160active ready running
mpathh (364467471006c366f06c608ff00000031) dm-11 HUAWEI,XSG1            
size=1.0T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:16sdeo 129:0   active ready running
| |- 17:0:3:16 sdeq 129:32active ready running
| `- 18:0:2:16 sdbv 68:144active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:16sdde 70:192active ready running
|- 16:0:0:16 sdr65:16   active ready running
|- 17:0:0:16 sddd 70:176active ready running
`- 18:0:0:16 sdbc 67:96   active ready running
mpathg (364467471006c366f06c5dede00000030) dm-10 HUAWEI,XSG1            
size=1.0T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:15sddc 70:160active ready running
| |- 16:0:0:15 sdq65:0    active ready running
| |- 17:0:0:15 sddb 70:144active ready running
| `- 18:0:0:15 sdbb 67:80   active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:15sdem 128:224 active ready running
|- 17:0:3:15 sdep 129:16active ready running
`- 18:0:2:15 sdbu 68:128active ready running
mpaths (364467471006c366f06c588fe0000002a) dm-22 HUAWEI,XSG1            
size=500G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:0:9   sdcq 69:224active ready running
| |- 16:0:0:9sdk8:160   active ready running
| `- 17:0:0:9sdco 69:192active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:3:9   sdea 128:32active ready running
|- 17:0:3:9sded 128:80active ready running
`- 18:0:2:9sdbo 68:32   active ready running
mpathf (364467471006c366f06c5de4a0000002f) dm-9 HUAWEI,XSG1            
size=1.0T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 0:0:3:14sdek 128:192 active ready running
| |- 17:0:3:14 sden 128:240 active ready running
| `- 18:0:2:14 sdbt 68:112active ready running
`-+- policy='service-time 0' prio=10 status=enabled
|- 0:0:0:14sdda 70:128active ready running
|- 16:0:0:14 sdp8:240   active ready running
|- 17:0:0:14 sdcz 70:112active ready running
`- 18:0:0:14 sdba 67:64   active ready running






页: [1]
查看完整版本: rhel7.6配置multipath