AIX: Script to get Total Disk Size

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
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX Resolving "missing" or "removed" disks in AIX LVM
Viewed 5893 times since Tue, Aug 6, 2019
Reconfigure RSCT ID to fix DLPAR issues on cloned AIX systems
Viewed 16561 times since Thu, Feb 21, 2019
The new VIOS performance advisor tool part util
Viewed 4081 times since Tue, Jun 4, 2019
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 6993 times since Fri, Jan 31, 2020
SNAP
Viewed 2608 times since Mon, Sep 17, 2018
AIX -- extending Logical Volumes online
Viewed 3512 times since Tue, Mar 12, 2019
Install and configure GNU watch (gwatch) on AIX
Viewed 8551 times since Thu, Feb 21, 2019
AIX perf how to
Viewed 20135 times since Tue, Aug 14, 2018
List STALE partitions across Volume Groups for each Logical Volume in AIX
Viewed 3352 times since Tue, Jul 17, 2018
AIX, Monitoring, System Admin↑ NMON recordings
Viewed 3694 times since Fri, Apr 19, 2019