Skip to contentSkip to conversation

extending striped lv

linux-lvm Brad Langhorst 5 participants 6 messages Aug 23, 2001 – Aug 30, 2001

lore
Share & tools
lore
#0 lore raw

I read in the Howto that it is not possible to add a disk to a striped LV. I assume this is being worked on - is that correct?

What about extending an LV with free space on the same VG?

I've got a 2PVs in one VG and I'm planning to make an LV that is not the whole size of the VG with the intention of extending it later or adding a second LV for a different purpose. I'd like to enable striping to realize a performance increase but only if I can extend the LV later.

thanks!

brad

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

#1 lore raw
Quoted 3 lines · Brad Langhorst

I read in the Howto that it is not possible to add a disk to a striped LV. I assume this is being worked on - is that correct?

Not actively ATM.

- Joe

#2 lore raw
In reply to Brad Langhorst
Quoted 1 line · Brad Langhorst

[ ... extending a (striped) LV ... ]

I'm not 100% positive, but AFAIK you can extend striped LV, but if you do the extened LV is only partially striped.

Signature · 2 lines
Goetz Bock                                              IT Consultant
Dipl.-Inf. Univ.
#3 lore raw
Quoted 4 lines · Goetz Bock
Quoted 1 line · Brad Langhorst

[ ... extending a (striped) LV ... ]

I'm not 100% positive, but AFAIK you can extend striped LV, but if you do the extened LV is only partially striped.

Nope, you can only extend a striped LV on the PV's it is currently on. After that you either have to pvmove it to larger PVs or rebuild with more disks.

If you want to be able to extend LVs and need software striping, you might want to consider using MD striping underneath LVM.

Regards,

Signature · 14 lines
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: [email protected]
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Hope is NOT a thing with feathers, the thing with feathers is my nephew,
and I have to take him to a specialist in Zurich. - Woody Allen
-----End Obligatory Humorous Quote------------------------------------------
#4 lore raw
Quoted 7 lines · AJ Lewis

Nope, you can only extend a striped LV on the PV's it is currently on. After that you either have to pvmove it to larger PVs or rebuild with more disks.

If you want to be able to extend LVs and need software striping, you might want to consider using MD striping underneath LVM.

AJ,

does this mean I can initially build a striped LV from two smaller disks, let me say sda and sdb and later move the LE from sda to sdc and from sdb to sdd (where sdc and sdb a bigger than sda/sdb)? It is to be said that the performance of md RAID0 is somewhat better than from striped LV's but I would prefer LVM if I could extend a striped LV without rebuilding RAID/restoring data.

cu,
Jan

--
_______________________________________________________________________

THE BEST RUN E-BUSINESSES RUN SAP
_______________________________________________________________________

Jan Schreckenbach                      email: [email protected]
SAP AG Walldorf/Baden, Germany         Phone: +49 6227  7-47474
LinuxLab                               Fax  : +49 6227 78-31414

SAP LinuxLab support address: [email protected]

#5 lore raw
Quoted 3 lines · Jan Schreckenbach

does this mean I can initially build a striped LV from two smaller disks, let me say sda and sdb and later move the LE from sda to sdc and from sdb to sdd (where sdc and sdb a bigger than sda/sdb)?

Yes, that should work. Then the LEs would be just on sdc and sdd, and sda and sdb would be empty.

Quoted 3 lines

It is to be said that the performance of md RAID0 is somewhat better than from striped LV's but I would prefer LVM if I could extend a striped LV without rebuilding RAID/restoring data.

Well, like I said, if you used md RAID0 underneath LVM, you could stripe across, say, sda and sdb, and then creat your LV on top of the md device, then when you wanted to extend it, create a striped md device across sdc and sdd and and extend the VG/LV to that md device.

Anyway, it really depends upon your application. If you're really concerned about speed, you'd probably go with hardware RAID0 anyway, but that's a whole different discussion.

Regards,

Signature · 13 lines
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: [email protected]
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://people.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Behind every good computer -- is a jumble of wires 'n stuff.
-----End Obligatory Humorous Quote------------------------------------------