raid 1 setup with setup_harddisks by Sam Vilain

Sam Vilain sam at vilain.net
Wed Jan 21 01:30:22 CET 2004



:-/ It looks like it gets most of the way there - modulo what look
like harmless errors (given that the mke2fs, etc works) - and then is
not writing a complete fstab.

How's your Perl?  Do you think you can debug the script with `perl
-d'?  My refactoring saw (I hoped) some improvements in the
readability of the code, so it should be a bit easier.

What the script really needs is a test suite for it, that feeds inputs
like this in, simulates what disks are found in the system with which
configuration, and checks that the script did the right thing.  So
that the script can be tested without necessarily running on the
system with the problem.

That way, it might also stand some chance of being accepted by the
core FAI team.

Unfortunately I can't spend any time on this, I'm flat out at the
moment!  I will, however, agree to review any changes you care to make
for sanity and include them in the version on my site.

On Wed, 21 Jan 2004 05:42, Joachim Schmitz wrote;

  > with the following in the class for partitioning:
  > 
  >   disk configuration for a 2 disk IDE configuration with RAID 1
  > # (mirroring)
  > 
  > # <type> <mountpoint> <size in mb> [mount options]     [;extra options]
  > 
  > disk_config hda
  > 
  > primary  /              512          rw,errors=remount-ro ; raid(1,md0)
  > primary  swap           2048         rw                   ; raid(1,md1)
  > logical  /tmp    4000         rw,notail            ; raid(1,md2) -j 
ext3
  > logical  /usr    9000         rw,notail            ; raid(1,md3) -j 
ext3
  > logical  /var    9000         rw,notail            ; raid(1,md4) -j 
ext3
  > logical  /www           0-           rw                   ; raid(1,md5) 
  > -j ext3
  > 
  > 
  > disk_config hdc
  > primary  -              512                              ; raid(1,md0)
  > primary  -              2048                             ; raid(1,md1)
  > logical  -              4000                             ; raid(1,md2)
  > logical  -              9000                             ; raid(1,md3)
  > logical  -              9000                             ; raid(1,md4)
  > logical  -              0-                               ; raid(1,md5)
  > 
  > 
  > and your setup_harddisks script I get the attached format-log. Which 
  > does look strange to me. Any hint welcome.
  > 
  > 
  > -- 
  > Mit freundlichen Grüßen                                Joachim Schmitz
  > ......................................................................
  > AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
  > Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
  > 

-- 
Sam Vilain, sam at vilain.net

  "That man is richest whose pleasures are cheapest"
 - Thoreau -






More information about the linux-fai mailing list