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, Storage, System Admin↑ Identifying a Disk Bottleneck Using filemon
Viewed 10503 times since Fri, Apr 19, 2019
Managing System Dump Devices sysdumpdev
Viewed 4340 times since Mon, Jul 9, 2018
Monitor logfiles and command output on AIX using multitail.
Viewed 2854 times since Thu, Feb 21, 2019
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 5156 times since Wed, Jun 27, 2018
AIX, System Admin↑ The chrctcp command
Viewed 3580 times since Fri, Apr 19, 2019
AIX hangs on boot? How to debug boot process on AIX systems
Viewed 12522 times since Thu, Feb 21, 2019
How to Easily Generate AIX Systems Management Reports
Viewed 3494 times since Wed, May 30, 2018
AIX, Security, System Admin↑ Generating random passwords
Viewed 3538 times since Fri, Apr 19, 2019
sysdumpdev Command
Viewed 2368 times since Mon, Jul 16, 2018
Check connection (rsh or nimsh) between NIM server and LPAR
Viewed 11599 times since Thu, Feb 21, 2019