Honestly, I'm a newbie to doing software raid in linux. I was contracted
to do somework for a friend who owns an isp. He purchased hardware and I
was asked to setup the box and secure it. I setup linux on the first scsi
disk, now I'm looking for info on where to go from here..
My first idea was to setup raid 1 on the second two scsi disks and then
just copy the system over onto the array. So I dd'd the first 512 bytes
off the first drive and copied it to the other two and fdisk'd them, just
to write the table out. Then I setup my raidtab file as follows.
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sdc1
raid-disk 0
device /dev/sdb1
raid-disk 1
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sdc2
raid-disk 0
device /dev/sdb2
raid-disk 1
raiddev /dev/md2
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sdc3
raid-disk 0
device /dev/sdb3
raid-disk 1
My original idea here was to move the third disk, sdc, to id 0 making it
sda move sda to sdc etc.. making it the backup disk for the array.
Anyway... My problem is that /proc/mdstat only shows sdc being used
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 sdc1[0]
1542144 blocks [2/1] [U_]
md1 : active raid1 sdc2[0]
136448 blocks [2/1] [U_]
md2 : active raid1 sdc3[0]
7277376 blocks [2/1] [U_]
And my other question is, how should i set this up for lilo, do i have to
mount the other two disks and lilo them aswell ? Will the 2.4 kernel
handle booting off md0, do i still need initrd these days ?
Thanks ahead of time...
__
~/ony
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]