Error in setup-storage in FAI 4.1

Thomas Neumann blacky+fai at fluffbunny.de
Fri Jun 20 14:29:22 CEST 2014


Hello Andreas

Please try this patch against an unmodified 'fai-setup-storage_4.2_all.deb' and 
install libcapture-tiny-perl. You can also remove liblinux-lvm-perl if you 
want.

This patch is a bit larger then actually necessary since I modified the debug 
output a bit and added 2 helper functions 'update_devicetree()' and 
'execute()'. These helpers are not mandatory but it should be seen as an 
investment for the future.

@LVM2 2.02.88 or below: The patched setup-storage checks for ancient versions 
but it simply tells you to update. 


Using your config as a testcase I got:

Starting setup-storage 1.5
Using config file: /var/lib/fai/config/disk_config/DISK_TYPE5_preserve
Preserved partition /dev/sda5 does not end at a cylinder boundary, parted may 
fail to restore the partition!
/dev/sda5 will be preserved
/dev/sda2 will be resized
vg1/home will be preserved
Executing: wipefs -a /dev/sda1
Executing: vgchange -a n vg1
Executing: lvremove -f /dev/vg1/swap
Executing: lvremove -f /dev/vg1/root
Executing: lvremove -f /dev/vg1/varlog
Executing: lvremove -f /dev/vg1/tmp
Executing: parted -s /dev/sda mklabel msdos
Executing: parted -s /dev/sda mkpart extended "" 312475648B 10737418239B
Executing: parted -s /dev/sda mkpart logical "" 313524224B 10737418239B
Executing: parted -s /dev/sda resize 1 312475648B 10737418239B
Executing: parted -s /dev/sda mklabel msdos
Executing: parted -s /dev/sda mkpart primary "ext3" 1048576B 312475647B
Executing: parted -s /dev/sda set 1 boot on
Executing: parted -s /dev/sda mkpart extended "" 312475648B 10737418239B
Executing: parted -s /dev/sda set 2 lba on
Executing: parted -s /dev/sda mkpart logical "" 313524224B 10737418239B
Executing: parted -s /dev/sda set 5 lvm on
Executing: mkfs.ext4  /dev/sda1
Executing: vgchange -a y vg1
Executing: lvcreate  -n root -L 1024 vg1
Executing: mkfs.ext4  /dev/vg1/root
Executing: lvcreate  -n swap -L 1024 vg1
Executing: mkswap  /dev/vg1/swap
Executing: lvcreate  -n tmp -L 1024 vg1
Executing: mkfs.ext4  /dev/vg1/tmp
Executing: lvcreate  -n varlog -L 1024 vg1
Executing: mkfs.ext4  /dev/vg1/varlog
/dev/sda1 UUID=784c08d4-e2c7-4d73-8ef2-3190043288a2
/dev/vg1/swap UUID=3915692b-d23a-4a65-8efc-cfc0f5e2543c
/dev/vg1/root UUID=241daf75-4d5f-46bf-bdfc-5d9fc2e49a94
/dev/vg1/varlog UUID=0e46c3c0-e850-49bd-bafc-09364a5d4093
/dev/vg1/tmp UUID=6670aaf5-a4ca-429b-8028-a3c477869c75
/dev/vg1/home UUID=74aa737e-2a08-44c9-b9de-47d2fc1c5a39

bye
thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup-storage_lvm-patch2
Type: text/x-patch
Size: 16022 bytes
Desc: not available
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20140620/e37f5b4a/attachment.bin>


More information about the linux-fai mailing list