Emanuele Morozzi wrote:

> 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
> ******************************************************************
>

Ok, I don't use mdadm, but that looks completely screwed up to me. 
First, if you want the md driver to autodetect your raid arrays, the
partitions types on sda, as well as sdb4, need to be 0xfd.  Use fdisk to
fix them.  You also need to create the arrays with "persistent superblocks."

But, more importantly, your partition sizes are not even close to a
match for raid 0.  For example, /dev/md1 consists of sda2 and sdb2
according to your mdadm.conf file...but sda2 is ~92GB while sdb2 is
0.5GB.  That means /dev/md1 (assuming raid0 or raid1) should come out
about 1GB total size, wasting 91GB of space!!!!

-Richard
-- 
[email protected] mailing list

Reply via email to