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
Mount CD/DVD & ISO image in AIX 6.1
Viewed 3512 times since Tue, Jul 17, 2018
This document discusses a new feature implemented for JFS2 filesystems to prevent simultaneous mounting.
Viewed 2480 times since Sat, Jun 1, 2019
How to Maintain a Virtual I/O Server With FBO Part II
Viewed 10295 times since Wed, Jun 5, 2019
AIX QHA
Viewed 10632 times since Mon, Jun 3, 2019
AIX, Networking Etherchannel failover testing
Viewed 1887 times since Fri, Apr 19, 2019
Part 2, Detailed diagnosis and troubleshooting
Viewed 2448 times since Tue, May 22, 2018
Tunneling With SSH to Your Destination
Viewed 3724 times since Wed, May 30, 2018
Creating Normal,Big,Scalable VG on AIX
Viewed 13359 times since Fri, Feb 1, 2019
AIX - How to get network speed and statistic of ethernet adapter in AIX
Viewed 11115 times since Fri, Jun 8, 2018
0516-404 allocp: This system cannot fulfill the allocation request. [AIX]
Viewed 4439 times since Thu, Sep 20, 2018