When you fdisk'd hda, did it successfully re-read the partition table, or
did it fail with a device/resource busy message?
The last time I saw a device too small was because the kernel hadn't noticed
that the partition had been created.
reboot is the simplest cure, or call a sysctl to re-read the partition table
for the purists :)
good luck
Jim
----- Original Message -----
From: "Marc Haber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 17, 2000 12:37 PM
Subject: 2.2.16, "device too small (0 kB)"
> Hi,
>
> I am trying to build a RAID 1 with two disks on a new system. Linux is
> Debian potato, kernel 2.2.16 patched with raid-2.2.16-A0, raidtools
> built from raidtools-dangerous-0.90.20000116.tar.gz.
>
> Partitioning and raidtab follows:
> |haber@gwen[6/57]:~$ sudo fdisk -l
> |
> |Disk /dev/hda: 255 heads, 63 sectors, 2501 cylinders
> |Units = cylinders of 16065 * 512 bytes
> |
> | Device Boot Start End Blocks Id System
> |/dev/hda1 * 1 2501 20089251 5 Extended
> |/dev/hda5 1 31 248944+ 83 Linux
> |/dev/hda6 32 37 48163+ 83 Linux
> |/dev/hda7 38 2501 19792048+ fd Linux raid autodetect
> |
> |Disk /dev/hdb: 255 heads, 63 sectors, 2501 cylinders
> |Units = cylinders of 16065 * 512 bytes
> |
> | Device Boot Start End Blocks Id System
> |/dev/hdb1 1 2501 20089251 5 Extended
> |/dev/hdb5 1 31 248944+ 82 Linux swap
> |/dev/hdb6 32 37 48163+ 83 Linux
> |/dev/hdb7 38 2501 19792048+ fd Linux raid autodetect
> |haber@gwen[7/58]:~$ cat /etc/raidtab
> |raiddev /dev/md0
> | raid-level 1
> | nr-raid-disks 2
> | nr-spare-disks 0
> | chunk-size 4
> | persistent-superblock 1
> | device /dev/hda7
> | raid-disk 0
> | device /dev/hdb7
> | raid-disk 1
> |haber@gwen[8/59]:~$
>
> However, when I finally try to build the RAID, this is what happens:
> |haber@gwen[8/59]:~$ sudo mkraid /dev/md0
> |handling MD device /dev/md0
> |analyzing super-block
> |/dev/hda7: device too small (0kB)
> |mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
> |haber@gwen[9/60]:~$ cat /proc/mdstat
> |Personalities :
> |read_ahead not set
> |unused devices: <none>
> |haber@gwen[10/61]:~$
>
> Nothing is written to syslog.
>
> I made the partitions smaller (2 GB each), and get the same error
> message.
>
> Can anybody please point me in the right direction to get my RAID
> working?
>
> Greetings
> Marc
>
> --
> -------------------------------------- !! No courtesy copies, please
!! -----
> Marc Haber | " Questions are the | Mailadresse im
Header
> Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32
15
> Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31
29
>
>