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
A Unix Utility You Should Know About: lsof
Viewed 1913 times since Tue, Apr 16, 2019
AIX Undocumented AIX command lquerypv
Viewed 3561 times since Tue, Jul 17, 2018
Useful AIX general commands
Viewed 11768 times since Wed, Apr 17, 2019
AIX Creating EtherChannel Devices from Command Line
Viewed 3457 times since Mon, Jun 3, 2019
AIX: How do you send an attachment via mail
Viewed 2824 times since Mon, Jun 11, 2018
Install and configure GNU watch (gwatch) on AIX
Viewed 7743 times since Thu, Feb 21, 2019
AIX, Monitoring, System Admin↑ NMON recordings
Viewed 2968 times since Fri, Apr 19, 2019
AIX Different Commands For Paging Space Administration swap file create
Viewed 7369 times since Thu, Aug 1, 2019
Convert to Scalable Volume Groups
Viewed 3782 times since Wed, May 30, 2018
Install and configure GNU’s screen on AIX
Viewed 8874 times since Thu, Feb 21, 2019