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 lspath Missing path
Viewed 9236 times since Fri, Oct 5, 2018
AIX perf how to
Viewed 18413 times since Tue, Aug 14, 2018
Using expect to automate mundane tasks
Viewed 1679 times since Mon, Jun 3, 2019
This document discusses a new feature implemented for JFS2 filesystems to prevent simultaneous mounting.
Viewed 2645 times since Sat, Jun 1, 2019
AIX: How to set automatic logoff (only for terminals)
Viewed 2829 times since Mon, Jun 11, 2018
AIX 0516-404 allocp: This system cannot fulfill the allocation
Viewed 3125 times since Thu, Sep 20, 2018
Changing Ethernet Media Speed for AIX
Viewed 3127 times since Tue, Apr 16, 2019
Remove disk from volumegroup in AIX
Viewed 6376 times since Tue, Apr 16, 2019
Configuration of AIX Fast Connect and SMBFS
Viewed 8145 times since Mon, Jun 18, 2018
Mirroring the rootvg Volume Group for AIX
Viewed 3722 times since Mon, May 21, 2018