AIX: Script to get Total Disk Size
Article Number: 264 | Rating: Unrated | Last Updated: Tue, Jun 12, 2018 9:07 AM
Single Server
Total Disk Size (hdisk)
1
|
for i in `lspv | awk '{print $1}' `; do bootinfo -s $i; done | awk '{s+=$1} END {print s}' | while read x; do echo $x /1024 | bc ; done |
Total Disk Size (hdiskpower)
1
|
for i in `lspv | grep hdiskpower | awk '{print $1}' `; do bootinfo -s $i; done | awk '{s+=$1} END {print s}' | while read x; do echo $x /1024 | bc ; done |