View previous topic :: View next topic |
Author |
Message |
baeaan n00b
Joined: 05 Jun 2004 Posts: 37 Location: Illinois, USA
|
Posted: Sun Nov 27, 2005 1:43 am Post subject: cannot determine md version |
|
|
i am trying to build gentoo on a software RAID using the Gentoo 2005.1-rc1 live CD. after writing my raidtab, and creating a md0 block node in the dev directory, and partitioning my disks properly for the raid, when I run mkraid I get the following error:
Code: |
#mknod /dev/md0 b 0 0
#mkraid /dev/md0
cannot determine md version:6
|
Here is my raidtab:
Code: |
#
# RAID Setup
#
#System RAID
raiddev /dev/md0
raid-level 0
nr-raid-disks 2
persistent-superblock 1
chunk-size 32
device /dev/hdc2
raid-disk 0
device /dev/hdd1
raid-disk 1
|
anyone know what I have done wrong? |
|
Back to top |
|
|
tgh Apprentice
Joined: 05 Oct 2005 Posts: 222
|
Posted: Sun Nov 27, 2005 2:48 am Post subject: |
|
|
While I use mdadm (and /etc/mdadm.conf), your mknod looks iffy to me (it might be proper). I'm pretty sure you need a '9' after the 'b'.
Prerequisites:
- in fdisk, set partition types as "fd" (linux raid autodetect)
Here's how I initialize my nodes:
Code: | # modprobe md
# ls /dev/md*
ls: /dev/md*: No such file or directory
# for i in 0 1 2 3; do mknod /dev/md$i b 9 $i; done
# ls /dev/md*
/dev/md0 /dev/md1 /dev/md2 /dev/md3 |
Then I build the RAID arrays, be sure to change things as needed:
Code: | # modprobe raid1
# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda1 /dev/hde1
# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/hda2 /dev/hde2
# mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/hda3 /dev/hde3
# mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/hda4 /dev/hde4
# cat /proc/mdstat
# mdadm --detail --scan >> /etc/mdadm.conf |
I use: md0 - /boot, md1 - swap, md2 - / (root), md3 - lvm2 volumes. Notice that I use the output of mdadm to create my mdadm.conf file (no messy raidtab file to edit). I haven't mucked with raidtab since a 2004.3 install.
And of course, I build everything into the kernel for md and lvm2:
(D)evice drivers
--> M(u)lti-device support (turn it ON)
--> --> (R)AID support (turn it ON as BUILT-IN)
--> --> --> (R)AID-1 mirroring mode (turn it ON as BUILT-IN)
--> --> (D)evice mapper support (turn it ON as BUILT-IN)
(There's more to my install process then that, but those are the high points.) |
|
Back to top |
|
|
baeaan n00b
Joined: 05 Jun 2004 Posts: 37 Location: Illinois, USA
|
Posted: Sun Nov 27, 2005 4:06 am Post subject: it worked |
|
|
thank you so much! it worked |
|
Back to top |
|
|
|
|
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
|
|