Public bug reported:
Got the following recipe for a one disk /boot + LVM setup (2 partitions, 2nd
one is PV for VG, 3-4 LVs):
256 256 256 ext4
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /boot }
12032 12032 1000000000 ext4
$defaultignore{ }
$primary{ }
method{ lvm }
vg_name{ vg1 }
device{ /dev/sda }
2048 2048 2048 linux-swap
lv_name{ swap }
method{ swap } format{ }
$lvmok{ }
in_vg{ vg1 }
5120 5120 5120 ext4
lv_name{ root }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
label{ root }
mountpoint{ / }
$lvmok{ }
in_vg{ vg1 }
4864 4864 5120 ext4
lv_name{ var }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
label{ var }
mountpoint{ /var }
$lvmok{ }
in_vg{ vg1 }
0 0 1000000000 ext4
lv_name{ srv }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
label{ srv }
mountpoint{ /srv }
$lvmok{ }
in_vg{ vg1 }
When I have a disk < ~24GB partman fails with "available disk space (...) too
small for expert recipe (24320)". the last number indicates that partman
calculates the total size of the recipe by adding all minimal sizes together
(256+12032+2048+5120+4864+0). but since I'm using LVM partman should only add
the minimal sizes of all "real" partitions together (256+12032).
Btw: It works if I specify minmal size 0 for the physical volume
PS: Using Ubuntu 16.04 Server iso image
** Affects: partman-base (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Got the following recipe for a one disk /boot + LVM setup (2 partitions, 2nd
one is PV for VG, 3-4 LVs):
- 256 256 256 ext4
- $primary{ } $bootable{ }
- method{ format } format{ }
- use_filesystem{ } filesystem{ ext4 }
- mountpoint{ /boot }
-
- 12032 12032 1000000000 ext4
- $defaultignore{ }
- $primary{ }
- method{ lvm }
- vg_name{ vg1 }
- device{ /dev/sda }
-
- 2048 2048 2048 linux-swap
- lv_name{ swap }
- method{ swap } format{ }
- $lvmok{ }
- in_vg{ vg1 }
-
- 5120 5120 5120 ext4
- lv_name{ root }
- method{ format } format{ }
- use_filesystem{ } filesystem{ ext4 }
- label{ root }
- mountpoint{ / }
- $lvmok{ }
- in_vg{ vg1 }
-
- 4864 4864 5120 ext4
- lv_name{ var }
- method{ format } format{ }
- use_filesystem{ } filesystem{ ext4 }
- label{ var }
- mountpoint{ /var }
- $lvmok{ }
- in_vg{ vg1 }
-
- 0 0 1000000000 ext4
- lv_name{ srv }
- method{ format } format{ }
- use_filesystem{ } filesystem{ ext4 }
- label{ srv }
- mountpoint{ /srv }
- $lvmok{ }
- in_vg{ vg1 }
+ 256 256 256 ext4
+ $primary{ } $bootable{ }
+ method{ format } format{ }
+ use_filesystem{ } filesystem{ ext4 }
+ mountpoint{ /boot }
+
+ 12032 12032 1000000000 ext4
+ $defaultignore{ }
+ $primary{ }
+ method{ lvm }
+ vg_name{ vg1 }
+ device{ /dev/sda }
+
+ 2048 2048 2048 linux-swap
+ lv_name{ swap }
+ method{ swap } format{ }
+ $lvmok{ }
+ in_vg{ vg1 }
+
+ 5120 5120 5120 ext4
+ lv_name{ root }
+ method{ format } format{ }
+ use_filesystem{ } filesystem{ ext4 }
+ label{ root }
+ mountpoint{ / }
+ $lvmok{ }
+ in_vg{ vg1 }
+
+ 4864 4864 5120 ext4
+ lv_name{ var }
+ method{ format } format{ }
+ use_filesystem{ } filesystem{ ext4 }
+ label{ var }
+ mountpoint{ /var }
+ $lvmok{ }
+ in_vg{ vg1 }
+
+ 0 0 1000000000 ext4
+ lv_name{ srv }
+ method{ format } format{ }
+ use_filesystem{ } filesystem{ ext4 }
+ label{ srv }
+ mountpoint{ /srv }
+ $lvmok{ }
+ in_vg{ vg1 }
When I have a disk < ~24GB partman fails with "available disk space (...) too
small for expert recipe (24320)". the last number indicates that partman
calculates the total size of the recipe by adding all minimal sizes together
(256+12032+2048+5120+4864+0). but since I'm using LVM partman should only add
the minimal sizes of all "real" partitions together (256+12032).
Btw: It works if I specify minmal size 0 for the physical volume
+
+ PS: Using Ubuntu 16.04 Server iso image
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1616888
Title:
partman-auto recipe: lvm: min.size of PV added to min.sizes of LVs
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/1616888/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs