Problem with setup-storage preserving an existing LVM over RAID volume

Christian Meyer c2h5oh at web.de
Mon Jan 7 22:45:18 CET 2019


Hello Thomas

Am Freitag, den 04.01.2019, 19:41 +0100 schrieb Thomas Lange:
> It will take some effort to debug this.
Okay, I will try to help as much as I can, but sadly I don't understand
any perl.


> The initrd (created by dracut) may also detect and active softraid
> and lvm. I'm not sure if this really happens.
Yes, it seems so.
I switched to tty2 right after class/20-hwdetect and vgdisplay
lvdisplay shows my whole lvm drive.

But even when I do:
# lvchange -an vg_guests
# vgchange -an vg_guests
# mdadm --stop /dev/md*

the problem still exists. The main difference is that disklist is
without raid or lvm stuff:
disklist: sda
sdb
sdc
sdd
sde

But then it looks similar:
# setup-storage -f /var/lib/fai/config/disk_config/KVM -d
1>/tmp/logfile 2>/tmp/logfile
# --------------------------------------------
Using config file: /var/lib/fai/config/dUse of uninitialized value
$this_mp in string eq at /usr/share/fai/setup-storage/Parser.pm line
1225, <$config_file> line 1.
Use of uninitialized value $this_mp in hash element at
/usr/share/fai/setup-storage/Parser.pm line 1226, <$config_file> line
1.
Use of uninitialized value $this_mp in string eq at
/usr/share/fai/setup-storage/Parser.pm line 1230, <$config_file> line
1.
Use of uninitialized value $this_mp in hash element at
/usr/share/fai/setup-storage/Parser.pm line 1230, <$config_file> line
1.
File descriptor 4 (/dev/tty2) leaked on vgdisplay invocation. Parent
PID 3710: /usr/bin/perl
File descriptor 63 (pipe:[14475]) leaked on vgdisplay invocation.
Parent PID 3710: /usr/bin/perl
  WARNING: Failed to connect to lvmetad. Falling back to device
scanning.
File descriptor 4 (/dev/tty2) leaked on vgdisplay invocation. Parent
PID 3710: /usr/bin/perl
File descriptor 63 (pipe:[14475]) leaked on vgdisplay invocation.
Parent PID 3710: /usr/bin/perl
  WARNING: Failed to connect to lvmetad. Falling back to device
scanning.
INTERNAL ERROR in setup-storage:
convert_unit 1,81TiB
Please report this error to the Debian Bug Tracking System.
 at /usr/share/fai/setup-storage/Parser.pm line 379.
	FAI::convert_unit("1,81TiB") called at /usr/share/fai/setup-
storage/Volumes.pm line 416
	FAI::get_current_lvm called at /usr/sbin/setup-storage line 167
ey:uuid preserve_reinstall:1
primary   -           300G-      -          -
disk_config sdd sameas:sdc


# RAID:
# =====
#disk_config raid fstabkey:uuid
disk_config raid fstabkey:uuid preserve_reinstall:2,3
raid1      /       sda1,sdb1    ext4    rw,noatime,errors=remount-ro
raid1      -       sda3,sdb3    -       -
raid1      -       sdc1,sdd1    -       -
# --------------------------------------------

But why has $this_mp an uninitialized value?

Christian


More information about the linux-fai mailing list