Operating System - HP-UX
1834431 Members
2733 Online
110067 Solutions
New Discussion

extending logical volume size

 
SOLVED
Go to solution
KPS
Super Advisor

extending logical volume size

Hello,

I'm not too familiar with striping so here goes...

I have a 4Gig mountpoint mounted up and striped across 4 different disks. I want to extend the size of the mountpoint to 8Gig. Can I run some sort of lvextend command to do this as an option or do I even have any options??

Thanks,
-Ken
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: extending logical volume size

You can do this but you must have enough unused space on all 4 disks (1GB each) to do this. If you meet that condition then a simple lvextend will do the trick; if not, then you must backup and create the LVOL again.
If it ain't broke, I can fix that.
Leif Halvarsson_2
Honored Contributor

Re: extending logical volume size

Hi
Yes, If there is free space in the volume group this volume belongs to it is possible. The easiest vay is to use SAM/Disk and File system/Logical Volumes/Increase size for this. Note , If you don't have Onnline JFS otion installed, this filesystem should not be in use when doing this.
Rodney Hills
Honored Contributor

Re: extending logical volume size

I used a manual method of striping where I would use lvextend of 1meg to each physical drive in a round robin fashion.

I built a script to generate another script with all the lvextend commands.

Hope this helps...

-- Rod Hills
There be dragons...
Sridhar Bhaskarla
Honored Contributor

Re: extending logical volume size

Hi Ken,

lvextend will automatically extend the logical volume including the striping provided one of the following is true.

1. You should have atleast 1 GB free on each disk.
2. Add four more disks to the volume group having the striped volume.

You can use the following procedure if you do not have onlineJFS.

umount /dev/vg??/lvol??
lvextend -L 8000 /dev/vg??/lvol??
extendfs /dev/vg??/rlvol??

Replace ??s with the corresponding numbers|names.

If you have online JFS, you don't need to unmount the lvol.

lvextend -L 8000 /dev/vg??/lvol??
fsadm -b 8192000 /mount_point

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: extending logical volume size

Hi Ken:

Yes, you can 'lvextend'. The requirement with striped logical volumes is simply that the same number of disks already striped across must be used to extend.

Regards!

...JRF...
Sean Dale
Trusted Contributor
Solution

Re: extending logical volume size

I think SAM could be used to do this, too.
Live life everyday