View previous topic :: View next topic |
Author |
Message |
aerith n00b
Joined: 28 Jul 2005 Posts: 18 Location: Chérence 95
|
Posted: Sat Jul 30, 2005 8:39 pm Post subject: [RAID] mkraid and /dev |
|
|
Hi,
I want to create 3 raid for /, /usr and /home at the install of gentoo, on the live CD I do
format my 2 disks :
Code: |
Disk /dev/sde: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 124 995998+ 82 Linux swap / Solaris
/dev/sde2 125 248 996030 fd Linux raid autodetect
/dev/sde3 249 497 2000092+ fd Linux raid autodetect
/dev/sde4 498 9039 68613615 fd Linux raid autodetect
Disk /dev/sdf: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 1 124 995998+ 82 Linux swap / Solaris
/dev/sdf2 125 248 996030 fd Linux raid autodetect
/dev/sdf3 249 497 2000092+ fd Linux raid autodetect
/dev/sdf4 498 9039 68613615 fd Linux raid autodetect
|
load the moduls md, linear, raid0 and raid1 say in
http://fr.gentoo-wiki.com/HOWTO_Installation_de_Gentoo_avec_RAID
or
http://lea-linux.org/admin/admin_fs/raid.html
create /etc/raidtab
Code: |
livecd root # cat /etc/raidtab
# /
raiddev /dev/md2
raid-level 0
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/sde2
raid-disk 0
device /dev/sdf2
raid-disk 1
# /usr
raiddev /dev/md3
raid-level 0
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/sde3
raid-disk 0
device /dev/sdf3
raid-disk 1
# /home
raiddev /dev/md4
raid-level 1
nr-raid-disks 2
chunk-size 64
persistent-superblock 1
device /dev/sde4
raid-disk 0
device /dev/sdf4
raid-disk 1
|
but when I do mkraid
Code: |
livecd root # mkraid /dev/m
mapper mem misc mouse
livecd root # mkraid /dev/md2
cannot determine md version: no MD device file in /dev.
|
I found this https://forums.gentoo.org/viewtopic-t-231850-highlight-raid+md.html
and try to mknod /dev/md2 b 9 0
but it dont work and I can't rebuild the kernel or reboot
thinks _________________ La vie est ce qu'on en fait. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jul 30, 2005 9:51 pm Post subject: |
|
|
I would probably use the newer mdadm instead of the older raidtools.
mdadm offers a couple of advantages for lazy people (like me ).
/etc/raidtab is not needed
device nodes are created for you (with the --auto option)
In your case, the commands would look like this.
Code: | # mdadm --create /dev/md2 --auto=yes --chunk=32 --level=0 --raid-devices=2 /dev/sde2 /dev/sdf2
# mdadm --create /dev/md3 --auto=yes --chunk=32 --level=0 --raid-devices=2 /dev/sde3 /dev/sdf3
# mdadm --create /dev/md4 --auto=yes --level=1 --raid-devices=2 /dev/sde4 /dev/sdf4
# cat /proc/mdstat |
|
|
Back to top |
|
|
aerith n00b
Joined: 28 Jul 2005 Posts: 18 Location: Chérence 95
|
Posted: Sun Jul 31, 2005 7:45 pm Post subject: |
|
|
that's good
really thx
:* _________________ La vie est ce qu'on en fait. |
|
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
|
|