Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to decrease the size of the Disk

Status
Not open for further replies.

AIXLogician

Technical User
Jul 26, 2012
89
US
Hello,
I have decreased the lun size on my SAN from 120GB to 100GB, the change was dynamic, I can see this when I run bootinfo -s hdiskX.
But when I run #lsvg XXXvg I still see the disk size as 120GB.

I know I can increase the size of the disk, by just running #chvg -g vgname (this holds good, when you increase the disk size)

What is the command to decrease the size?

Thanks in advance!!!

SARFARAZ AHMED SYED,
Sr. Systems Engineer
 
Remove and reconfigure I'm afraid, chvg -g only works if it gets bigger...
 
Probably easier to allocate another LUN to the VG, migrate and remove the original LUN
 
Thanks you folks. I think I need to do homework of adding another disk and use migratepv command.


Norm,
chfs command will either increase or decrease the filesystem size, but we are talking about physical volume size (and that has to be through chvg command).

SARFARAZ AHMED SYED,
Sr. Systems Engineer
 

You can also add the disk to the volume group (extendvg) and create mirror of the first disk (mirrorvg), when the copy is finished you can break the mirror by removing the old one (120GB)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top