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
O’Reilly’s CD bookshelf
Viewed 13158 times since Wed, Jun 27, 2018
IP configuration in AIX
Viewed 3031 times since Tue, Jul 17, 2018
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 6217 times since Fri, Jan 31, 2020
AIX HA / HACMP, System Admin↑ Mountguard
Viewed 7292 times since Mon, Jun 3, 2019
Tips I Picked up at the Power Systems Technical University
Viewed 3029 times since Mon, Jun 11, 2018
SNAP in AIX
Viewed 11838 times since Mon, Sep 17, 2018
List of 10 Must Know Oracle Database Parameters for Database Administrator
Viewed 131054 times since Thu, Jun 21, 2018
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 42126 times since Thu, Jun 21, 2018
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 3238 times since Fri, Apr 19, 2019
n a perfect world....rootvg would always reside on hdisk0
Viewed 2465 times since Thu, Jun 6, 2019