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
Software management in AIX
Viewed 6919 times since Mon, Jun 25, 2018
Configuring an AIX client with multiple Kerberos realms
Viewed 9086 times since Mon, Jun 25, 2018
Migrating from SDDPCM to AIXPCM (the easy way)
Viewed 2684 times since Mon, Jun 3, 2019
AIX, Security, System Admin↑ Clearing password history
Viewed 2524 times since Fri, Apr 19, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 4351 times since Wed, Jun 19, 2019
AIX Encrypted File System
Viewed 5977 times since Tue, Jul 17, 2018
Mirroring the rootvg Volume Group for AIX
Viewed 4091 times since Mon, May 21, 2018
AIX, Storage, System Admin Allocating shared storage to VIOS clients
Viewed 2401 times since Fri, Apr 19, 2019
0516-404 allocpThis system cannot fulfill the allocation
Viewed 10154 times since Thu, Sep 20, 2018
Part 3, Tuning swap space settings AIX7
Viewed 9092 times since Wed, Jun 19, 2019