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
Remove disk from volumegroup in AIX
Viewed 6156 times since Tue, Apr 16, 2019
AIX WIKIS developerworks
Viewed 2138 times since Sun, Jun 17, 2018
Writing a Custom PVID
Viewed 2693 times since Fri, Feb 1, 2019
AIX: How to identify the program listening in the given port
Viewed 2202 times since Mon, Jun 11, 2018
O’Reilly’s CD bookshelf
Viewed 11400 times since Wed, Jun 27, 2018
Restoring mksysb
Viewed 3251 times since Wed, May 30, 2018
How to determine why your AIX oslevel is downlevel (and a script to help!)
Viewed 3608 times since Fri, Jul 13, 2018
Secure Secure Shell
Viewed 10130 times since Fri, Aug 21, 2020
AIX, Installation, NIM↑ Creating an LPP source and SPOT in NIM
Viewed 14107 times since Fri, Apr 19, 2019
Problem on resizing volume group on AIX 0516-1714, 0516-792, 0516-787, and 0516-404
Viewed 2280 times since Fri, Jul 6, 2018