Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
put Gentoo on a software RAID
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
BLASTER_
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2002
Posts: 105
Location: .:Sea - WA - USA

PostPosted: Wed Oct 09, 2002 6:59 am    Post subject: put Gentoo on a software RAID Reply with quote

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
View user's profile Send private message
Gav
n00b
n00b


Joined: 10 Oct 2002
Posts: 65
Location: Surrey, UK

PostPosted: Thu Oct 10, 2002 2:55 pm    Post subject: Re: put Gentoo on a software RAID Reply with quote

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
View user's profile Send private message
BLASTER_
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2002
Posts: 105
Location: .:Sea - WA - USA

PostPosted: Thu Oct 10, 2002 8:26 pm    Post subject: Reply with quote

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
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