Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Sil 3112 Gentoo Install Software Raid0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
makis
n00b
n00b


Joined: 26 Jun 2005
Posts: 1
Location: Sydney, Australia

PostPosted: Fri Jul 01, 2005 10:15 am    Post subject: HOWTO: Sil 3112 Gentoo Install Software Raid0 Reply with quote

1. Boot live CD

Should have /dev/sda and /dev/sdb (the drives attached to the Sil controller show up as SCSI devices in 2.6 kernels - in 2.4 looked like normal IDE devices)

2. modprobe md and raid0 modules

3. Check for /dev/mdX devices

If you don't have any (because you run udev) you have to create them by hand using:

mknod /dev/md0 b 9 0 (that's to create /dev/md0)

likewise for /dev/md1 etc you use mknod /dev/md1 b 9 1 etc.

4. Create the raidset

With 2.6 kernels you should use the mdadm utility instead of raidtools (mkraid). So here is how to create the raidset

mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sda2 /dev/sdb2

This should create a raidset out of the partitions /dev/sda2 and /dev/sdb2. The raid will be of type 0 (stripping and no redundancy) and it will be accessible via /dev/md0 in our case.

Note that we had to specify the partitions that we want included in the Raid set. In our case /dev/sda1 is the /boot partition and therefore not part of the Raid (kernel must live in /boot if you want your system to boot).

Note also the partitions that you include in the Raidset must be of type "fd" otherwise creating the Raidset will not work.

5. Create a filesystem on the new Raid device

For example you can make a reiserfs filesystem on it like so:

mkreiserfs /dev/md0

Provided your disk have been correctly partitioned ahead of time, this should all work and give you a /dev/md0 that corresponds to a Raid0 set that's formatted with a reiserfs filesystem on it.

--------------------

System Recovery using the liveCD.

In order for the liveCD to work with the raidset there are a few steps required. These are:

modprobe md (the software raid support module)

modprobe raid0 (the raid0 specific module)

mknod /dev/md0 b 9 0 (that's to create /dev/md0)

mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb2 (the partitions that make up the raidset may be different in your case YMMV)

mount /dev/md0 as you normally would and you should now be able to recover the system and make it boot off the raidset again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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