1833747 Members
2864 Online
110063 Solutions
New Discussion

LVM Striping

 
SOLVED
Go to solution
Cliff Lim Kok Hwee
Regular Advisor

LVM Striping

Gd Afternoon Forum,

Recently, I created a fileystem of size 5GB as follows:

- lvcreate –L 5120 -i 4 -I 64 /dev/vg06
- newfs –F vxfs –o largefiles /dev/vg06/rlvol1
- mount /dev/vg06/lvol1 /oracle/data01

Query: The lv is being striped across 4 hardisks each having strip size of 64KB. Am I able to increase the filesystem size if required?

Thanks/c
12 REPLIES 12
Henk Geurts
Esteemed Contributor

Re: LVM Striping

hi Cliff
use
vgdisplay and lvdisplay to check if there is space on each disk to exend the LV.
if there is i think the answer is yes.
regards.
Cliff Lim Kok Hwee
Regular Advisor

Re: LVM Striping

Sorry for not being specific.

No more space from the volume group and adding of new disks are required.

Can it be done as per my earlier query?

thanks/cliff
Sunil Sharma_1
Honored Contributor

Re: LVM Striping

I don't think you can increase size by adding only one disk. You may need to add 4 disk.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Cliff Lim Kok Hwee
Regular Advisor

Re: LVM Striping

Hi Forumers,

I understand i need to add 4 more new disks. But later can I still get the lv extended? If so how?

Thanks/cliff
Patrick Wallek
Honored Contributor

Re: LVM Striping

If you have enough space spread across ALL 4 disks, then yes you can extend the LV.

If 1 disk doesn't have enough space for some reason though, then you can't.
Cliff Lim Kok Hwee
Regular Advisor

Re: LVM Striping

Hi,

Understanding that the 4 are new disks. I will proceed to add into volume group. But who to get it the existing lv extended and also striping thru 4 new disks?

Thanks/cliff
Patrick Wallek
Honored Contributor

Re: LVM Striping

If you attempt to extend the existing LV it will automatically be striped across 4 disks since that is the way it was created.
Henk Geurts
Esteemed Contributor

Re: LVM Striping

Patrick is right .
disk space on all 4 disks required.
then extending is possible.
regards.
Cliff Lim Kok Hwee
Regular Advisor

Re: LVM Striping

Hi Forumers,

With the addition of 4 new hardisks added into the existing volume group 8 hardisks will be total.

And with the command lvextend â L 6144 /dev/vg06/lvol1, the 4 new disks will have the new space of (6144-5120)=>1024MB evenly striped across each of the 4 new disks AUTOMATICALY?

thanks/cl
Devender Khatana
Honored Contributor
Solution

Re: LVM Striping

Hi,

That is right if you are extending LV by 1 gb across 4 disks then 250MB will be allocated from each disk and rest of the space will be free and can be used for some other file systems.

And offcourse it will be equally stripped across all 4 disks.

HTH,
Devender
Impossible itself mentions "I m possible"
Cliff Lim Kok Hwee
Regular Advisor

Re: LVM Striping

Thanks for the update guys!
Jeff Lightner_1
Frequent Advisor

Re: LVM Striping

FYI: If you have any spare space on the original 4 disks it will allocate that first. If you desire not to use that for some reason you can specify the 4 new disks in the extend.