$ lspv
hdisk1 00c164fe384b126e rootvg activehdisk2 00c161aea0faa65d oradatavg concurrenthdisk3 none None hdisk4 none None hdisk5 none None hdisk0 00c164fe37b990cf rootvg active$ lsdev -Cc disk
hdisk0 Available 0D-08-00-5,0 16 Bit LVD SCSI Disk Drive---本地盘 hdisk1 Available 0P-08-00-5,0 16 Bit LVD SCSI Disk Drivehdisk2 Available 0A-08-01-01 e4000 Fibre Channel Storage---光纤盘hdisk3 Available 0A-08-01-01 e4000 Fibre Channel Storagehdisk4 Available 0A-08-01-01 e4000 Fibre Channel Storagehdisk5 Available 0A-08-01-01 e4000 Fibre Channel Storage 对于物理硬盘的实际使用大小,等同于从该硬盘中分配出的PPs乘以PP SIZE。# lsvg | lsvg -i -p用“ TOTAL PPs”-“FREE PPs”得出“USED PPs”即已经分配出的PPs,#lsvg | lsvg -i查出每个VG的“PP SIZE”值。根据公式计算,得出每个物理硬盘的使用大小。对于磁盘阵列上的硬盘使用大小,一般指是LUN的大小。四、HBA卡信息
#lsdev -Cc adapter|grep fcs#lsattr -El fcs0查看HBA卡的物理插槽、WWN:#lscfg -vpl fcs0fcs0 U78A0.001.DNWK9W6-P1-C4-T1 FC AdapterNetwork Address.............10000000C9B54A92Hardware Location Code......U78A0.001.DNWK9W6-P1-C4-T1以上Network Address即为fcs0的WWN。在HBA卡数量未知的情况下,可以采用以下脚本一次性收集所有HBA卡的物理插槽、WWN信息,这点项目中非常经常用到,因为需要收集HBA卡的WWN用于SAN交换机配置ZONE信息、存储端也需要WWN用于Mapping LUN:netstat -v en0 |grep -i speed