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 start daemons at the system startup in AIX servers
Viewed 3540 times since Tue, Jun 18, 2019
AIX, Storage, System Admin↑ Identifying a Disk Bottleneck Using filemon
Viewed 11146 times since Fri, Apr 19, 2019
Topics: PowerHA / HACMP, Storage Adding a new volume group to an active PowerHA resource group
Viewed 4163 times since Mon, Jun 3, 2019
Monitoring Events with AIX Audit
Viewed 6090 times since Wed, May 30, 2018
A Change to the SMT Mode Default in POWER9
Viewed 7077 times since Fri, Jan 18, 2019
Part 2, Detailed diagnosis and troubleshooting
Viewed 3817 times since Tue, May 22, 2018
AIX alt_disk_copy
Viewed 11182 times since Sun, Jun 30, 2019
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 9177 times since Wed, May 30, 2018
AIX Resolving "missing" or "removed" disks in AIX LVM
Viewed 6962 times since Tue, Aug 6, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 5958 times since Wed, Jun 19, 2019