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 Cloning a rootvg using alternate disk installation
Viewed 11841 times since Sun, Jun 30, 2019
AIX Commands Related to Boot and Init Process
Viewed 4930 times since Tue, Apr 16, 2019
Tuning AIX Network Performance
Viewed 3970 times since Tue, May 22, 2018
AIX, Security, System Admin Difference between sticky bit and SUID/GUID
Viewed 9198 times since Fri, Apr 19, 2019
Burn Image to DVD in AIX
Viewed 13695 times since Thu, Sep 20, 2018
AIX 6.1: Extend VG 0516-1714 extendvg 0516-1254 extendvg
Viewed 4687 times since Fri, Jul 6, 2018
How to mirror the rootvg in AIX?
Viewed 5414 times since Mon, May 21, 2018
O’Reilly’s CD bookshelf
Viewed 13149 times since Wed, Jun 27, 2018
AIX How to Investigate a System Reboot
Viewed 6978 times since Tue, Aug 14, 2018
Understanding dump devices sysdumpdev
Viewed 4844 times since Mon, Jul 9, 2018