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 1882 times since Tue, Jun 18, 2019
AIX routing - How Do I Compare ODM with the Current Routing Table?
Viewed 2151 times since Mon, Jul 29, 2019
AIX - How to unlock and reset user’s account
Viewed 15416 times since Fri, Jun 8, 2018
AIX - How to get IP and MAC address of ethernet adapter in AIX
Viewed 21691 times since Fri, Jun 8, 2018
AIX - How to extend JFS filesystem
Viewed 15454 times since Fri, Jun 8, 2018
AIX, Red Hat, Security, System Admin↑ System-wide separated shell history files for each user and session
Viewed 1897 times since Fri, Apr 19, 2019
Part 3, Tuning swap space settings AIX7
Viewed 8614 times since Wed, Jun 19, 2019
AIX Password expiry /etc/passwd
Viewed 16863 times since Wed, Jul 3, 2019
How to upgrade TL and SP in AIX using alternate disk(alt_disk_copy)
Viewed 9319 times since Sun, Jun 30, 2019
SNAP
Viewed 1501 times since Mon, Sep 17, 2018