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: Error code 0516-1339, 0516-1397 0516-792: cannot extendvg with a previous Oracle ASM disk
Viewed 4602 times since Wed, Feb 6, 2019
Backing up your VIOS configuration with viosbr.
Viewed 12830 times since Mon, May 28, 2018
AIX Errpt - Diag - Alog
Viewed 4719 times since Wed, Mar 20, 2019
AIX 6.1: Extend VG 0516-1714 extendvg 0516-1254 extendvg
Viewed 5500 times since Fri, Jul 6, 2018
Understanding dump devices sysdumpdev
Viewed 5913 times since Mon, Jul 9, 2018
Mount CD/DVD & ISO image in AIX 6.1
Viewed 4989 times since Tue, Jul 17, 2018
AIX: Script to check if all paths are consistent and available
Viewed 4106 times since Tue, Jun 12, 2018
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 3199 times since Thu, Sep 20, 2018
AIX, Networking↑ Adding and deleting a static network route using the command line
Viewed 3786 times since Fri, Apr 19, 2019
Install and configure yum on AIX
Viewed 5616 times since Thu, Feb 21, 2019