10. 收集和显示IO统计信息
- 显示IO统计信息
root@node1 # vxdmpadm iostat start
开启IO统计信息收集
root@node1 # vxdmpadm iostat show dmpnodename=ams_23000_13 interval=5 count=2
cpu usage = 411188us per cpu memory = 77824b
OPERATIONS BLOCKS AVG TIME(ms)
PATHNAME READS WRITES READS WRITES READS WRITES
c2t0d5s2 138210 320309 174580 1927284 10.62 1.41
c3t0d5s2 141862 333628 180039 1989281 0.60 1.60c2t0d5s2 7 27 7 258 0.35 0.46
c3t0d5s2 8 32 8 267 0.17 0.41显示IO统计信息
root@node1 # vxdmpadm iostat stop停止IO统计信息收集
root@node1 # vxdmpadm -q iostat show dmpnodename=ams_23000_13 interval=5 count=2
cpu usage = 1773us per cpu memory = 8192b
QUEUED I/Os PENDING I/Os
DMPNODENAME READS WRITES
ams_23000_13 0 0 0ams_23000_13 0 0 0
-q: 显示队列中的IO信息
root@node1 # vxdmpadm -e iostat show dmpnodename=ams_23000_13 interval=5 count=2
cpu usage = 5536us per cpu memory = 8192b
ERROR I/Os
DMPNODENAME READS WRITES
ams_23000_13 0 0ams_23000_13 0 0
-e: 显示IO Error信息
root@node1 # vxdmpadm -zq iostat show dmpnodename=ams_23000_13 interval=5 count=2
-z: 去掉全是0的信息
- 显示IO累积信息
root@node1 # vxdmpadm iostat show groupby=dmpnode dmpnodename=ams_23000_13 interval=5 count=2
cpu usage = 12684us per cpu memory = 8192b
OPERATIONS BLOCKS AVG TIME(ms)
DMPNODENAME READS WRITES READS WRITES READS WRITES
ams_23000_13 2808 6714 2808 37745 1.35 0.67ams_23000_13 15 29 15 109 0.29 0.26
groupby dmpnode
root@node1 # vxdmpadm iostat show groupby=ctlr all interval=5 count=2
cpu usage = 13878us per cpu memory = 8192b
OPERATIONS BLOCKS AVG TIME(ms)
CTLRNAME READS WRITES READS WRITES READS WRITES
c1 0 0 0 0 0.00 0.00
c2 2852 4406 43595 39537 1.40 0.67
c3 2862 4498 45186 39212 0.21 0.55c1 0 0 0 0 0.00 0.00
c2 10 28 134 289 0.35 0.24
c3 16 25 233 254 0.19 0.24groupby controler
root@node1 # vxdmpadm iostat show groupby=arrayport enclosure=ams_23000 portid=0D interval=5 count=2
cpu usage = 15301us per cpu memory = 8192b
OPERATIONS BLOCKS AVG TIME(ms)
PORTIDS READS WRITES READS WRITES READS WRITES
ams_23000:0D 3202 4976 50426 43550 0.21 0.53ams_23000:0D 15 20 201 206 0.17 0.22
groupby array port
root@node1 # vxdmpadm iostat show groupby=enclosure all interval=5 count=2
cpu usage = 17496us per cpu memory = 8192b
OPERATIONS BLOCKS AVG TIME(ms)
ENCLOSURENAME READS WRITES READS WRITES READS WRITES
ams_23000 7226 11257 111905 98945 0.70 0.62
disk 0 0 0 0 0.00 0.00ams_23000 26 66 367 721 0.24 1.61
disk 0 0 0 0 0.00 0.00groupby enclosure