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
Writing a Custom PVID
Viewed 2887 times since Fri, Feb 1, 2019
NTLMSSP, SPN and AIX CIFS
Viewed 8144 times since Fri, Jun 15, 2018
vfcpmap on VIO Server
Viewed 9482 times since Tue, Jun 4, 2019
AIX - How to monitor CPU usage
Viewed 27124 times since Fri, Jun 8, 2018
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 46003 times since Fri, Aug 21, 2020
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 4215 times since Wed, Jun 19, 2019
AIX, Networking Etherchannel failover testing
Viewed 2594 times since Fri, Apr 19, 2019
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 15064 times since Fri, Jan 18, 2019
AIX Creating EtherChannel Devices from Command Line
Viewed 3495 times since Mon, Jun 3, 2019
AIX, Storage, System Admin Allocating shared storage to VIOS clients
Viewed 2294 times since Fri, Apr 19, 2019