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
sysdumpdev Command
Viewed 2711 times since Mon, Jul 16, 2018
List of 10 Must Know Oracle Database Parameters for Database Administrator
Viewed 147012 times since Thu, Jun 21, 2018
Configuring an AIX client with multiple Kerberos realms
Viewed 10737 times since Mon, Jun 25, 2018
Tips I Picked up at the Power Systems Technical University
Viewed 4272 times since Mon, Jun 11, 2018
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 108122 times since Thu, Jun 21, 2018
Install and configure GNU’s screen on AIX
Viewed 10345 times since Thu, Feb 21, 2019
How to install filesets/software in aix?
Viewed 7516 times since Mon, Jul 8, 2019
AIX POWERHA/HACMP: Basic commands
Viewed 6708 times since Sat, Jun 2, 2018
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 7089 times since Sun, Jun 30, 2019
Restoring mksysb
Viewed 4579 times since Wed, May 30, 2018