How to find the system’s disk capacity

aixcapacitydfshard drive

I run the command df -g to get the GB block sizes in the second column (left to right). If I want to get the total capacity for all hard disks, which command should I use?

OS is AIX.

Best Answer

for i in `lspv | awk '{print $1}'`
do
    echo $i
    lsattr -El -a size_in_mb $i
done

Or via ODM:

odmget -q"name like hdisk* and attribute=size_in_mb" CuAt