1833758 Members
2372 Online
110063 Solutions
New Discussion

lvextend a stripped lvol

 
SOLVED
Go to solution
R.O.
Esteemed Contributor

lvextend a stripped lvol

Hi,

I have a stripped lvol across many disks, and I have to extend it. I think I only can extend it adding the same number of disks, in example, if the lvol is stripped across 5 disks I have to lvextend it adding another 5 disks, isn´t it?
The problem is that I only have 1 disk to perform the lvextend. How can i do it?

Thanks and regar
"When you look into an abyss, the abyss also looks into you"
4 REPLIES 4
Elmar P. Kolkman
Honored Contributor

Re: lvextend a stripped lvol

It depends on your definition on striped. Normally there is no problem adding logical extends to a striped lvol, as long as it is not also distributed.
If it is distributed, you need free space on the same number of disks as the lvol is spreaded on, in your case 5.
To do it with one disk you have to backup the lvol, re-create it while distributed over 6 (or 3) disks and restore your data.

Every problem has at least one solution. Only some solutions are harder to find.
Todd McDaniel_1
Honored Contributor

Re: lvextend a stripped lvol

You cant extend a striiped volume with 1 disk...

Im pretty sure yo have to either have an equal number of disks to add to the volume.

Or recreate and add the disk as another stripe.
Unix, the other white meat.
Sanjay_6
Honored Contributor
Solution

Re: lvextend a stripped lvol

Hi,

you need 5 disk to satisfy the criterion,

Take a look at this thread,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062907202

The doc id is KBRC00000984

Hope this helps.

Regds
Stuart Abramson_2
Honored Contributor

Re: lvextend a stripped lvol

You can't add 1 disk to an LV that's striped across N disks. You need N more disks. (It's the "-i" paramter on the lvextend command.)

But you don't have to recreate the whole LV. Ask your users what they need. If they need a subdirectory named "DOG" under the mount point "CAT", which is your LVOL, then just create a 2nd LVOL with your 1 disk called "/dev/vgCAT/lvDOG01" and mount it on /CAT/DOG.

Then you don't have to shut down, remove the striped LV/VG and rebuild everything.