Debian Bug report logs - #693701
setup-storage fails to partition the discs if LVM volume is present

version graph

Package: fai-server; Maintainer for fai-server is Thomas Lange <lange@debian.org>; Source for fai-server is src:fai.

Reported by: "Thomas Neumann" <blacky+fai@fluffbunny.de>

Date: Sun, 10 Jun 2012 10:16:00 UTC

Severity: normal

Tags: patch

Found in versions fai/4.0.1, fai/4.0.4, 4.6.0

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#676882; Package fai-server. (Sun, 10 Jun 2012 10:16:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Thomas Neumann" <blacky+fai@fluffbunny.de>:
New Bug report received and forwarded. Copy sent to Thomas Lange <lange@debian.org>. (Sun, 10 Jun 2012 10:16:03 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Thomas Neumann" <blacky+fai@fluffbunny.de>
To: "Debian Bug Tracking System" <submit@bugs.debian.org>
Subject: fai-server: dracut-network fails to nfsboot if LVM volume is present
Date: Sun, 10 Jun 2012 11:07:07 +0200
Package: fai-server
Version: 4.0.1
Severity: important

Tested with fai-nfsroot 4.0.1 and kernel 3.0.2

Installation of a fai nfsclient is not possible, if the client already has
LVM volumes. When the client boots, it recognizes the network card, but
does not boot from it. Instead it activates the LVM volume and does not
proceed.

Workaround: define rd_NO_LVM in the client's pxeconfig file
            (modify fai-chboot?)
Solution: Escalate problem to dracut-network?

nfsroot client info:

# cat /etc/apt/sources.list
--------------------------------------------------------------------------
# These lines should work for many sites
# A more comprehensive example is at /usr/share/doc/fai-doc/examples/etc

deb http://cdn.debian.net/debian wheezy main contrib non-free
deb http://security.debian.org/debian-security wheezy/updates main contrib
non-free

# repository that may contain newer fai packages for wheezy
deb http://fai-project.org/download wheezy koeln
--------------------------------------------------------------------------

# dpkg -l dracut-network fai-nfsroot linux-image-3.2.0-2-amd64
--------------------------------------------------------------------------
    Name                                         Version
ii  dracut-network                               019+1+gd77540c-1
ii  fai-nfsroot                                  4.0.1
ii  linux-image-3.2.0-2-amd64                    3.2.19-1
--------------------------------------------------------------------------






Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#676882; Package fai-server. (Thu, 21 Jun 2012 18:27:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Andreas B. Mundt" <andi.mundt@web.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Thu, 21 Jun 2012 18:27:03 GMT) Full text and rfc822 format available.

Message #10 received at 676882@bugs.debian.org (full text, mbox):

From: "Andreas B. Mundt" <andi.mundt@web.de>
To: 676882@bugs.debian.org
Subject: same with CD installation
Date: Thu, 21 Jun 2012 20:25:44 +0200
Hi,

I got the same issue when installing from a CD. The preparation of the
CD has been documented here:
<URL:http://wiki.debian.org/DebianLAN/bootstrap/wheezy>.  The config
space has been tested extensively on squeeze.  Up to now, no
modifications for wheezy have been made.

The error log looks almost identical to the error documented here:
<URL:https://lists.uni-koeln.de/pipermail/linux-fai/2012-June/009699.html>

Find below disk_config and logs.

Best regards,

     Andi



The disk_config I use is:

disk_config  disk1  fstabkey:uuid
primary  /boot       64-256    ext3    rw
primary  swap        64-2096   swap    sw
logical  -           0-        -       -

disk_config lvm
vg  vg_system  disk1.5
vg_system-root  /      1G-2G     ext3  errors=remount-ro
vg_system-usr   /usr   2G-20G    ext3  defaults
vg_system-var   /var   1G-20G    ext3  defaults
vg_system-home  /lan/mainserver/home0  2G-70%  ext3  defaults

==========

/tmp/fai/format.log:

Starting setup-storage 1.4
Using config file: /var/lib/fai/config/disk_config/LVM6_A
Executing: parted -s /dev/sda unit TiB print
Executing: parted -s /dev/sda unit B print free
Executing: parted -s /dev/sda unit chs print free
    Creating directory "/run/lock/lvm"
    Finding all volume groups
    Finding volume group "vg_system"
    Creating directory "/etc/lvm/archive"
    Archiving volume group "vg_system" metadata (seqno 5).
    Creating directory "/etc/lvm/backup"
    Creating volume group backup "/etc/lvm/backup/vg_system" (seqno 5).
    Finding all volume groups
    Finding volume group "vg_system"
    Finding all volume groups
    Finding volume group "vg_system"
    Finding all volume groups
    Finding volume group "vg_system"
Executing: mdadm --examine --scan --verbose -c partitions
Use of uninitialized value in string eq at /usr/share/fai/setup-storage//Commands.pm line 1142.
Cannot satisfy pre-depends for true: vgchange_a_n_VG_vg_system,pv_sigs_removed_vg_system,self_cleared_home,self_cleared_root,self_cleared_usr,self_cleared_var -- system left untouched.
Prototype mismatch: sub Parse::RecDescent::namespace000001::dclone ($) vs none at /usr/share/perl5/Parse/RecDescent.pm line 1984 during global destruction.

===========

/tmp/fai/fai.log:

             -------------------------------------------------
                   Fully Automatic Installation  -  FAI

                   FAI 4.0.1, 22 May 2012   (c) 1999-2012
               Thomas Lange  <lange@informatik.uni-koeln.de>
             -------------------------------------------------

Calling task_confdir
Kernel currently running: Linux 3.2.0-2-amd64 x86_64 GNU/Linux
Kernel parameters: BOOT_IMAGE=/boot/vmlinuz boot=live FAI_FLAGS=verbose,createvt FAI_ACTION=install hostname=mainserver
Kernel parameter ip= does not contain network parameters.
Warning: no domain name configured, using "localdomain"
Reading /tmp/fai/boot.log
FAI_FLAGS: verbose createvt
No monitor daemon defined.
FAI_CONFIG_SRC is set to file:///var/lib/fai/config
Using local path /var/lib/fai/config as config space.
Calling task_setup
FAI_FLAGS: verbose createvt
Press ctrl-c to interrupt FAI and to get a shell
Starting FAI execution - 20120621_195937
Calling task_defclass
fai-class: Defining classes.
Executing /var/lib/fai/config/class/10-base-classes.
10-base-classes      OK.
Executing /var/lib/fai/config/class/20-hwdetect.source.
loading kernel module usbkbd
loading kernel module ide-disk
20-hwdetect.source   OK.
Executing /var/lib/fai/config/class/50-host-classes.
50-host-classes      OK.
List of all classes:  DEFAULT LINUX AMD64 FAICD FAIBASE FAISERVER LVM6_A LOG_SERVER PROXY NTP_SERVER DNS_SERVER NFS_SERVER LDAP_CLIENT LDAP_SERVER KERBEROS_CLIENT KERBEROS_KDC KDC_LDAP SERVER_A GRUB_PC mainserver LAST
Calling task_defvar
Executing FAIBASE.var
++ FAI_ALLOW_UNSIGNED=1
++ CONSOLEFONT=
++ KEYMAP=us-latin1
++ UTC=yes
++ TIMEZONE=Europe/Berlin
++ ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
++ MODULESLIST='usbkbd ehci-hcd ohci-hcd uhci-hcd usbhid psmouse'
++ STOP_ON_ERROR=700
++ USE_SETUP_STORAGE=1
Executing SERVER_A.var
++ FAI_ALLOW_UNSIGNED=1
++ CONSOLEFONT=
++ KEYMAP=us-latin1
++ UTC=yes
++ TIMEZONE=Europe/Berlin
++ USERNAME=
++ ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
++ DATADIR=/root/installation/
++ KDC_MASTER_PW=
++ LDAP_ADMIN_PW=
++ MAINSERVER_IPADDR=10.0.0.1
++ GATEWAY=10.0.0.1
++ BROADCAST=10.0.255.255
++ NAMESERVER_IPADDR=
++ SUBNET=10.0.0.0
++ NETMASK=255.255.0.0
++ SUBNETMASK=10.0.0.0/16
++ FAINETMASK=10.0.0.0/24
++ RANGE='10.0.1.10 10.0.1.200'
++ WS_RANGE='50 149'
++ DL_RANGE='150 249'
++ APT_REPO_DIR=/var/www/debian/
++ MODULESLIST='usbkbd ehci-hcd ohci-hcd uhci-hcd usbhid psmouse'
++ STOP_ON_ERROR=700
++ USE_SETUP_STORAGE=1
Loading keymap(s) us-latin1 ...done.
Calling task_action
FAI_ACTION: install
Performing FAI installation. All data may be overwritten!

Calling task_install
Calling task_partition
WARNING: The variable USE_SETUP_STORAGE is not needed any more.
setup-storage is now the default tool for partitioning.
Starting setup-storage 1.4
Using config file: /var/lib/fai/config/disk_config/LVM6_A
Executing: parted -s /dev/sda unit TiB print
Executing: parted -s /dev/sda unit B print free
Executing: parted -s /dev/sda unit chs print free
    Creating directory "/run/lock/lvm"
    Finding all volume groups
    Finding volume group "vg_system"
    Creating directory "/etc/lvm/archive"
    Archiving volume group "vg_system" metadata (seqno 5).
    Creating directory "/etc/lvm/backup"
    Creating volume group backup "/etc/lvm/backup/vg_system" (seqno 5).
    Finding all volume groups
    Finding volume group "vg_system"
    Finding all volume groups
    Finding volume group "vg_system"
    Finding all volume groups
    Finding volume group "vg_system"
Executing: mdadm --examine --scan --verbose -c partitions
Use of uninitialized value in string eq at /usr/share/fai/setup-storage//Commands.pm line 1142.
Cannot satisfy pre-depends for true: vgchange_a_n_VG_vg_system,pv_sigs_removed_vg_system,self_cleared_home,self_cleared_root,self_cleared_usr,self_cleared_var -- system left untouched.
Prototype mismatch: sub Parse::RecDescent::namespace000001::dclone ($) vs none at /usr/share/perl5/Parse/RecDescent.pm line 1984 during global destruction.
Error in task partition. Traceback: task_error task_partition task task_install task task_action task main
$LOGUSER is undefined. Not saving log files to remote.
FATAL ERROR. Installation stopped.

=====================




Severity set to 'normal' from 'important' Request was from Thomas Lange <lange@debian.org> to control@bugs.debian.org. (Sun, 24 Jun 2012 11:45:16 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#676882; Package fai-server. (Sun, 15 Jul 2012 10:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Andreas B. Mundt" <andi.mundt@web.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Sun, 15 Jul 2012 10:30:05 GMT) Full text and rfc822 format available.

Message #17 received at 676882@bugs.debian.org (full text, mbox):

From: "Andreas B. Mundt" <andi.mundt@web.de>
To: 676882@bugs.debian.org
Subject: workaround
Date: Sun, 15 Jul 2012 12:16:28 +0200
Hi,

just for the record, a simple work around that solves my issue:

After being dropped to the command line, remove the LVM partition
with fdisk /dev/XXX. Use p (to print the partition table) and d (to
delete a partition).  Finally w (to write the modified table) and
reboot from the CD.  The installation should work again now.

Best regards,

     Andi




Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#676882; Package fai-server. (Thu, 19 Jul 2012 15:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Alorent <malorent@echo.fr>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Thu, 19 Jul 2012 15:51:03 GMT) Full text and rfc822 format available.

Message #22 received at 676882@bugs.debian.org (full text, mbox):

From: Mathieu Alorent <malorent@echo.fr>
To: 676882@bugs.debian.org
Subject: confirmed on FAI 4.0.3
Date: Thu, 19 Jul 2012 17:38:30 +0200
[Message part 1 (text/plain, inline)]
Hi,

same problem here on FAI 4.0.3

Executing: mdadm --examine --scan --verbose -c partitions
Cannot satisfy pre-depends for true: 
vgchange_a_n_VG_TEST,pv_sigs_removed_TEST,self_cleared_HOME -- system 
left untouched.
[...]
FATAL ERROR. Installation stopped.



[smime.p7s (application/pkcs7-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#676882; Package fai-server. (Wed, 25 Jul 2012 08:33:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Alorent <malorent@echo.fr>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Wed, 25 Jul 2012 08:33:03 GMT) Full text and rfc822 format available.

Message #27 received at 676882@bugs.debian.org (full text, mbox):

From: Mathieu Alorent <malorent@echo.fr>
To: 676882@bugs.debian.org
Subject: Patch
Date: Wed, 25 Jul 2012 10:30:27 +0200
[Message part 1 (text/plain, inline)]
Hi,

here is my patch for this bug :

https://github.com/kumy/fai/commit/fbdde8f6707f35bed3a377d901389a2d67e7de37

let me know if it's good for you.
Bests

-- 
Mathieu Alorent




[smime.p7s (application/pkcs7-signature, attachment)]

Added tag(s) patch. Request was from Mathieu Alorent <malorent@echo.fr> to control@bugs.debian.org. (Wed, 25 Jul 2012 15:57:05 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#676882; Package fai-server. (Sat, 17 Nov 2012 18:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Lange <lange@informatik.uni-koeln.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Sat, 17 Nov 2012 18:00:03 GMT) Full text and rfc822 format available.

Message #34 received at 676882@bugs.debian.org (full text, mbox):

From: Thomas Lange <lange@informatik.uni-koeln.de>
To: 676882@bugs.debian.org, 676882-submitter@bugs.debian.org
Subject: two different bug reports?
Date: Sat, 17 Nov 2012 18:58:00 +0100
Hi,

my impression is that we discus two different bugs here. The initial
bug report was about FAI not booting from LAN if an LVM volume exists
because dracut activates this volume and boots from it.

Then Andi and others talk about FAI booting CD but setup-storage
stopped because of existsing LVM volumes.

If this is correct, we should split the bug report into two different
ones.

-- 
regards Thomas



Message sent on to "Thomas Neumann" <blacky+fai@fluffbunny.de>:
Bug#676882. (Sat, 17 Nov 2012 18:00:07 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#676882; Package fai-server. (Mon, 19 Nov 2012 11:27:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Thomas Neumann" <blacky+fai@fluffbunny.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Mon, 19 Nov 2012 11:27:03 GMT) Full text and rfc822 format available.

Message #42 received at 676882@bugs.debian.org (full text, mbox):

From: "Thomas Neumann" <blacky+fai@fluffbunny.de>
To: "Thomas Lange" <lange@informatik.uni-koeln.de>, 676882-quiet@bugs.debian.org
Cc: 676882@bugs.debian.org, 676882-submitter@bugs.debian.org
Subject: Re: Bug#676882: two different bug reports?
Date: Mon, 19 Nov 2012 11:56:32 +0100
> my impression is that we discus two different bugs here.
[...]
> If this is correct, we should split the bug report into two different
> ones.

I'm under the same impression. Both symptoms are related to LVM, but are
different.

My original report relates to the booting of the fai-client. If an
LVM-volume is present, then the 'remote boot logic' won't run and instead
a local boot is attempted. It is a 'dracut' problem.

The other problem triggers _after_ the fai-client has completed the boot
process and actually attempts to format the disk. It is a 'setup-storage'
problem.

+1 for splitting




Information stored :
Bug#676882; Package fai-server. (Mon, 19 Nov 2012 11:27:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Thomas Neumann" <blacky+fai@fluffbunny.de>:
Extra info received and filed, but not forwarded. (Mon, 19 Nov 2012 11:27:07 GMT) Full text and rfc822 format available.

Message sent on to "Thomas Neumann" <blacky+fai@fluffbunny.de>:
Bug#676882. (Mon, 19 Nov 2012 11:27:09 GMT) Full text and rfc822 format available.

Bug 676882 cloned as bug 693701 Request was from "Thomas Neumann" <blacky+fai@fluffbunny.de> to control@bugs.debian.org. (Mon, 19 Nov 2012 13:57:08 GMT) Full text and rfc822 format available.

Changed Bug title to 'fai-server: setup-storage fails to partition the discs if LVM' from 'fai-server: dracut-network fails to nfsboot if LVM volume is present' Request was from "Thomas Neumann" <blacky+fai@fluffbunny.de> to control@bugs.debian.org. (Mon, 19 Nov 2012 13:57:08 GMT) Full text and rfc822 format available.

Changed Bug title to 'fai-server: setup-storage fails to partition the discs if' from 'fai-server: setup-storage fails to partition the discs if LVM' Request was from "Thomas Neumann" <blacky+fai@fluffbunny.de> to control@bugs.debian.org. (Mon, 19 Nov 2012 14:57:15 GMT) Full text and rfc822 format available.

Changed Bug title to 'setup-storage fails to partition the discs if LVM volume is present' from 'fai-server: setup-storage fails to partition the discs if' Request was from Thomas Lange <lange@debian.org> to control@bugs.debian.org. (Tue, 27 Nov 2012 15:27:06 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#693701; Package fai-server. (Fri, 30 Nov 2012 01:51:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Kroth <bpkroth@gmail.com>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Fri, 30 Nov 2012 01:51:04 GMT) Full text and rfc822 format available.

Message #63 received at 693701@bugs.debian.org (full text, mbox):

From: Brian Kroth <bpkroth@gmail.com>
To: Debian Bug Tracking System <693701@bugs.debian.org>
Subject: Re: setup-storage fails to partition the discs if LVM volume is present
Date: Thu, 29 Nov 2012 19:42:37 -0600
[Message part 1 (text/plain, inline)]
Package: fai-setup-storage
Version: 4.0.4
Followup-For: Bug #693701

So, the good news is that live-boot seems to work nicely now.

However, something like this bug is still occurring with 
fai-setup-storage 4.0.4.

If I install a machine with an LVM disk_config and then go to reinstall 
it (with preserve_reinstall) and the FAI_FLAG=inital set (so that it 
gets wiped), then it fails with the same "Cannot satisfy pre-depends for 
true" message as before.

I'll attach full debug log details in a moment.

Let me know if you need anything else.

Thanks,
Brian


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (120, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fai-setup-storage depends on:
ii  liblinux-lvm-perl         0.16-1
ii  libparse-recdescent-perl  1.967009+dfsg-1
ii  parted                    2.3-11
ii  perl                      5.14.2-15

Versions of packages fai-setup-storage recommends:
ii  lvm2   2.02.95-4
ii  mdadm  3.2.5-3

Versions of packages fai-setup-storage suggests:
pn  cryptsetup     <none>
ii  dmsetup        2:1.02.74-4
pn  dosfstools     <none>
pn  jfsutils       <none>
pn  ntfsprogs      <none>
pn  reiserfsprogs  <none>
pn  xfsprogs       <none>

-- no debconf information
[setup-storage.out (text/plain, attachment)]
[setup-storage.debug (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#693701; Package fai-server. (Wed, 02 Jan 2013 23:33:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to root <walkowiak@hep.physik.uni-siegen.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Wed, 02 Jan 2013 23:33:03 GMT) Full text and rfc822 format available.

Message #68 received at 693701@bugs.debian.org (full text, mbox):

From: root <walkowiak@hep.physik.uni-siegen.de>
To: Debian Bug Tracking System <693701@bugs.debian.org>
Subject: Re: setup-storage fails to partition the discs if LVM volume is present
Date: Thu, 3 Jan 2013 00:19:30 +0100
[Message part 1 (text/plain, inline)]
Package: fai-server
Version: 4.0.4
Followup-For: Bug #693701

Dear Maintainer,

I also experience a similar problem with fai-setup-storage 4.0.4 on Debian
testing when I use a disk_config with MD-RAID + LVM (see further below).
The first run of FAI install runs fine, but as soon as the disk configuration
already exists, including the LVM configuration, and I run FAI install again,
the following error is produced:

Executing: mdadm --examine --scan --verbose -c partitions
Cannot satisfy pre-depends for vgreduce vg0 /dev/md127: vg_extended_vg0,exist_/$
Error in task partition. Traceback: task_error task_partition task task_install$

It's a similar but not quite the same error as reported above.

Is there a fix available for this problem?  
>From the changelog for 4.0.5 it doesn't seem so.

So far my only solution is to manually wipe the boot sectors of the two
disks while I am still in the installation environment (per ssh login to 
FAI client) which is somewhat cumbersome during testing of a FAI 
configuration setup.

I have attached the debug output produced by manually running
setup-storage -X -d

Thanks for any advice,

w.w.

---- disk_config/faitest2:

# configure partitions on disks
disk_config disk1 disklabel:msdos fstabkey:uuid
  primary     -      20G-             -       -
  primary     swap   1G               swap    sw

disk_config disk2 disklabel:msdos fstabkey:uuid
  primary     -      20G-             -       -
  primary     swap   1G               swap    sw

# create software RAID-1
disk_config raid fstabkey:uuid
  raid1      -       disk1.1,disk2.1  -       -

# create logical volumes
disk_config lvm     
  vg         vg0     md0
  vg0-boot   /boot   256M             ext3    defaults
  vg0-root   /       20G              xfs     defaults
  vg0-store  /store  2G-              xfs     defaults


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (500, 'stable'), (300, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fai-server depends on:
ii  debootstrap  1.0.44
ii  fai-client   4.0.4

Versions of packages fai-server recommends:
ii  isc-dhcp-server                   4.2.2.dfsg.1-5+deb70u2
ii  libproc-daemon-perl               0.14-1
ii  nfs-kernel-server                 1:1.2.6-3
ii  openbsd-inetd [inet-superserver]  0.20091229-2
ii  openssh-client                    1:6.0p1-3
ii  openssh-server                    1:6.0p1-3
ii  tftpd-hpa                         5.2-4

Versions of packages fai-server suggests:
ii  aptitude     0.6.8.2-1
pn  debmirror    <none>
pn  genisoimage  <none>
pn  grub         <none>
ii  perl-tk      1:804.030-1
pn  reprepro     <none>

-- Configuration Files:
/etc/fai/NFSROOT changed [not included]
/etc/fai/apt/sources.list changed [not included]
/etc/fai/nfsroot.conf changed [not included]

-- no debconf information
[setup-storage_debug.txt (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#693701; Package fai-server. (Thu, 03 Jan 2013 13:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wolfgang Walkowiak <walkowiak@hep.physik.uni-siegen.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Thu, 03 Jan 2013 13:15:03 GMT) Full text and rfc822 format available.

Message #73 received at 693701@bugs.debian.org (full text, mbox):

From: Wolfgang Walkowiak <walkowiak@hep.physik.uni-siegen.de>
To: <693701@bugs.debian.org>
Subject: Re: Bug#693701: setup-storage fails to partition the discs if LVM volume is present
Date: Thu, 3 Jan 2013 14:13:53 +0100
[Message part 1 (text/plain, inline)]
Hi,

just a follow-up to my posting last night.

I tried Mathieu Alorent's patch for setup-storage/Command.pm, but
it resulted in a similar "Cannot satisfy pre-depends" error.

As a workaround, in order to be able to re-install a system with MD RAID 
and LVM, I wrote a small hook script named partition.WIPEDISKS (see 
attachment) in which I basically destroy the LVM, MD RAID setups and
wipe the boot sector of the hard drives.

Using this script I am able to reinstall such a system.  However,
the price is that I cannot preserve any partition, ie all the nice
preserve_xxx=device  options won't work.  For an LVM based parition setup
I'd expect the system to re-format all partitions which are not marked
to be preserved when task_partition (setup-storage) is run while those
marked to be preserved are left untouched.  This would be useful for doing 
a clean reinstallation of the system while data partitions are preserved.
Would be great if this behaviour could be available for this use case
(MD RAID+LVM) as well.

Thanks,

w.w.
[partition.WIPEDISKS (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#693701; Package fai-server. (Thu, 25 Jul 2013 17:48:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Gervai <grin@grin.hu>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Thu, 25 Jul 2013 17:48:05 GMT) Full text and rfc822 format available.

Message #78 received at 693701@bugs.debian.org (full text, mbox):

From: Peter Gervai <grin@grin.hu>
To: Debian Bug Tracking System <693701@bugs.debian.org>
Subject: Re: setup-storage fails to partition the discs if LVM volume is present
Date: Thu, 25 Jul 2013 19:29:30 +0200
[Message part 1 (text/plain, inline)]
Package: fai-server
Version: 4.6.0
Followup-For: Bug #693701

I have spent quite amount of time to fix this one, and Im pretty unhappy
with the chaos in the logic of related to LVM handling. I try to contribute
a few lines here to help it.

I have written a detailed bugreport before which was not sent due to a
mailserver problem, so I'm writing it again; this gonna be much shorter,
free of ranting and explanations.

The patch tries to straighten up the problems which can be solved by simple
fixes but simply IGNORES those parts which would have required a complete
rewrite of the handling logic: the order FAI tries now is:

vgchange_a_n -> wipe -> lvremove

which will not work since you cannot operate on deactivated LV devices. The
proper order would be:

wipe -> vgchange_a_n -> lvremove

but this would have required me to analyse the whole shebang to be able to
properly fix the logic; I kindly let you to do that. ;-) Until then wiping
is commented out since lvremove seems to do the job anyway.
[Commands.pm.lvm.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#693701; Package fai-server. (Sat, 21 Sep 2013 09:33:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Lange <lange@informatik.uni-koeln.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Sat, 21 Sep 2013 09:33:10 GMT) Full text and rfc822 format available.

Message #83 received at 693701@bugs.debian.org (full text, mbox):

From: Thomas Lange <lange@informatik.uni-koeln.de>
To: 670614@bugs.debian.org, 670614-submitter@bugs.debian.org, 693701@bugs.debian.org, 693701-submitter@bugs.debian.org, 717691@bugs.debian.org, 717691-submitter@bugs.debian.org, 681358@bugs.debian.org, 681358-submitter@bugs.debian.org
Subject: maybe a liblinux-lvm-perl problem
Date: Sat, 21 Sep 2013 11:30:46 +0200
FYI: setup-storage uses liblinux-lvm-perl which has bug #717684 which
may cause this LVM related bug, because vgdisplay has changed its
output from squeeze to wheezy.

-- 
regards Thomas



Message sent on to "Thomas Neumann" <blacky+fai@fluffbunny.de>:
Bug#693701. (Sat, 21 Sep 2013 09:33:22 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Thomas Lange <lange@debian.org>:
Bug#693701; Package fai-server. (Sun, 27 Oct 2013 12:21:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Lange <lange@informatik.uni-koeln.de>:
Extra info received and forwarded to list. Copy sent to Thomas Lange <lange@debian.org>. (Sun, 27 Oct 2013 12:21:04 GMT) Full text and rfc822 format available.

Message #91 received at 693701@bugs.debian.org (full text, mbox):

From: Thomas Lange <lange@informatik.uni-koeln.de>
To: 717691@bugs.debian.org, 717691-submitter@bugs.debian.org, 693701@bugs.debian.org, 693701-submitter@bugs.debian.org
Subject: new version of liblinux-lvm-perl available, may fix this bug
Date: Sun, 27 Oct 2013 13:19:56 +0100
The new version liblinux-lvm-perl 0.16-2 is now available. This may
fix your setup-storage problem. Could you please try the new
liblinux-lvm-perl version and report if this fixes your problem.
-- 
regards Thomas



Message sent on to "Thomas Neumann" <blacky+fai@fluffbunny.de>:
Bug#693701. (Sun, 27 Oct 2013 12:21:11 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 11:20:19 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.