Exci Apprentice


Joined: 12 Jul 2002 Posts: 265 Location: The Netherlands, Zoetermeer
|
Posted: Mon Dec 09, 2002 3:09 pm Post subject: software RAID01 |
|
|
I'm trying to make a 4x120GB raid01 array with software raid from linux.
what i mean with that is 2x a raid0(stripe) and those 2 mirrored.
I begin with:
hde - hdg - hdi - hdk
I partition those drives with 1 partition with raid auto detect(fd).
so then i have
hde1 - hdg1 - hdi1 - hdk1
then i make my raidtab:
| Code: |
intranet root # cat /etc/raidtab
## RaidArray0 (RAID0)
raiddev /dev/md0
raid-level 0
nr-raid-disks 2
persistent-superblock 1
chunk-size 32
device /dev/hde1
raid-disk 0
device /dev/hdg1
raid-disk 1
## RaidArray1 (RAID0)
raiddev /dev/md1
raid-level 0
nr-raid-disks 2
persistent-superblock 1
chunk-size 32
device /dev/hdi1
raid-disk 0
device /dev/hdk1
raid-disk 1
## RaidArray01 (RAID1)
raiddev /dev/md2
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/md0p1
raid-disk 0
device /dev/md1p1
raid-disk 1
|
I make the md0 and md1 and everything is fine, although my first problem show itself when i reboot. the rc-script with 'starting software raid' in it says that /dev//dev/md0 isn't correct .. like duh .. it has to be /dev/md0 .. I can change my raidtab and make the mkraids in /dev/ or i can edit the rc-script .. but what's best ? who started this problem? is it a syntax error in the rc-script or is my raidtab wrong ?
Ok I choose for editting my raidtab and continued, now i want to make md2 but md0p1 and md1p1 don't excist
I could make them with mknod .. although I don't now what major and minor to use and i don't know if i have to do this different with devfs ..
so please help meh  |
|