I created 6 volumes on my Storwize V7000 Storage Array, and mapped them to my RedHat Linux 5.5 host. Each volume that I created has a unique UID assigned to it eg. vol01 has UID 60050768018103ABF000000000000001, while vol02 has UID 60050768018103ABF000000000000002 and so on.
Find the HBA host ids of the Linux system.
Next scan the SCSI but to detect the new volumes.
On my linux host side I enabled the native multipathing(Device Mapper-Multipath). Now on doing "multipath -d -l" from the command line I see the following:
From this we can see that volume vol01 maps to dm-1, vol02 to dm-4, vol03 to dm-5, vol04 to dm-6, vol05 to dm-0, and vol06 to dm-2
After changing the owner and group of the volumes to oracle and dba:
Find the HBA host ids of the Linux system.
[root@isvx3 ~]# ls /sys/class/fc_host host5 host6
Next scan the SCSI but to detect the new volumes.
[root@isvx3 ~]# echo "- - -" > /sys/class/scsi_host/host5/scan [root@isvx3 ~]# echo "- - -" > /sys/class/scsi_host/host6/scan
On my linux host side I enabled the native multipathing(Device Mapper-Multipath). Now on doing "multipath -d -l" from the command line I see the following:
[root@isvx3 vdbench]# multipath -d -l mpath1 (3600507680192828b8800000000000002) dm-3 IBM,2145 [size=250G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 6:0:4:0 sdad 65:208 [active][undef] \_ 6:0:5:0 sdae 65:224 [active][undef] \_ 6:0:6:0 sdaf 65:240 [active][undef] \_ 6:0:7:0 sdag 66:0 [active][undef] \_ 5:0:4:0 sdn 8:208 [active][undef] \_ 5:0:5:0 sdo 8:224 [active][undef] \_ 5:0:6:0 sdp 8:240 [active][undef] \_ 5:0:7:0 sdq 65:0 [active][undef]mpath9 (360050768018103abf000000000000006) dm-2 IBM,2145[size=500G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 6:0:1:5 sdac 65:192 [active][undef] \_ 5:0:0:5 sdg 8:96 [active][undef] \_ 5:0:1:5 sdm 8:192 [active][undef] \_ 6:0:0:5 sdw 65:96 [active][undef]mpath8 (360050768018103abf000000000000001) dm-1 IBM,2145[size=500G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 6:0:1:4 sdab 65:176 [active][undef] \_ 5:0:0:4 sdf 8:80 [active][undef] \_ 5:0:1:4 sdl 8:176 [active][undef] \_ 6:0:0:4 sdv 65:80 [active][undef]mpath7 (360050768018103abf000000000000005) dm-0 IBM,2145[size=500G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 6:0:1:3 sdaa 65:160 [active][undef] \_ 5:0:0:3 sde 8:64 [active][undef] \_ 5:0:1:3 sdk 8:160 [active][undef] \_ 6:0:0:3 sdu 65:64 [active][undef]mpath6 (360050768018103abf000000000000004) dm-6 IBM,2145[size=500G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 5:0:0:2 sdd 8:48 [active][undef] \_ 5:0:1:2 sdj 8:144 [active][undef] \_ 6:0:0:2 sdt 65:48 [active][undef] \_ 6:0:1:2 sdz 65:144 [active][undef]mpath5 (360050768018103abf000000000000003) dm-5 IBM,2145[size=500G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 5:0:0:1 sdc 8:32 [active][undef] \_ 5:0:1:1 sdi 8:128 [active][undef] \_ 6:0:0:1 sds 65:32 [active][undef] \_ 6:0:1:1 sdy 65:128 [active][undef]mpath4 (360050768018103abf000000000000002) dm-4 IBM,2145[size=500G][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 5:0:0:0 sdb 8:16 [active][undef] \_ 5:0:1:0 sdh 8:112 [active][undef] \_ 6:0:0:0 sdr 65:16 [active][undef] \_ 6:0:1:0 sdx 65:112 [active][undef] [root@isvx3 vdbench]#
From this we can see that volume vol01 maps to dm-1, vol02 to dm-4, vol03 to dm-5, vol04 to dm-6, vol05 to dm-0, and vol06 to dm-2
After changing the owner and group of the volumes to oracle and dba:
[root@isvx3 ~]# chown -R oracle:dba /dev/mapper/mpath6 [root@isvx3 ~]# chown -R oracle:dba /dev/mapper/mpath7 [root@isvx3 ~]# chown -R oracle:dba /dev/mapper/mpath8 [root@isvx3 ~]# chown -R oracle:dba /dev/mapper/mpath9I then used 4 of these volumes to create an Oracle ASM Disk Group during my 11g R2 Grid Infrastructure installation.
No comments:
Post a Comment