Operating System - HP-UX
1834214 Members
2502 Online
110066 Solutions
New Discussion

Re: After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

 
MJA_1
Advisor

After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

A san disk size has been increased dynamically from storage side, I dont know if I can increase its related lvm and file system dynamically. Please advise .

I am thinking to do like this
#ioscan
#lvextend
#fsadm.

Thanks .. MJ
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

Yes, lvextend to grow the logical volume, then either extendfs or fsadm to grow the file system, depending on whether you have OnlineJFS or not. Without OnlineJFS, you will have to unmount the filesystem in order to extend it.


Pete

Pete
MJA_1
Advisor

Re: After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

Thanks Pete for your prompt reply.
So it is correct that the increased san disk from storage also reflect in hp-ux by ioscan dynamically. Similarly by lvextend and fsadm/extendfs to filesystem.

Thanks .. MJ
Patrick Wallek
Honored Contributor

Re: After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

What version of HP-UX are you running? If you are running 11.11 or earlier then you cannot do this.

If you are running 11.23 or later then you should be able to change the size with the 'vgmodify'. Check the 'vgmodify' man page for more information.
MJA_1
Advisor

Re: After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

It is 11.23

I checked but for vgmodify I will need to deactivate tht vg and for vg deactivation I will need to unmount related filesystems. This sound does not look like dynamically.
Correct?

Thanks .. MJ
Alex Georgiev
Regular Advisor

Re: After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

Yes, you have to take the volume group offline in order to use vgmodify. Unfortunately you can't do the procedure "dynamically."

Also, vgmodify was not standard with HP-UX 11.23. It used to be that you have to call HP support to get it.

Now it's part of the more recent HP-UX 11.23 releases. I recently installed the June 2007 release of 11.23 and I have it on the system.

My recommendation is to either obtain a recent CD or call support. vgmodify might just be part of the latest Quality Pack bundles (not sure).

Hope this helps!
psreedhar
Frequent Advisor

Re: After increasing the size of SAN disk dynamic, How LVM and file system can be increased dynamically?

Hi MJA,
in 11.23 vgmodify command is released as a patch. The patch number is PHCO35524.
You can download it from.

http://wtec.cup.hp.com/patches-bin/parse/patches-info?Patch=35524

For your question of dynamically extending the disk with out deactivating the VG...

YES LVM can't allow running vgmodify when it is activated. You have to wait for some more time to see this feature in 11.31 alone :)