View previous topic :: View next topic |
Author |
Message |
BLASTER_ Tux's lil' helper
Joined: 17 May 2002 Posts: 105 Location: .:Sea - WA - USA
|
Posted: Wed Oct 09, 2002 6:59 am Post subject: put Gentoo on a software RAID |
|
|
if anyone is wondering on how to do this.... this is what I did to install gentoo's root on a software raid level 0
booted from Gentoo 1.3 CD (not the -live- cd)
brought up network
loaded scsi modules for my system.
loaded raid modules for my level (modprobe raid0)
partitioned disk, /dev/hdc = boot, and 4 swaps first on each drive and total remaining space set to type raid autodetect.
hand configured /etc/raidtab mine looks like this.
Code: | raiddev /dev/md0
raid-level 0
nr-raid-disks 4
persistent-superblock 1
chunk-size 32
device /dev/sda2
raid-disk 0
device /dev/sdb2
raid-disk 1
device /dev/hda2
raid-disk 2
device /dev/hdc3
raid-disk 3
|
started raid. raidstart /dev/md0
formated raid and other filesystems. mkreiserfs /dev/md0
mounted partitions extracted 1.4 from the live cd.
copied /etc/raidtab over to the system after untaring the cd.
then on the kernel config I included all the raid - lvm modules into the kernel (*) along with the modules for my scsi devices, and my filesystems. (so that everything ready-to-run right from the kernel)
and in setting up grub I just set my menu.lst file like this (rember my boot partition is /dev/hdc1 not /dev/hda and since there are only two IDE devices on seprate chanels grub identifies the secondary master as the second drive.. not the third)
Code: |
default 0
timeout30
splashimage=/boot/grub/splash.xpm.gz
title=Gentoo GNU/Linux (2.4.19-gentoo-r9)
root (hd1,0)
kernel /boot/vmlinux-2.4.19-gentoo-r9 root=/dev/md0 |
thats all.. however, the I get a [FAILED] to stop /dev/md0 upon reboot, but the system runs fine. anyone know why? anyone know how I can park the RAID right before shutdown? |
|
Back to top |
|
|
Gav n00b
Joined: 10 Oct 2002 Posts: 65 Location: Surrey, UK
|
Posted: Thu Oct 10, 2002 2:55 pm Post subject: Re: put Gentoo on a software RAID |
|
|
BLASTER_ wrote: | if anyone is wondering on how to do this.... |
On a similar theme I'm wondering on setting up a software RAID 5 array during install for data, not the system drive. Or is this something that I;d do after install in Gentoo? |
|
Back to top |
|
|
BLASTER_ Tux's lil' helper
Joined: 17 May 2002 Posts: 105 Location: .:Sea - WA - USA
|
Posted: Thu Oct 10, 2002 8:26 pm Post subject: |
|
|
well.. you would load up the devices, make sure linux can see them, then make a raidtab and start the raid then format the devices, mount it and your ready to go. check this out.
http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html
that /dev/md0 failed to unmount bothers me a little, but so far no prolbems.. humm. |
|
Back to top |
|
|
|