[PATCH] Software raid support for setup_harddisks

Cyril Bouthors cyril at bouthors.org
Mon Aug 28 17:26:34 CEST 2006

I've made a patch to enhance setup_harddisks in order for it to
support the creation of Software RAID partitions.

The file setup_harddisks_raid_support.patch is the patch against the
latest SVN version. It is attached to this email.

Here is the config file I've used:

disk_config hda
primary  /boot         200         rw                   ;boot xfs
primary  swap          500         rw
primary  /             3000        rw                   ;xfs
primary  -             3000-       rw                   ;raid

Here is the output of my patched setup_harddisks:

setup_harddisks version 0.38fai
Probing disks:  /dev/hda
Disks found: hda

Using config file: /tmp/fileCCTlE4
Creating partition table: LC_ALL=C sfdisk -q  /dev/hda < /tmp/partition.hda
Creating file systems:
  mkfs.xfs -f /dev/hda1
  mkswap  /dev/hda2
  mkfs.xfs -f /dev/hda3
fsck 1.37 (21-Mar-2005)
fsck 1.37 (21-Mar-2005)

And the partition table after it:

myfai:~# fdisk -l

Disk /dev/hda: 10.0 GB, 10005037568 bytes
16 heads, 63 sectors/track, 19386 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         407      205127+  83  Linux
/dev/hda2             408        1423      512064   82  Linux swap / Solaris
/dev/hda3            1424        7519     3072384   83  Linux
/dev/hda4            7520       19386     5980968   fd  Linux raid autodetect

I hope this would help. Please include it in the SVN version.

Cyril Bouthors
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup_harddisks_raid_support.patch
Type: text/x-patch
Size: 1622 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20060828/3f42648d/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20060828/3f42648d/attachment-0001.bin 

More information about the linux-fai mailing list