Operating System - HP-UX
1855769 Members
1571 Online
104103 Solutions
New Discussion

Re: Extend Logical Volume

 
SOLVED
Go to solution
Jason Shannon
Occasional Advisor

Extend Logical Volume

I have a machine running 11.23 with a 32GB data disk presented to it via an EVA 5000. The data disk is almost completely used. I want to add another 18GB into it to make it 50GB.

I can easily increase the size of the VDISK on the SAN but what are the next steps to eventually getting the 18GB into the filesystem? Or is it easier to add a completely new LUN and add it into the VG, then extend the LV?
9 REPLIES 9
Ivan Krastev
Honored Contributor

Re: Extend Logical Volume

It will be easier to add additional LUN, add it to VG and after that extend the file system.


regards,
ivan
Pete Randall
Outstanding Contributor

Re: Extend Logical Volume

man lvextend
man extendfs

The examples section of the lvextend man page shows how. You need to lvextend, then unmount the filesystem, then extendfs the filesystem.

Or, if you have online JFS, you can do this on the fly with fsadm. Look at "man fsadm_vxfs


Pete

Pete
Aashique
Honored Contributor

Re: Extend Logical Volume

Hi,
Here is the steps:
If you have Online JFS installed.

Add new LUN
Pvcreate
vgextend
lvextend
fsadm

Thanks & Regards

Aashique
Ramesh S
Esteemed Contributor
Solution

Re: Extend Logical Volume

Hi

As all mentioned, creating new LUN, extending VG, extending LV and extending filesystem will be a easy one.

If you extend a existing LUN, you may need to remove that LUN from VG, delete the device file of that LUN and recreate it to the new size get into effect.

Best Regards,
Ramesh
Torsten.
Acclaimed Contributor

Re: Extend Logical Volume

Maybe it is easier to add a new LUN (vdisk), but if you increase the existing vdisk, you need to de-activate the VG and run vgmodify.

see

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf (BSC link updated by admin)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tim Nelson
Honored Contributor

Re: Extend Logical Volume

Increasing the LUN size on the array is a fictional task.

Sure if you wish to go through all the steps to also change the vg settings with vgchange and btw have to move the data from the first extent to somewhere else then renumber the extents without worrying about loosing any data ( good story huh ? )

"IF" you happen to have Max PE set high enough to accomidate the additional 18GB lun then create another LUN present it to the system then use pvcreate, vgextend and lvextend to increase your logical volume.

"IF" you do not have room in the VG ( as most don't) then I suggest creating a new VG with a lun of the increased size and mirgrate ( i.e. cp the data ) to the new, bigger filesystem. ( typically requires an outage )



YAQUB_1
Respected Contributor

Re: Extend Logical Volume

Hi Jason,

>>> I want to add another 18GB into it to make it 50GB.
==> Creat the LUN & present Ur host system

then U follow both LUN below process:
# pvcreate -fB /dev/rdsk/cxtxdx
# vgextend /dev/vgxx /dev/dsk/cxtxdx
# lvextend â L 1000 /dev/vgXX/lvXXX
# fsadm â F vxfs â b 1000m /
(1000MB is the new size of the logical volume in this case)

Hope for the Best,

Thanks--Yaqub
I am a Customer Advocate!!!

Sajjad Sahir
Honored Contributor

Re: Extend Logical Volume

Dear Jason

Once u present the disk in u unix system
first step u have to check it disk is there
for that u have to use

1. ioscan
the second step u have to use insf -e disk
for creating device files

3. u have to deactivate the volume where u are going to add the disk

4. next u can do vgextend for extending volume group

5.now u can extend u logical volume then file system
Jason Shannon
Occasional Advisor

Re: Extend Logical Volume

Thank you.

I have all the information I need.

I think the safest thing to do - is plan some downtime. Create a lun of 50gb, etc etc and mount it as something else. Dump my first fs into my second one. Unmount fs1 and fs2 and then remount fs2 into the original directory.