Linux RAID subsystem development
 help / color / mirror / Atom feed
* Building my first software raid
@ 2004-04-09 21:50 me
  2004-04-09 23:26 ` Gordon Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: me @ 2004-04-09 21:50 UTC (permalink / raw)
  To: linux-raid

Hi,

I've read all the linux raid how-tos, and thought I was ready to take the
plunge on implementing software raid.  I've got a fresh install of Debian
Sarge, 2 disks.  3 partitions (/boot, /, swap).  So I installed Sarge,
partitioned hda during the installer with regular partitions:

abba:/usr/src# sfdisk -l /dev/hda

Disk /dev/hda: 2491 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1   *      0+     11      12-     96358+  83  Linux
/dev/hda2         12     133     122     979965   82  Linux swap
/dev/hda3        134    1957    1824   14651280   83  Linux
/dev/hda4          0       -       0          0    0  Empty

I wanted to do a raid 1.  So, then I went and partitioned hdc like:

abba:/usr/src# sfdisk -l /dev/hdc

Disk /dev/hdc: 1870 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hdc1   *      0+     12      13-    104391   fd  Linux raid autodetect
/dev/hdc2         13     137     125    1004062+  fd  Linux raid autodetect
/dev/hdc3        138    1756    1619   13004617+  fd  Linux raid autodetect
/dev/hdc4          0       -       0          0    0  Empty

So now I'd build my raid set:

abba:/usr/src# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda1
/dev/hdc1
mdadm: /dev/hda1 appears to contain an ext2fs file system
    size=96358K  mtime=Thu Apr  8 12:50:04 2004
mdadm: /dev/hdc1 appears to contain an ext2fs file system
    size=96358K  mtime=Wed Dec 31 18:00:00 1969
mdadm: largest drive (/dev/hdc1) exceed size (96256K) by more than 1%
Continue creating array? n
mdadm: create aborted.

I've google for that "mdadm: largest drive...than 1%" error with no results

Any help?

Thanks
Jay


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-09 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-09 21:50 Building my first software raid me
2004-04-09 23:26 ` Gordon Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox