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
How to set Kernel Parameters in AIX ?
Viewed 17371 times since Tue, Jul 2, 2019
AIX WIKIS developerworks
Viewed 3186 times since Sun, Jun 17, 2018
Software management in AIX
Viewed 8206 times since Mon, Jun 25, 2018
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 5984 times since Wed, Jun 27, 2018
Part 3, Tuning swap space settings AIX7
Viewed 10568 times since Wed, Jun 19, 2019
0516-404 allocpThis system cannot fulfill the allocation
Viewed 10987 times since Thu, Sep 20, 2018
Setting new device attributes with chdef
Viewed 3479 times since Mon, Jun 3, 2019
Changing Ethernet Media Speed for AIX
Viewed 4581 times since Tue, Apr 16, 2019
Reconfigure RSCT ID to fix DLPAR issues on cloned AIX systems
Viewed 18280 times since Thu, Feb 21, 2019
AIX, Red Hat, Security, System Admin↑ System-wide separated shell history files for each user and session
Viewed 3352 times since Fri, Apr 19, 2019