Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software RAID, LVM and devfs in Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
symbiat
n00b
n00b


Joined: 20 Aug 2003
Posts: 36
Location: New York

PostPosted: Tue Oct 07, 2003 9:47 pm    Post subject: Software RAID, LVM and devfs in Gentoo Reply with quote

Im new to Gentoo (coming from a RedHat and Debian background but wanting the ease of FreeBSD's ports ;-) and was wondering how does one go about setting up software RAID in Gentoo for the boot and root drives? Ive worked my way through the install docs but it doesn't mention software RAID setup. Also, was wondering how I go about getting LVM going in Gentoo? Would be nice to combine software RAID with LVM for certain file systems.

My other questions is about devfs: does Gentoo use devfs by default now? Or does this require some setup?


Im glad to be moving into Gentoo - thank you in advance for any help / pointers.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Tue Oct 07, 2003 10:05 pm    Post subject: Reply with quote

You don't usually need to do software RAID+LVM, since LVM can do striping itself. LVM's easy, anyway... The livecd kernel supports it, so just do vgscan to get started, make your PVs with pvcreate, then one or more VGs with vgcreate, then create logical volumes as you need them (lvcreate).

http://www.gentoo.org/doc/en/lvm.xml <-- start there

And yes, devfs is the default. Make sure you enable it in your kernel (ditto for LVM), or stuff breaks.
Back to top
View user's profile Send private message
symbiat
n00b
n00b


Joined: 20 Aug 2003
Posts: 36
Location: New York

PostPosted: Tue Oct 07, 2003 10:41 pm    Post subject: Reply with quote

OK, that makes sense.

What if I wanted to do /boot and / with software RAID and /var as an LVM? Or are you saying I should stick with LVM?
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Tue Oct 07, 2003 10:51 pm    Post subject: Reply with quote

Having a non-regular / and /boot will lead to much pain. You could do it, but it's probably not worth it... You wouldn't gain much performance-wise by doing that either...
Back to top
View user's profile Send private message
labrador
Guru
Guru


Joined: 04 Oct 2003
Posts: 316

PostPosted: Wed Oct 08, 2003 4:45 pm    Post subject: Does LVM provide for mirroring? Reply with quote

I'm interested in a set up that allows my system to keep running
if one drive fails. I consider a system that is lost due to a single drive
failure to be a "pain". I don't care about the small performance loss.

Does LVM provide a way to mirror even the boot partitions?

RAID 1 on /boot runs fine on my older Redhat, so I don't see why
it would a problem on shiny new gentoo.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Oct 08, 2003 5:38 pm    Post subject: Re: Does LVM provide for mirroring? Reply with quote

labrador wrote:
I'm interested in a set up that allows my system to keep running
if one drive fails. I consider a system that is lost due to a single drive
failure to be a "pain". I don't care about the small performance loss.


Well, if you go with HW raid0, you actually get a performance gain. On reads, anyway, writes will still be the same.

Quote:

Does LVM provide a way to mirror even the boot partitions?

RAID 1 on /boot runs fine on my older Redhat, so I don't see why
it would a problem on shiny new gentoo.


For mirroring you need to run LVM on top of MD or HW raid. The usual rules about /boot on MD apply (yes, it's possible).
Back to top
View user's profile Send private message
symbiat
n00b
n00b


Joined: 20 Aug 2003
Posts: 36
Location: New York

PostPosted: Wed Oct 08, 2003 6:03 pm    Post subject: Re: Does LVM provide for mirroring? Reply with quote

Quote:
For mirroring you need to run LVM on top of MD or HW raid. The usual rules about /boot on MD apply (yes, it's possible).


I have used software RAID (i.e. md) successfully on RedHat boxes. When one of the drives
failed, the machine continued running (in "degraded" mode). So, using md for / and /boot is highly desireable on some servers. (In my case, I have multiple U160 SCSI drives on a dual-Athlon box with 1Gb RAM ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum