installer unable to create multiple lvm volume groups

Bug #1133052 reported by Aaron Knister
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partman-base (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm not sure with which package this bug should be associated as it likely will span multiple (debian-installer,partman-lvm at the least)

I'm unable to create multiple volume groups via the kickstart installation method.

The following partitioning information in the kickstart file:
part /boot --size 1024 --asprimary --fstype ext3 --ondisk=1

part pv.01 --size 40960 --asprimary --fstype ext3 --ondisk=1
volgroup sysvg1 pv.01

part pv.02 --size 1 --asprimary --fstype ext3 --ondisk=1 --grow
volgroup usrvg1 pv.02

results in a single volume group called sysvg1 and another named after the machine's hostname. It attempts to create usrvg1 using the same device as that used for sysvg1.

I believe the immediate cause of this is in /lib/partman/lib/auto-lvm.sh in auto_lvm_create_vg_map(). The recipe_device variable should contain the physical device to use for the given partition, however there I don't believe any device{} tag is ever set. Looking at the output of /tmp/expert_recipe seems to support this:

256 256 256 ext3 $primary{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } . \
 40960 40960 40960 ext3 $primary{ } $defaultignore{ } method{ lvm } vg_name{ sysvg1 } . \
 1 1073741824 -1 ext3 $primary{ } $defaultignore{ } method{ lvm } vg_name{ usrvg1 } .

The bigger issue I think is that the physical volume/volume group relationships are stripped after kickseed initially parses the partitioning section in the kickstart file. Perhaps the mountpoint{} tag could be used to contain the PV <-> vg mappings.

Thanks!

-Aaron

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1133052/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → partman-base (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.