You are not logged in.

#1 2012-03-25 22:38:57

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

RAID and LVM

I'm currently setting up some computer with a raid5 configuration, but I see almost all the articles trend to set this up along with LVM.... why? I mean.... if I just want to use raid5 for creating one single partition for keeping my data, I don't need LVM, do I?
What the reason for using LVM along with RAID5 ?
Can anyone shed some light into this? 
Thanks.

Offline

#2 2012-03-26 00:37:01

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: RAID and LVM

I don't need LVM, do I?

No there is no need for LVM. Here's a list of reasons why one would want a volume manager
http://docs.redhat.com/docs/en-US/Red_H … al_volumes


You need to install an RTFM interface.

Offline

#3 2012-03-27 17:39:43

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: RAID and LVM

Well I do if for two main reasons:

1. I want to use system encryption and if I didn't encrypt the RAID array first and then chop it into two LVM logical volumes (one for root and one for my data) I'll have to enter two passphrases.
2. I want to keep my data completely separate from root so when I reinstall (I'm an install junkie. What can I say?) my data will remain untouched because I'll only have to reformat the logical volume use for root.

Last edited by KairiTech (2012-03-27 18:16:19)

Offline

#4 2012-03-27 20:33:47

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: RAID and LVM

LVM makes storage management very flexible. I always use LVM.

Offline

#5 2012-04-03 05:41:18

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: RAID and LVM

So, if all I want to is just setting up a raid5 volume with no encryption...  it's kind of useless isn't it? I ask because I don't want to make the setup more complicated than what it already is.... you know... KISS....

Offline

#6 2012-04-03 05:45:44

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: RAID and LVM

If you're only going to be creating one partition on your RAID5 array which you won't be resizing (often), then there's indeed not all that much use in using LVM.


Burninate!

Offline

#7 2012-04-03 05:55:50

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: RAID and LVM

But resizing is going to be the same, won't it?
I mean, if you want to resize a LVM partition, you resize it and then you also have to resize the underlying ext4 (i.e.) filesystem: In the future, if i add a new HD to the raid5 setup, i will have to resize anyway....
Thanks for making this clear smile

Offline

#8 2012-04-03 08:59:53

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: RAID and LVM

Xi0N wrote:

But resizing is going to be the same, won't it?
I mean, if you want to resize a LVM partition, you resize it and then you also have to resize the underlying ext4 (i.e.) filesystem: In the future, if i add a new HD to the raid5 setup, i will have to resize anyway....
Thanks for making this clear smile

Yes, you need to resize your ext3/4 filesystem as well. You can do this with resize2fs on a mounted system - this only works when extending filesystems. The current  resize2fs implementation only allows shrinking on unmounted systems.

The benefits of LVM2 clearly overrules the added "complexity" in my experience. I would never install Linux system without using LVM2 be it a enterprise or hobby system.

Offline

#9 2012-04-03 12:08:03

cedricmc
Member
From: Madrid, Spain
Registered: 2011-11-20
Posts: 53

Re: RAID and LVM

For ArchLinux installation on RAID5, read my thread.

Offline

Board footer

Powered by FluxBB