Chapter 13. Miscellaneous tasks 217
availability driver lic_version peer_wwpn subsystem
card_version failed modalias port_remove uevent
cmb_enable hardware_version online port_rescan
cutype host2 peer_d_id power
# cd 0x500507630503c73d
3. Echo the same LUN into the unit_add file. This action enables the same LUN, but from a
different WWPN.
# cd /sys/bus/ccw/drivers/zfcp/0.0.010a
# ls
0x500507630513c73d devtype in_recovery peer_wwnn status
availability driver lic_version peer_wwpn subsystem
card_version failed modalias port_remove uevent
cmb_enable hardware_version online port_rescan
cutype host1 peer_d_id power
# cd 0x500507630513c73d/
# ls
access_denied in_recovery status unit_add
failed power uevent unit_remove
# echo 0x4020400800000000 > unit_add
# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 1074282528
Vendor: IBM Model: 2107900 Rev: .310
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 1074282528
Vendor: IBM Model: 2107900 Rev: .310
Type: Direct-Access ANSI SCSI revision: 05
4. At this point, the system thinks there are two LUNs, but actually there are two paths to the
same LUN.
5. Install the device-mapper-multipath RPM:
# yum -y install device-mapper-multipath
...
6. Create the /etc/multipath.conf file:
# cd /etc
# vi multipath.conf
defaults {
user_friendly_names yes
}
7. Turn the multipath service on for this session and across reboots:
# service multipathd start
Starting multipathd daemon: [ OK ]
# chkconfig multipathd on
# multipath -ll
mpatha (36005076305ffc73d0000000000002008) dm-4 IBM,2107900
size=8.0G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 0:0:0:1074282528 sda 8:0 active ready running
`- 1:0:0:1074282528 sdb 8:16 active ready running
Commenti su questo manuale