Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: othersrc/external/bsd/genraidconf



Module Name:    othersrc
Committed By:   agc
Date:           Tue May 17 03:48:50 UTC 2011

Update of /cvsroot/othersrc/external/bsd/genraidconf
In directory ivanova.netbsd.org:/tmp/cvs-serv2114

Log Message:
initial import of genraidconf, an embryonic RAIDframe configuration file
generator, into opthersrc.

     The genraidconf command constructs a configuration file for a RAID set.
     It uses various pieces of information to construct a number of disklabels
     for the RAID set component disks using disklabel(8), and a configuration
     file for RAID frame itself, raid(4) producing a file as described in
     raidctl(8).

It also can zero components before use, performs some basic sanity checks
on its inputs, and, in general, prepares the RAID set to the stage where a
newfs(8) may occur on it.

This utility is embryonic, since it needs much more testing. As such, it
must be considered experimental at this stage.

Examples of sage:

     % uname -m
     amd64
     % genraidconf.sh -n -o raid5 -d raid0 sd0 sd1 sd2
     fdisk -uai -A 2048 sd0a
     fdisk -uai -A 2048 sd1a
     fdisk -uai -A 2048 sd2a
     disklabel -R sd0 /tmp/label.20322a
     disklabel -R sd1 /tmp/label.20322a
     disklabel -R sd2 /tmp/label.20322a
     raidctl -I 20110516143616 raid0
     raidctl -i raid0
     raidctl -A yes raid0
     % genraidconf.sh -n -o raid1 -d raid1 sd0 sd1 sd2
     RAIDframe RAID1 requires 2 disks
     % genraidconf.sh -n -r 1 -d raid1 sd0 sd1
     fdisk -uai -A 2048 sd0a
     fdisk -uai -A 2048 sd1a
     disklabel -R sd0 /tmp/label.26009a
     disklabel -R sd1 /tmp/label.26009a
     raidctl -I 20110516143702 raid1
     raidctl -i raid1
     raidctl -A yes raid1
     % genraidconf.sh -n -o raid1 -d raid1 -o zero sd0 sd1
     dd if=/dev/zero bs=32k of=/dev/rsd0a
     dd if=/dev/zero bs=32k of=/dev/rsd1a
     fdisk -uai -A 2048 sd0a
     fdisk -uai -A 2048 sd1a
     disklabel -R sd0 /tmp/label.23760a
     disklabel -R sd1 /tmp/label.23760a
     raidctl -I 20110516143710 raid1
     raidctl -i raid1
     raidctl -A yes raid1
     % genraidconf.sh -n -o raid1 -d raid1 -o zero -o root sd0 sd1
     dd if=/dev/zero bs=32k of=/dev/rsd0a
     dd if=/dev/zero bs=32k of=/dev/rsd1a
     fdisk -uai -A 2048 sd0a
     fdisk -uai -A 2048 sd1a
     disklabel -R sd0 /tmp/label.25286a
     disklabel -R sd1 /tmp/label.25286a
     raidctl -I 20110516143738 raid1
     raidctl -i raid1
     raidctl -A yes raid1
     raidctl -A root raid1
     %

With a huge thankyou to Matthew Green for guidance on a number of
issues.


Status:

Vendor Tag:     CROOKS
Release Tags:   genraidconf-base
                
N othersrc/external/bsd/genraidconf/genraidconf.8
N othersrc/external/bsd/genraidconf/genraidconf.sh
N othersrc/external/bsd/genraidconf/Makefile

No conflicts created by this import



Home | Main Index | Thread Index | Old Index