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
Part 3, Tuning swap space settings AIX7
Viewed 9168 times since Wed, Jun 19, 2019
AIX, Storage, System Admin↑ Identifying a Disk Bottleneck Using filemon
Viewed 10057 times since Fri, Apr 19, 2019
Manages processor scheduler tunable parameters schedo AIX
Viewed 2683 times since Thu, Sep 20, 2018
Kerberos, Active Directory and AIX
Viewed 6563 times since Mon, Jun 25, 2018
Manually Editing /etc/filesystems Can Cause Issues
Viewed 5668 times since Tue, May 22, 2018
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 47165 times since Fri, Aug 21, 2020
IBM AIX multipath I/O (MPIO) resiliency and problem determination
Viewed 13839 times since Wed, May 30, 2018
Secure Secure Shell
Viewed 10972 times since Fri, Aug 21, 2020
AIX Not all filesets for 6100-07_AIX_ML were found
Viewed 3187 times since Tue, Jul 17, 2018
AIX ODM for MPIO User Guide 09
Viewed 4124 times since Mon, Dec 31, 2018