Error in setup-storage in FAI 4.1

Andreas Heinlein aheinlein at gmx.com
Thu Jun 19 13:14:47 CEST 2014


Am 18.06.2014 16:59, schrieb Thomas Neumann:
> Patch is attached, it was built against the 4.2 package. I haven't checked
> what happens if you try anything funny. May need some additional
adjustments
> (e.g. for preserving volumes).
Definitely needs some adjustments for preserving volumes. For me, that's
the whole point of trying to get setup-storage to work with LVM - as
long as I do not need to preserve anything, I can always do a 'dd
if=/dev/zero of=/dev/sda bs=1M count=10' in a hook for task_partition.

We're using a wheezy chroot here at the moment, with LVM 2.02.95-8,
liblinux-lvm-perl 0.17-1 plus the patch from Roland Dieterich (won't
work without it) and FAI 4.2 plus your patches.

Before your patches, we always reached the wipefs bug (missing '/dev' in
device name). Now, on the second run, we get:

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
Cannot satisfy pre-depends for true:
vgchange_a_n_VG_vg1,self_cleared_/dev/vg1//dev/vg1/home,self_cleared_/dev/vg1//dev/vg1/root,self_cleared_/dev/vg1//dev/vg1/swap,self_cleared_/dev/vg1//dev/vg1/tmp,self_cleared_/dev/vg1//dev/vg1/varlog
-- system left untouched
Error in task partition. Code: 710
Traceback: task_error task_partition task task_install task task_action
task main

Our disk_config:

disk_config disk1 disklabel:msdos bootable:1 align-at:1 fstabkey:uuid
primary /boot           250-300         ext4    rw
logical -               15000-          -       -

disk_config lvm preserve_lazy:vg1-home
vg vg1 disk1.5
vg1-root        /             8192-12000        ext4    
rw,errors=remount-ro
vg1-swap        swap          1024-2048         swap     rw
vg1-tmp         /tmp          500-1024          ext4     rw,nosuid
vg1-varlog      /var/log      500-1024          ext4     rw
vg1-home        /home           1024-           ext4     rw

I can only guess from the error message that there is a '/dev/vg1/'
prepended twice to the LV names. Maybe this is easy to fix, but I am not
very familiar with perl.

Bye,
Andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20140619/a7ef4eaa/attachment.html>


More information about the linux-fai mailing list