The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
# ls<br />
access_denied in_recovery status unit_add<br />
failed power uevent unit_remove<br />
# echo 0x4020400800000000 > unit_add<br />
# cat /proc/scsi/scsi<br />
Attached devices:<br />
Host: scsi0 Channel: 00 Id: 00 Lun: <strong>10</strong>74282528<br />
Vendor: <strong>IBM</strong> Model: 2<strong>10</strong>7900 Rev: .3<strong>10</strong><br />
Type: Direct-Access ANSI SCSI revision: 05<br />
Host: scsi1 Channel: 00 Id: 00 Lun: <strong>10</strong>74282528<br />
Vendor: <strong>IBM</strong> Model: 2<strong>10</strong>7900 Rev: .3<strong>10</strong><br />
Type: Direct-Access ANSI SCSI revision: 05<br />
► At this point the system thinks there are two LUNs, but actually there are two paths to the<br />
same LUN.<br />
► Install the device-mapper-multipath RPM:<br />
# yum -y install device-mapper-multipath<br />
...<br />
► Create a file /etc/multipath.conf:<br />
# cd /etc<br />
# vi multipath.conf<br />
defaults {<br />
user_friendly_names yes<br />
}<br />
► Turn the multipath service on <strong>for</strong> this session and across reboots:<br />
# service multipathd start<br />
Starting multipathd daemon: [ OK ]<br />
# chkconfig multipathd on<br />
# multipath -ll<br />
mpatha (36005076305ffc73d0000000000002008) dm-4 <strong>IBM</strong>,2<strong>10</strong>7900<br />
size=8.0G features='1 queue_if_no_path' hwhandler='0' wp=rw<br />
`-+- policy='round-robin 0' prio=1 status=active<br />
|- 0:0:0:<strong>10</strong>74282528 sda 8:0 active ready running<br />
`- 1:0:0:<strong>10</strong>74282528 sdb 8:16 active ready running<br />
► Add an entry to /etc/multipath.conf using the mpatha value (WWID)<br />
defaults {<br />
user_friendly_names yes<br />
}<br />
# create a friendly name - test_lun<br />
multipaths {<br />
multipath {<br />
wwid 36005076305ffc73d0000000000002008<br />
alias test_lun<br />
no_path_retry 5<br />
}<br />
}<br />
► Restart the multipath service and verify that the new test_lun friendly name has been<br />
added:<br />
]# service multipathd restart<br />
Stopping multipathd daemon: [ OK ]<br />
Starting multipathd daemon: [ OK ]<br />
[root@train4 etc]# ls /dev/mapper<br />
control system_vg-tmp_lv system_vg-var_lv test_lunp1<br />
system_vg-opt_lv system_vg-usr_lv test_lun<br />
204 <strong>The</strong> <strong>Virtualization</strong> <strong>Cookbook</strong> <strong>for</strong> RHEL 6