LVM on an entire disk

Michael Tautschnig mt at debian.org
Fri Oct 30 11:42:18 CET 2009


> Le jeudi 29 octobre 2009 à 16:09 +0100, Michael Tautschnig a écrit :
> > [...]
> > 
> > > 
> > > I have patched setup-storage to handle LVM on an entire disk like this:
> > > file: usr/share/fai/setup-storage/Parser.pm near lines 607
> > > 
> > >               if ($dev =~ m/^disk(\d+)\.(\d+)/) {
> > >                 $dev = &FAI::make_device_name("/dev/" . $FAI::disks[ $1
> > > - 1 ], $2);
> > > +              } elsif ($dev =~ m/^disk(\d+)/) {
> > > +               $dev = "/dev/" . $FAI::disks[ $1 - 1 ];
> > >               } else {
> > >                 $dev = "/dev/$dev";
> > >               }
> > > 
> > > Hope this will (or has already) be(en) integrated in next release :)
> > > 
> > 
> > Did you actually test/use it like this? If so, I'll get it in in a few moments.
> > 
> > Best,
> > Michael
> > 
> 
> 	
> However, this need to be fixed...
> 
> Executing: udevsettle --timeout=10 && parted -s /dev/sdb set -1 lvm on
> Command udevsettle --timeout=10 && parted -s /dev/sdb set -1 lvm on had
> exit code 1
> 

Could you try experimental version 3.2.23~beta35+experimental1, which was just
built? This one includes your proposed patch and a fix for this problem. I
didn't spot any other things that need to be fixed, but then again I couldn't
test this release either. Therefore any feedback is appreciated. I don't think
that patch will be included in the next release of FAI mainline, but any release
thereafter should include it.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20091030/35d0112f/attachment.bin 


More information about the linux-fai mailing list