日期:2014-05-16  浏览次数:20713 次

HP Unix查看外部硬盘空间大小的方法

1.用ioscan -fnC disk | more区分内外部硬盘

2.查看PE的大小

test01#[/] vgdisplay | grep "PE Size"
PE Size (Mbytes) 16
PE Size (Mbytes) 16
PE Size (Mbytes) 4
PE Size (Mbytes) 16

3.查看剩余的PE

test01#[/] vgdisplay | grep "Free PE"
Free PE 2184
Free PE 323
Free PE 1760
Free PE 413

4.算出外部硬盘剩余空间的大小

排除内部硬盘的Free PE和 PE Size
把剩下的一一对应相乘,最后相加就能得到外部硬盘剩余空间的大小

[PE Size (Mbytes) 16] * [Free PE 2184] //内部硬盘排除//
[PE Size (Mbytes) 16] * [Free PE 323]
[PE Size (Mbytes) 4] * [Free PE 1760]
[PE Size (Mbytes) 16] * [Free PE 413]

?

?

?

ioscan -fnC disk | more?????????????????????????????????????????????????????????????????????????????????????????
Class???? I? H/W Path?????? Driver S/W State?? H/W Type???? Description
=======================================================================
disk????? 0? 0/0/0/2/0.6.0? sdisk?? CLAIMED???? DEVICE?????? HP 146 GMBA3147NC
?????????????????????????? /dev/dsk/c0t6d0???? /dev/dsk/c0t6d0s2?? /dev/rdsk/c0t6d0??? /dev/rdsk/c0t6d0s2
?????????????????????????? /dev/dsk/c0t6d0s1?? /dev/dsk/c0t6d0s3?? /dev/rdsk/c0t6d0s1? /dev/rdsk/c0t6d0s3
disk????? 1? 0/0/0/2/1.2.0? sdisk?? CLAIMED???? DEVICE?????? Optiarc DVD RW AD-5200A
?????????????????????????? /dev/dsk/c1t2d0?? /dev/rdsk/c1t2d0
disk????? 2? 0/0/0/3/0.6.0? sdisk?? CLAIMED???? DEVICE?????? HP 146 GST3146855LC
?????????????????????????? /dev/dsk/c2t6d0???? /dev/dsk/c2t6d0s2?? /dev/rdsk/c2t6d0??? /dev/rdsk/c2t6d0s2
?????????????????????????? /dev/dsk/c2t6d0s1?? /dev/dsk/c2t6d0s3?? /dev/rdsk/c2t6d0s1? /dev/rdsk/c2t6d0s3
disk??? 150? 1/0/4/1/0.1.0.42.0.8.3? sdisk?? CLAIMED???? DEVICE?????? HP????? A6189B
?????????????????????????? /dev/dsk/c8t8d3?? /dev/rdsk/c8t8d3
disk??? 157? 1/0/4/1/0.1.0.42.0.8.4? sdisk?? CLAIMED???? DEVICE?????? HP????? A6189B
?????????????????????????? /dev/dsk/c8t8d4?? /dev/rdsk/c8t8d4
disk??? 583? 1/0/4/1/0.1.7.0.0.0.0?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d0?? /dev/rdsk/c20t0d0
disk??? 584? 1/0/4/1/0.1.7.0.0.0.1?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d1?? /dev/rdsk/c20t0d1
disk??? 585? 1/0/4/1/0.1.7.0.0.0.2?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d2?? /dev/rdsk/c20t0d2
disk??? 586? 1/0/4/1/0.1.7.0.0.0.3?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d3?? /dev/rdsk/c20t0d3
disk??? 587? 1/0/4/1/0.1.7.0.0.0.4?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d4?? /dev/rdsk/c20t0d4
disk??? 588? 1/0/4/1/0.1.7.0.0.0.5?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d5?? /dev/rdsk/c20t0d5
disk??? 589? 1/0/4/1/0.1.7.0.0.0.6?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d6?? /dev/rdsk/c20t0d6
disk??? 590? 1/0/4/1/0.1.7.0.0.0.7?? sdisk?? CLAIMED???? DEVICE?????? IBM???? 1722-600
?????????????????????????? /dev/dsk/c20t0d7?? /dev/rdsk/c20t0d7
disk??? 591? 1/0/4/1/0.1.7.0.0.3.7?? sdisk?? CLAIMED???? DEVICE?????? IBM???? Universal Xport
?????????????????????????? /dev/dsk/c20t3d7?? /dev/rdsk/c20t3d7
#? vgdisplay | grep "PE Size"
PE Size (Mbytes)??????????? 32??????????????
PE Size (Mbytes)??????????? 4???????????????
PE Size (Mbytes)??????????? 16??????????????
PE Size (Mbytes)??????????? 16??????????????
PE Size (Mbytes)??????????? 16??????????????
# vgdisplay | grep "Free PE"
Free PE????????????