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
IVM and VLAN Tagging
Viewed 10247 times since Mon, May 28, 2018
AIX rootvg Mirroring
Viewed 4465 times since Mon, May 21, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 5504 times since Sat, Jun 2, 2018
Managing System Dump Devices sysdumpdev
Viewed 3369 times since Mon, Jul 9, 2018
IBM AIX commands you should not leave home without
Viewed 7041 times since Mon, Jun 11, 2018
Software management in AIX
Viewed 6741 times since Mon, Jun 25, 2018
Remove disk from volumegroup in AIX
Viewed 6680 times since Tue, Apr 16, 2019
AIX Password expiry /etc/passwd
Viewed 18547 times since Wed, Jul 3, 2019
AIX: How to manage network tuning parameters
Viewed 3699 times since Mon, Jun 11, 2018
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 5624 times since Fri, Jan 31, 2020