Operating System - HP-UX
1752701 Members
6387 Online
108789 Solutions
New Discussion юеВ

Adding disks to VG and Extending Stripped LV

 
Michael Steele_2
Honored Contributor

Adding disks to VG and Extending Stripped LV

Hi Folks:

I have to add 4 disks to a volume group and lvextend a stripped logical volume: Its file system is at 94%.

vgextend /dev/vg /dev/dsk/c#t#d#, etc.
lvextend -L ### /dev/dsk/c#t#d#, etc.

Anything missing?

No mirrors, strict allocation, stripe size = 32 KB.
Support Fatherhood - Stop Family Law
9 REPLIES 9
Martin Johnson
Honored Contributor

Re: Adding disks to VG and Extending Stripped LV

Remember to extend the file system too!

Marty
James R. Ferguson
Acclaimed Contributor

Re: Adding disks to VG and Extending Stripped LV

Hi:

You can extend a striped logical volume as long as the same number of disks over which you are already striped are used to extend the logical volume.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Adding disks to VG and Extending Stripped LV

pvcreate first?

Pete

Pete
Sridhar Bhaskarla
Honored Contributor

Re: Adding disks to VG and Extending Stripped LV

Yes.

extendfs -F vxfs /dev/vg0#/rlv#

If you have OnlineJFS, then it would be

fsadm -b size_in_kb /mount_point

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Deshpande Prashant
Honored Contributor

Re: Adding disks to VG and Extending Stripped LV

Hi
If you have used the PVG in existing volume group you may want to specify the same while extending the VG.
3vgextend -g PVG0 /dev/vgX /dev/dsk/cxtydz...

Thanks.
Prashant
Take it as it comes.
Michael Steele_2
Honored Contributor

Re: Adding disks to VG and Extending Stripped LV

James, you said:

You can extend a striped logical volume as long as the same number of disks over which you are already striped are used to extend the logical volume.

I am at 94% full on a vxfs file system and need to add four addional disks because four is the current number used in the logical volume. I'll end up with 8 disks in the logical volume. Are you saying I can't do this and then lvextend over the newly added four disks?
Support Fatherhood - Stop Family Law
James R. Ferguson
Acclaimed Contributor

Re: Adding disks to VG and Extending Stripped LV

Hi (again):

No, I am saying that if you are already stripped over four physical volumes, then you will need physical extents on *four* physical volumes again. If your logical volume spans four disks without any free extents, then add ('vgextend') four physical disks and 'lvextend' the logical volume to them.

Regards!

...JRF...
Deshpande Prashant
Honored Contributor

Re: Adding disks to VG and Extending Stripped LV

Hi
I also use stripped lvs on my systems with 4 PVs in it.
To make sure no one adds odd number of disks in VG I restrict the VG to max 4PVs. while creating. Make sure you do not have such imposed limitation in your VG.

Just a thought.
Prashant.
Take it as it comes.
Michael Steele_2
Honored Contributor

Re: Adding disks to VG and Extending Stripped LV

.
Support Fatherhood - Stop Family Law