In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to configure the wwid of the acquisition device for iscsi+multipath multipath storage on RedHat 5.4. the content is very detailed, which can be used for reference by interested friends. I hope it will be helpful to you.
Recently, Oracle 11g R2 RAC has been built on RedHat, in which storage management is based on iscsi+multipath, so take out this part of the management configuration separately.
One: install the iscsi package
Install the scsi initiator package. The installation package can be found on the installation CD
[root@rac122 ~] # rpm-qa | grep iscsi
Iscsi-initiator-utils-6.2.0.871-0.10.el5
Two: enable iscsi devices
Create a new API file, which is saved in the / var/lib/iscsi/ifaces directory:
[root@rac122 ~] # ls / var/lib/iscsi/ifaces
Bnx2i.00:00:00:00:00:00
[root@rac122] # iscsiadm-m iface-I eth0-o new
New interface eth0 added
[root@rac122 ~] # ls / var/lib/iscsi/ifaces
Bnx2i.00:00:00:00:00:00 eth0
[root@rac122 ~] # cat / var/lib/iscsi/ifaces/eth0
# BEGIN RECORD 2.0,871
Iface.iscsi_ifacename = eth0
Iface.transport_name = tcp
# END RECORD
[root@rac122] # iscsiadm-m iface-I eth0-- op=update-n iface.net_ifacename-v eth0
Eth0 updated.
[root@rac122 ~] # cat / var/lib/iscsi/ifaces/eth0
# BEGIN RECORD 2.0,871
Iface.iscsi_ifacename = eth0
Iface.net_ifacename = eth0
Iface.transport_name = tcp
# END RECORD
Restart the iscsi service after building the interface file
[root@rac122 ~] # service iscsi restart
Stopping iSCSI daemon:
Iscsid dead but pid file exists
[OK] off network shutdown. Starting iSCSI daemon: [OK]
[OK]
Setting up iSCSI targets: iscsiadm: No records found!
[OK]
Collect the iscsi target according to the IP provided
[root@rac122] # iscsiadm-m discovery-t st-p 10.1.252.148VR 3260
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-dcced9007-10d000000c74cc10-vol-rac7
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-495ed9007-b68000000ca4cc4d-vol-rac8
10.1.252.148Flux 3260 iqn.2001 1-05.com.equallogic:0-8a0906-fdded9007-b80000000c44cb23-vol-rac6
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-fc7ed9007-6b1000000c14cb23-vol-rac5
10.1.252.148Portuguese 3260 iqn.2001-05.com.equallogic:0-8a0906-668ed9007-1ca000000a34ca57-vol-rac2
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-631ed9007-a93000000a04ca57-vol-rac1
10.1.252.148Portuguese 3260 iqn.2001-05.com.equallogic:0-8a0906-697ed9007-251000000a64ca57-vol-rac3
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-6b1ed9007-b7c000000a94ca57-vol-rac4
Establish a connection with the target searched for
[root@rac122] # iscsiadm-m node-l
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-dcced9007-10d000000c74cc10-vol-rac7, portal: 10.1.252.148Magne3260]
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-495ed9007-b68000000ca4cc4d-vol-rac8, portal: 10.1.252.148Magne3260]
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-fdded9007-b80000000c44cb23-vol-rac6, portal: 10.1.252.148Magne3260]
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-fc7ed9007-6b1000000c14cb23-vol-rac5, portal: 10.1.252.148Magne3260]
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-668ed9007-1ca000000a34ca57-vol-rac2, portal: 10.1.252.148j3260]
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-631ed9007-a93000000a04ca57-vol-rac1, portal: 10.1.252.148Magne3260]
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-697ed9007-251000000a64ca57-vol-rac3, portal: 10.1.252.148j3260]
Logging in to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-6b1ed9007-b7c000000a94ca57-vol-rac4, portal: 10.1.252.148Magne3260]
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-dcced9007-10d000000c74cc10-vol-rac7, portal: 10.1.252.148Magne3260]: successful
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-495ed9007-b68000000ca4cc4d-vol-rac8, portal: 10.1.252.148Magne3260]: successful
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-fdded9007-b80000000c44cb23-vol-rac6, portal: 10.1.252.148 Magi 3260]: successful
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-fc7ed9007-6b1000000c14cb23-vol-rac5, portal: 10.1.252.148Magne3260]: successful
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-668ed9007-1ca000000a34ca57-vol-rac2, portal: 10.1.252.148j3260]: successful
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-631ed9007-a93000000a04ca57-vol-rac1, portal: 10.1.252.148Magne3260]: successful
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-697ed9007-251000000a64ca57-vol-rac3, portal: 10.1.252.148j3260]: successful
Login to [iface: eth0, target: iqn.2001-05.com.equallogic:0-8a0906-6b1ed9007-b7c000000a94ca57-vol-rac4, portal: 10.1.252.148Magne3260]: successful
[root@rac122] # iscsiadm-m session
Tcp: [1] 10.1.252.148Franco 3260 iqn.2001-05.com.equallogic:0-8a0906-dcced9007-10d000000c74cc10-vol-rac7
Tcp: [2] 10.1.252.148Franco 3260 iqn.2001-05.com.equallogic:0-8a0906-495ed9007-b68000000ca4cc4d-vol-rac8
Tcp: [3] 10.1.252.148 Virgo 3260 iqn.2001-05.com.equallogic:0-8a0906-fdded9007-b80000000c44cb23-vol-rac6
Tcp: [4] 10.1.252.148Franco 3260 iqn.2001-05.com.equallogic:0-8a0906-fc7ed9007-6b1000000c14cb23-vol-rac5
Tcp: [5] 10.1.252.148Franco 3260 iqn.2001-05.com.equallogic:0-8a0906-668ed9007-1ca000000a34ca57-vol-rac2
Tcp: [6] 10.1.252.148Franco 3260 iqn.2001-05.com.equallogic:0-8a0906-631ed9007-a93000000a04ca57-vol-rac1
Tcp: [7] 10.1.252.148VR 3260 iqn.2001-05.com.equallogic:0-8a0906-697ed9007-251000000a64ca57-vol-rac3
Tcp: [8] 10.1.252.148Franco 3260 iqn.2001-05.com.equallogic:0-8a0906-6b1ed9007-b7c000000a94ca57-vol-rac4
[root@rac122] # iscsiadm-m session-P3
ISCSI Transport Class version 2.0-871
Version 2.0-871
Target: iqn.2001-05.com.equallogic:0-8a0906-dcced9007-10d000000c74cc10-vol-rac7
Current Portal: 10.1.252.149:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 1
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 20 State: running
Scsi20 Channel 00 Id 0 Lun: 0
Attached scsi disk sdk State: running
Target: iqn.2001-05.com.equallogic:0-8a0906-495ed9007-b68000000ca4cc4d-vol-rac8
Current Portal: 10.1.252.150:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 2
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 21 State: running
Scsi21 Channel 00 Id 0 Lun: 0
Attached scsi disk sdd State: running
Target: iqn.2001-05.com.equallogic:0-8a0906-fdded9007-b80000000c44cb23-vol-rac6
Current Portal: 10.1.252.149:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 3
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 22 State: running
Scsi22 Channel 00 Id 0 Lun: 0
Attached scsi disk sde State: running
Target: iqn.2001-05.com.equallogic:0-8a0906-fc7ed9007-6b1000000c14cb23-vol-rac5
Current Portal: 10.1.252.150:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 4
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 23 State: running
Scsi23 Channel 00 Id 0 Lun: 0
Attached scsi disk sdf State: running
Target: iqn.2001-05.com.equallogic:0-8a0906-668ed9007-1ca000000a34ca57-vol-rac2
Current Portal: 10.1.252.149:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 5
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 24 State: running
Scsi24 Channel 00 Id 0 Lun: 0
Attached scsi disk sdh State: running
Target: iqn.2001-05.com.equallogic:0-8a0906-631ed9007-a93000000a04ca57-vol-rac1
Current Portal: 10.1.252.149:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 6
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 25 State: running
Scsi25 Channel 00 Id 0 Lun: 0
Attached scsi disk sdg State: running
Target: iqn.2001-05.com.equallogic:0-8a0906-697ed9007-251000000a64ca57-vol-rac3
Current Portal: 10.1.252.150:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 7
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 26 State: running
Scsi26 Channel 00 Id 0 Lun: 0
Attached scsi disk sdi State: running
Target: iqn.2001-05.com.equallogic:0-8a0906-6b1ed9007-b7c000000a94ca57-vol-rac4
Current Portal: 10.1.252.150:3260,1
Persistent Portal: 10.1.252.148:3260,1
**********
Interface:
**********
Iface Name: eth0
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:b9e5bb909ae1
Iface IPaddress: 10.1.252.122
Iface HWaddress:
Iface Netdev: eth0
SID: 8
ISCSI Connection State: LOGGED IN
ISCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 27 State: running
Scsi27 Channel 00 Id 0 Lun: 0
Attached scsi disk sdj State: running
View connection status
[root@rac122 ~] # netstat-anp | grep 3260
Tcp 0 0 10.1.252.122:48858 10.1.252.150:3260 ESTABLISHED 19427/iscsid
Tcp 0 0 10.1.252.122:48856 10.1.252.150:3260 ESTABLISHED 19427/iscsid
Tcp 0 0 10.1.252.122:48862 10.1.252.150:3260 ESTABLISHED 19427/iscsid
Tcp 0 0 10.1.252.122:48861 10.1.252.150:3260 ESTABLISHED 19427/iscsid
Tcp 0 0 10.1.252.122:63216 10.1.252.149:3260 ESTABLISHED 19427/iscsid
Tcp 0 0 10.1.252.122:63218 10.1.252.149:3260 ESTABLISHED 19427/iscsid
Tcp 0 0 10.1.252.122:63221 10.1.252.149:3260 ESTABLISHED 19427/iscsid
Tcp 0 0 10.1.252.122:63220 10.1.252.149:3260 ESTABLISHED 19427/iscsid
[root@rac122] # iscsiadm-m node
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-dcced9007-10d000000c74cc10-vol-rac7
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-495ed9007-b68000000ca4cc4d-vol-rac8
10.1.252.148Flux 3260 iqn.2001 1-05.com.equallogic:0-8a0906-fdded9007-b80000000c44cb23-vol-rac6
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-fc7ed9007-6b1000000c14cb23-vol-rac5
10.1.252.148Portuguese 3260 iqn.2001-05.com.equallogic:0-8a0906-668ed9007-1ca000000a34ca57-vol-rac2
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-631ed9007-a93000000a04ca57-vol-rac1
10.1.252.148Portuguese 3260 iqn.2001-05.com.equallogic:0-8a0906-697ed9007-251000000a64ca57-vol-rac3
10.1.252.148purl 3260 iqn.2001-05.com.equallogic:0-8a0906-6b1ed9007-b7c000000a94ca57-vol-rac
Three: install the Mutipath package
Install the scsi initiator package. The installation package can be found on the installation CD
[root@rac122 ~] # rpm-qa | grep device-mapper
Device-mapper-multipath-0.4.7-30.el5
Device-mapper-1.02.32-1.el5
Device-mapper-1.02.32-1.el5
Device-mapper-event-1.02.32-1.el5
Four: configure Multipath parameters
4.1. Locate the configuration file and back it up and then modify it
The parameter configuration file for Multipath is: / etc/multipath.conf, most of the contents of this file are annotated after installing the Multipath package. Make a copy of the document and keep it for backup
And then modify another document.
[root@rac122 ~] # cp / etc/multipath.conf / etc/multipath.conf.back
[root@rac122 ~] # ls / etc/ | grep multipath
Multipath.conf
Multipath.conf.bak
4.2. Blacklist filtering
By default, Multipath adds all settings to the Blacklist list, that is, forbids the use of all devices, so cancel the default settings and update the contents of the corresponding blacklist block of the file as follows:
# Blacklist all devices by default. Remove this to enable multipathing
# on the default devices.
Blacklist {
Devnode "^ sd [a] $"
}
4.3.Obtain wwwid
Modify the multipath {in the configuration file
Wwid 36090a07800d98e6657ca340a0000a01c
Alias vol-aidev01
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
} block, wwwid will be used, so you need to first set the wwwid of each device
Check which iscsi devices have just been enabled
[root@rac122 userfile] # fdisk-l
Disk / dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/ dev/sda1 * 1 13 104391 83 Linux
/ dev/sda2 14 36404 292310707 + 8e Linux LVM
Disk / dev/sdd: 536.8 GB, 536881397760 bytes
255 heads, 63 sectors/track, 65272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk / dev/sde: 17.1 GB, 17191403520 bytes
64 heads, 32 sectors/track, 16395 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Disk / dev/sdf: 17.1 GB, 17191403520 bytes
64 heads, 32 sectors/track, 16395 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Disk / dev/sdg: 8603 MB, 8603566080 bytes
64 heads, 32 sectors/track, 8205 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Disk / dev/sdh: 8603 MB, 8603566080 bytes
64 heads, 32 sectors/track, 8205 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk / dev/sdh doesn't contain a valid partition table
Disk / dev/sdi: 8603 MB, 8603566080 bytes
64 heads, 32 sectors/track, 8205 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Disk / dev/sdj: 8603 MB, 8603566080 bytes
64 heads, 32 sectors/track, 8205 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
Disk / dev/sdk: 107.3 GB, 107379425280 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
You can see that eight iscsi devices are enabled: sdd, sde, sdf, sdg, sdh, sdi, sdj, SDK
Get the wwwid of these eight devices respectively
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sdd
36090a07800d95e494dcca40c000080b6
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sde
36090a07800d9defd23cb440c000000b8
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sdf
36090a07800d97efc23cb140c000010
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sdg
36090a07800d91e6357ca040a000030a9
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sdh
36090a07800d98e6657ca340a0000a01c
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sdi
36090a07800d97e6957ca640a00001025
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sdj
36090a07800d91e6b57ca940a0000c0b7
[root@rac122 userfile] # / sbin/scsi_id-g-u-s / block/sdk
36090a07800d9cedc10cc740c0000d010
After obtaining the wwwid of each device, add the following to the configuration file / etc/multipath.conf
Multipaths {
Multipath {
Wwid 36090a07800d98e6657ca340a0000a01c
Alias vol-aidev01
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
Multipath {
Wwid 36090a07800d97efc23cb140c0000106b
Alias vol-aidev02
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
Multipath {
Wwid 36090a07800d91e6b57ca940a0000c0b7
Alias vol-aidev03
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
Multipath {
Wwid 36090a07800d91e6357ca040a000030a9
Alias vol-aidev04
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
Multipath {
Wwid 36090a07800d95e494dcca40c000080b6
Alias vol-aidev05
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
Multipath {
Wwid 36090a07800d9defd23cb440c000000b8
Alias vol-aidev06
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
Multipath {
Wwid 36090a07800d9cedc10cc740c0000d010
Alias vol-aidev07
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
Multipath {
Wwid 36090a07800d97e6957ca640a00001025
Alias vol-aidev08
Path_grouping_policy multibus
Path_checker readsector0
Path_selector "round-robin 0"
Failback manual
Rr_weight priorities
No_path_retry 5
}
}
Devices {
Device {
Vendor "COMPAQ"
Product "HSV110 (C) COMPAQ"
Path_grouping_policy multibus
Getuid_callout "/ sbin/scsi_id-g-u-s / block/%n"
Path_checker readsector0
Path_selector "round-robin 0"
Hardware_handler "0"
Failback 15
Rr_weight priorities
No_path_retry queue
}
}
Restart the Multipath service and verify the configuration
Restart the service
[root@rac122 userfile] # service multipathd restart
Stopping multipathd daemon: [OK]
Starting multipathd daemon: [OK]
Show Mapping
[root@rac122 userfile] # ls-lrt / dev/mapper/*
Crw- 1 root root 10, 63 May 28 10:32 / dev/mapper/control
Brw- 1 root root 253, 6 May 28 10:32 / dev/mapper/VG00-LV_SP01
Brw- 1 root root 253, 0 May 28 10:32 / dev/mapper/VG00-LV01
Brw- 1 root root 253, 1 May 28 10:32 / dev/mapper/VG00-LV_DATA01
Brw- 1 root root 253, 2 May 28 10:32 / dev/mapper/VG00-LV_TMP01
Brw- 1 root root 253, 3 May 28 10:32 / dev/mapper/VG00-LV_ORADATA01
Brw- 1 root root 253, 4 May 28 10:32 / dev/mapper/VG00-LV_VAR01
Brw- 1 root root 253, 5 May 28 10:32 / dev/mapper/VG00-LV_SW01
Brw-rw---- 1 root disk 253, 12 Jun 6 22:08 / dev/mapper/vol-aidev08
Brw-rw---- 1 root disk 253, 8 Jun 6 22:08 / dev/mapper/vol-aidev06
Brw-rw---- 1 root disk 253, 7 Jun 6 22:08 / dev/mapper/vol-aidev05
Brw-rw---- 1 root disk 253, 10 Jun 6 22:08 / dev/mapper/vol-aidev04
Brw-rw---- 1 root disk 253, 9 Jun 6 22:08 / dev/mapper/vol-aidev02
Brw-rw---- 1 root disk 253, 11 Jun 6 22:08 / dev/mapper/vol-aidev01
Brw-rw---- 1 root disk 253, 14 Jun 6 22:08 / dev/mapper/vol-aidev07
Brw-rw---- 1 root disk 253, 13 Jun 6 22:08 / dev/mapper/vol-aidev03
The multipath command can see the active path.
[root@rac122 userfile] # multipath-ll
Vol-aidev08 (36090a07800d97e6957ca640a00001025) dm-12 EQLOGIC,100E-00
[size=8.0G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 26 ready 0 sdi 812 [active] [ready]
Vol-aidev07 (36090a07800d9cedc10cc740c0000d010) dm-14 EQLOGIC,100E-00
[size=100G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 20 ready 0 sdk 8 ready [active]
Vol-aidev06 (36090a07800d9defd23cb440c000000b8) dm-8 EQLOGIC,100E-00
[size=16G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 22 ready 0 sde 8:64 [active] [ready]
Vol-aidev05 (36090a07800d95e494dcca40c000080b6) dm-7 EQLOGIC,100E-00
[size=500G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 21 ready 0 sdd 8:48 [active] [ready]
Vol-aidev04 (36090a07800d91e6357ca040a000030a9) dm-10 EQLOGIC,100E-00
[size=8.0G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 25 sdg 8:96 [active] [ready]
Vol-aidev03 (36090a07800d91e6b57ca940a0000c0b7) dm-13 EQLOGIC,100E-00
[size=8.0G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 27 ready 0 sdj 815 [active] [ready]
Vol-aidev02 (36090a07800d97efc23cb140c0000106b) dm-9 EQLOGIC,100E-00
[size=16G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 23 sdf 0 sdf 8:80 [active] [ready]
Vol-aidev01 (36090a07800d98e6657ca340a0000a01c) dm-11 EQLOGIC,100E-00
[size=8.0G] [features=1 queue_if_no_path] [hwhandler=0] [rw]
\ _ round-robin 0 [prio=1] [active]
\ _ 24 ready 0 sdh 812 [active] [ready]
Set the multipath service to boot automatically
[root@rac121 ~] # chkconfig multipathd on
So much for the wwid about how to configure iscsi+multipath multipath storage on RedHat 5.4.I hope the above can help you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.