3. 获取DMP node信息
- 根据物理路径获取DMP node信息
root@node1 # vxdmpadm -v getdmpnode nodename=c2t0d4s2
NAME STATE ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME SERIAL-NO ARRAY_VOL_ID
==================================================================================
ams_23000_12 ENABLED AMS_2300 2 2 0 ams_23000 000C 12
- 获取某个Enclosure的DMP node信息
root@node1 # vxdmpadm getdmpnode enclosure=ams_23000
NAME STATE ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME
==============================================================================
ams_23000_8 ENABLED AMS_2300 2 2 0 ams_23000
ams_23000_9 ENABLED AMS_2300 2 2 0 ams_23000
ams_23000_10 ENABLED AMS_2300 2 2 0 ams_23000
ams_23000_11 ENABLED AMS_2300 2 2 0 ams_23000
ams_23000_12 ENABLED AMS_2300 2 2 0 ams_23000
ams_23000_13 ENABLED AMS_2300 2 2 0 ams_23000
4. 显示DMP node详细信息
root@node1 # vxdmpadm list dmpnode dmpnodename=ams_23000_12
dmpdev = ams_23000_12
state = enabled
enclosure = ams_23000
cab-sno = 85011079
asl = libvxhdsalua.so
vid = HITACHI
pid = DF600F
array-name = AMS_2300
array-type = A/A
iopolicy = MinimumQ
avid = 12
lun-sno = 000C
udid = HITACHI%5FDF600F%5F85011079%5F000C
dev-attr = std fc RAID_5
###path = name state type transport ctlr hwpath aportID aportWWN attr
path = c2t0d4s2 enabled(a) - FC c2 /pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0 1D 50:06:0e:80:10:25:25:77 -
path = c3t0d4s2 enabled(a) - FC c3 /pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0 0D 50:06:0e:80:10:25:25:73 -如果路径是手工disable的,路径状态为disabled(m).
其它命令:
vxdmpadm list dmpnode all
vxdmpadm list dmpnode enclosure=enclosure name
5. 显示DMP路径
- 显示所有路径
root@node1 # vxdmpadm getsubpaths
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-NAME CTLR ATTRS
================================================================================
c2t0d2s2 ENABLED(A) - ams_23000_10 ams_23000 c2 -
c3t0d2s2 ENABLED(A) - ams_23000_10 ams_23000 c3 -
c2t0d3s2 ENABLED(A) - ams_23000_11 ams_23000 c2 -
c3t0d3s2 ENABLED(A) - ams_23000_11 ams_23000 c3 -
- 显示某个DMP路径
root@node1 # vxdmpadm getsubpaths dmpnodename=ams_23000_9
NAME STATE[A] PATH-TYPE[M] CTLR-NAME ENCLR-TYPE ENCLR-NAME ATTRS
================================================================================
c2t0d1s2 ENABLED(A) - c2 AMS_2300 ams_23000 -
c3t0d1s2 ENABLED(A) - c3 AMS_2300 ams_23000 -
- 显示某个controler对应的路径
root@node1 # vxdmpadm getsubpaths ctlr=c2
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-TYPE ENCLR-NAME ATTRS
================================================================================
c2t0d2s2 ENABLED(A) - ams_23000_10 AMS_2300 ams_23000 -
c2t0d3s2 ENABLED(A) - ams_23000_11 AMS_2300 ams_23000 -
c2t0d4s2 ENABLED(A) - ams_23000_12 AMS_2300 ams_23000 -
c2t0d5s2 ENABLED(A) - ams_23000_13 AMS_2300 ams_23000 -
c2t0d0s2 ENABLED(A) - ams_23000_8 AMS_2300 ams_23000 -
c2t0d1s2 ENABLED(A) - ams_23000_9 AMS_2300 ams_23000 -
- 显示阵列端口对应的路径
root@node1 # vxdmpadm getsubpaths enclosure=ams_23000 portid=1D
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-NAME CTLR ATTRS
================================================================================
c2t0d2s2 ENABLED(A) - ams_23000_10 ams_23000 c2 -
c2t0d3s2 ENABLED(A) - ams_23000_11 ams_23000 c2 -
c2t0d4s2 ENABLED(A) - ams_23000_12 ams_23000 c2 -
c2t0d5s2 ENABLED(A) - ams_23000_13 ams_23000 c2 -
c2t0d0s2 ENABLED(A) - ams_23000_8 ams_23000 c2 -
c2t0d1s2 ENABLED(A) - ams_23000_9 ams_23000 c2 -
root@node1 #
root@node1 # vxdmpadm getsubpaths enclosure=ams_23000 portid=0D
NAME STATE[A] PATH-TYPE[M] DMPNODENAME ENCLR-NAME CTLR ATTRS
================================================================================
c3t0d2s2 ENABLED(A) - ams_23000_10 ams_23000 c3 -
c3t0d3s2 ENABLED(A) - ams_23000_11 ams_23000 c3 -
c3t0d4s2 ENABLED(A) - ams_23000_12 ams_23000 c3 -
c3t0d5s2 ENABLED(A) - ams_23000_13 ams_23000 c3 -
c3t0d0s2 ENABLED(A) - ams_23000_8 ams_23000 c3 -
c3t0d1s2 ENABLED(A) - ams_23000_9 ams_23000 c3 -
6. 显示控制器信息
root@node1 # vxdmpadm listctlr all
CTLR-NAME ENCLR-TYPE STATE ENCLR-NAME
=====================================================
c2 AMS_2300 ENABLED ams_23000
c3 AMS_2300 ENABLED ams_23000
c1 Disk ENABLED disk
root@node1 # vxdmpadm getctlr c3
LNAME PNAME VENDOR CTLR-ID
=================================================================================
c3 /pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0 QLogic Corp. 21:00:00:e0:8b:9c:a9:77
7. 显示enclosure信息
root@node1 # vxdmpadm listenclosure all
ENCLR_NAME ENCLR_TYPE ENCLR_SNO STATUS ARRAY_TYPE LUN_COUNT
================================================================================
disk Disk DISKS CONNECTED Disk 1
ams_23000 AMS_2300 85011079 CONNECTED A/A 6
8. 显示阵列端口信息
root@node1 # vxdmpadm getportids enclosure=ams_23000
NAME ENCLR-NAME ARRAY-PORT-ID pWWN
==============================================================================
c2t0d0s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d1s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d2s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d3s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d4s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d5s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c3t0d0s2 ams_23000 0D 50:06:0e:80:10:25:25:73
c3t0d1s2 ams_23000 0D 50:06:0e:80:10:25:25:73
c3t0d2s2 ams_23000 0D 50:06:0e:80:10:25:25:73
c3t0d3s2 ams_23000 0D 50:06:0e:80:10:25:25:73
c3t0d4s2 ams_23000 0D 50:06:0e:80:10:25:25:73
c3t0d5s2 ams_23000 0D 50:06:0e:80:10:25:25:73
root@node1 # vxdmpadm getportids path=c2t0d0s2
NAME ENCLR-NAME ARRAY-PORT-ID pWWN
==============================================================================
c2t0d0s2 ams_23000 1D 50:06:0e:80:10:25:25:77
root@node1 # vxdmpadm getportids dmpnodename=ams_23000_9
NAME ENCLR-NAME ARRAY-PORT-ID pWWN
==============================================================================
c2t0d1s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c3t0d1s2 ams_23000 0D 50:06:0e:80:10:25:25:73
root@node1 # vxdmpadm getportids ctlr=c2
NAME ENCLR-NAME ARRAY-PORT-ID pWWN
==============================================================================
c2t0d0s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d1s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d2s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d3s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d4s2 ams_23000 1D 50:06:0e:80:10:25:25:77
c2t0d5s2 ams_23000 1D 50:06:0e:80:10:25:25:77
9. 显示DDL扩展属性
root@node1 # vxdisk -p list
DISK : ams_23000_8
DISKID : 1333093199.25.node1
VID : HITACHI
UDID : HITACHI%5FDF600F%5F85011079%5F0008
SCSI_VERSION : 4
REVISION : 0000
PORT_SERIAL_NO : 1D
PID : DF600F
PHYS_CTLR_NAME : /pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0
MEDIA_TYPE : hdd
LUN_SNO_ORDER : 0
LUN_SERIAL_NO : 0008
LIBNAME : libvxhdsalua.so
DMP_DEVICE : ams_23000_8
DDL_THIN_DISK : thick
DDL_DEVICE_ATTR: std fc RAID_5
CAB_SERIAL_NO : 85011079
ATYPE : A/A
ARRAY_VOLUME_ID: 8
ARRAY_PORT_PWWN: 50:06:0e:80:10:25:25:77
ANAME : AMS_2300
TRANSPORT : FCDISK : ams_23000_9
DISKID : 1333093207.27.node1
VID : HITACHI
UDID : HITACHI%5FDF600F%5F85011079%5F0009
SCSI_VERSION : 4
REVISION : 0000
PORT_SERIAL_NO : 1D
PID : DF600F
PHYS_CTLR_NAME : /pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0
MEDIA_TYPE : hdd
LUN_SNO_ORDER : 1
LUN_SERIAL_NO : 0009
LIBNAME : libvxhdsalua.so
DMP_DEVICE : ams_23000_9
DDL_THIN_DISK : thick
DDL_DEVICE_ATTR: std fc RAID_5
CAB_SERIAL_NO : 85011079
ATYPE : A/A
ARRAY_VOLUME_ID: 9
ARRAY_PORT_PWWN: 50:06:0e:80:10:25:25:77
ANAME : AMS_2300
TRANSPORT : FC……
root@node1 # vxdisk -x DDL_DEVICE_ATTR -x VID -p list
DEVICE DDL_DEVICE_ATTR VID
ams_23000_8 std fc RAID_5 HITACHI
ams_23000_9 std fc RAID_5 HITACHI
ams_23000_10 std fc RAID_5 HITACHI
ams_23000_11 std fc RAID_5 HITACHI
ams_23000_12 std fc RAID_5 HITACHI
ams_23000_13 std fc RAID_5 HITACHI
disk_0 NULL HITACHI
root@node1 # vxdisk -e list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
ams_23000_8 auto:cdsdisk - - online c2t0d0s2 std fc RAID_5
ams_23000_9 auto:cdsdisk - - online c2t0d1s2 std fc RAID_5
ams_23000_10 auto:cdsdisk - - online c2t0d2s2 std fc RAID_5
ams_23000_11 auto:cdsdisk ams_23000_11 oradatadg online shared c2t0d3s2 std fc RAID_5
ams_23000_12 auto:cdsdisk ams_23000_12 oradatadg online shared c2t0d4s2 std fc RAID_5
ams_23000_13 auto:cdsdisk ams_23000_13 oracrsdg online shared c2t0d5s2 std fc RAID_5
disk_0 auto:none - - online invalid c1t0d0s2 -