FS#19448 - LVM (and maybe other device mapper stuff?) breaks AIF when there are hyphens in the name

Attached to Project: Release Engineering
Opened by Lukas Grässlin (lukasg) - Thursday, 13 May 2010, 13:58 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:53 GMT
Task Type Bug Report
Category AIF
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version 2010.05.07-testbuild
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

I have a virtual machine with two disks.

Disk 1: 80 MB Boot partition and the rest on the second partition.
Disk 2: completely clean, no partitions

In the installer I choose /dev/sda2 and /dev/sdb as physical volumes. On this two I create and volumegroup and within this an logical volume.
ext4 as filesystem.

So, I'm finisched and confirming with "Done".

It fails with a message, that maybe some devices could not be settled within 10s etc. and after that AIF exits with: "ERROR: process_filesystem needs a partition $1"

On tty7 the last I can see is, that the installer created successfully the phsysical volumes. (pvdisplay confirms this.) But there are no volumegroup and no logial volume.
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Monday, 26 November 2012, 04:53 GMT
Reason for closing:  Deferred
Comment by Lukas Grässlin (lukasg) - Thursday, 13 May 2010, 20:57 GMT
I retestet it. I think the failure is because I use two physical volumes. If I only use one it works.
Comment by Oliver Reed (fishbol) - Monday, 24 May 2010, 07:45 GMT
I use one physical volumes,but I am failed.
Comment by Julian (Creszent) - Tuesday, 25 May 2010, 23:21 GMT
I encountered a similar problem today.
Apparently AIF has problems with hypens in LV Names.

Just ran a quick test in a VM: 1 pv /dev/sda1, 1 vg named vg0, 1 lv named test-root

AIF exited with "Warning: Could not create all needed filesystems. Either the underlying blockdevices didn't became available in 10 iterations, or process_filesystem failed" and "ERROR: process_filesystem needs a partition as $1"

Problem seems to be related to the hyphen:
[root@archiso~]# ls /dev/mapper
control vg0-test--root

relevant line from /var/log/aif/aif.log:
[DEBUG FS ] /dev/mapper/vg0-test-root ext3 / no_opts no_label no_params ->Cannot do right now...

Evidently AIF fails to regognize that dm replaces - by --.
Comment by M. Brown (mbrown) - Wednesday, 21 July 2010, 03:17 GMT
Same problem. Was using a hyphenated lv name ("crypt-root").
Comment by M. Brown (mbrown) - Wednesday, 21 July 2010, 03:27 GMT
I confirm that using a non-hyphenated lv name fixed the problem.
Comment by Dieter Plaetinck (Dieter_be) - Wednesday, 08 December 2010, 20:48 GMT
> Evidently AIF fails to regognize that dm replaces - by --.

that's interesting. I did not know DM does that.
I couldn't find much info about this.
This seems to happen on devicefile names and in `dmsetup info` output, right?
Does it also happen in vgdisplay/pvdisplay/lvdisplay (can't check right now)? I guess not, because it only shows the names of separate things (i.e. just the vg, just the lv, never vgname-lvname)

About the other issue: aif does not support a Vg spanning multiple PV's. this is documented in the installation guide
Comment by Dieter Plaetinck (Dieter_be) - Wednesday, 19 January 2011, 12:41 GMT
okay, just talked with device-mapper guys.
I should use /dev/$vg/$lv rather then /dev/mapper/$vg-$lv, because all latter devicefiles have '-' replaced by '--' in $vg and $lv
Comment by Nicolas Braud-Santoni (nicoo) - Monday, 02 May 2011, 20:13 GMT
There is another (related?) problem in AIF:
When removing/editing a lv, it becomes impossible to edit/remove previously created lv.
Comment by Dieter Plaetinck (Dieter_be) - Tuesday, 03 May 2011, 18:44 GMT
you should make a new ticket for that
Comment by Dieter Plaetinck (Dieter_be) - Saturday, 24 December 2011, 09:06 GMT
patch committed.
https://github.com/Dieterbe/aif/commit/ccb45e816580091028bfab11516991542e62e2ce
however, needs testing. this will be in a new build @ http://releng.archlinux.org/isos/ tomorrow

Loading...