A. Khattri wrote:
On Fri, 20 May 2005, Emanuele Morozzi wrote:
Gentoo si installed in /dev/hda.
The Raid is a striping raid composed of /dev/sda /dev/sdb and consists
of 4 partitions. I created it installing windows (work reason).
The SATA controller is a Silicon 3512.
Before, with devfs, I used dmraid to create
dev/mapper/sil<something>{1,2,3,4} and mounted direclty using this
devices. I had to remove dmraid eBuild from /usr/local/portage (or
something like that) because it blocked the "emerge -uD world", and the
devices now are disappeared (i.e. using dmraid the devices are not
created). I need to create them manually but I have not found the right
way to do it.
I someone knows how to create this devices, please tell me.
The "normal" way to make (software) RAID devices is to use mkraid or
mdadm.
* sys-fs/mdadm
Latest version available: 1.9.0-r1
Latest version installed: 1.9.0-r1
Size of downloaded files: 92 kB
Homepage: http://cgi.cse.unsw.edu.au/~neilb/mdadm
Description: A useful tool for running RAID systems - it can be used as a
replacement for the raidtools
License: GPL-2
* sys-fs/raidtools
Latest version available: 1.00.3-r4
Latest version installed: [ Not Installed ]
Size of downloaded files: 163 kB
Homepage: http://people.redhat.com/mingo/raidtools/
Description: Linux RAID 0/1/4/5 utilities
License: GPL-2
You should also check that you have md support in your kernel (or if its a
module, use "modprobe md" and "modprobe raidX" (where X is your RAID level
- if you dont know what RAID level means I suggest you read the RAID HOWTO
at tldp.org).
I use mdadm and I have not compiled md and raid0 as modules, but
directly into the kernel. The problem is that while booting md doesn't
find the raid properly.
If you,re interested, this is part of the output of "fdisk -l"
******************************************************************
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2677 21502971 7 HPFS/NTFS
/dev/sda2 2678 25624 184321777+ 7 HPFS/NTFS
/dev/sda3 25625 39137 108543172+ 7 HPFS/NTFS
/dev/sda4 39138 49585 83923560 7 HPFS/NTFS
Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1581 12699351 fd Linux raid
autodetect
/dev/sdb2 1582 1706 1004062+ fd Linux raid
autodetect
/dev/sdb3 1707 1902 1574370 fd Linux raid
autodetect
/dev/sdb4 1903 24792 183863925 5 Extended
******************************************************************
And this is my mdadm.conf:
******************************************************************
DEVICE /dev/sda1
DEVICE /dev/sdb1
DEVICE /dev/sda2
DEVICE /dev/sdb2
DEVICE /dev/sda3
DEVICE /dev/sdb3
DEVICE /dev/sda4
DEVICE /dev/sdb4
ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md1 devices=/dev/sda2,/dev/sdb2
ARRAY /dev/md2 devices=/dev/sda3,/dev/sdb3
ARRAY /dev/md3 devices=/dev/sda4,/dev/sdb4
PROGRAM /usr/sbin/handle-mdadm-events
******************************************************************
--
gentoo-user@gentoo.org mailing list