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 POWERHA/HACMP: Basic commands
Viewed 5783 times since Sat, Jun 2, 2018
AIX: How to identify the program listening in the given port
Viewed 2721 times since Mon, Jun 11, 2018
Firmware Assisted Dump sysdump
Viewed 2346 times since Mon, Jul 16, 2018
AIX Full memory dump configure
Viewed 3639 times since Mon, Jul 16, 2018
AIX Cloning a rootvg using alternate disk installation
Viewed 11964 times since Sun, Jun 30, 2019
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 2449 times since Thu, Sep 20, 2018
AIX Health Check basic
Viewed 5090 times since Fri, Jun 8, 2018
AIX Booting
Viewed 10867 times since Tue, Apr 16, 2019
AIX: How to manage network tuning parameters
Viewed 4236 times since Mon, Jun 11, 2018
Removing Failed or Missing Paths
Viewed 3209 times since Wed, May 30, 2018