[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686095: partman/LVM: can't map LV to specified PV



Package: installation-reports

Image version: beta1 DVD amd64
http://cdimage.debian.org/cdimage/wheezy_di_beta1/amd64/iso-dvd/debian-wheezy-DI-b1-amd64-DVD-1.iso
Date: 28 August 2012



I successfully proceed through all steps up to partitioning / partman

I have a single disk of 500GB

I create the following:

sda1 256MB
sda2 250GB
sda3 250GB


Then I create a VG, called vg00, with two PVs, sda2 and sda3

Finally, I create an LV, called /dev/vg00/lv0, size = 250GB

pvdisplay shows me that everything was lumped onto /dev/sda2 and nothing
is on /dev/sda3

For modern use cases, such as btrfs RAID1, it is very useful to manually
assign each LV to a PV, e.g.

  lvcreate -n lv0 -L 250GB vg00 /dev/sda2
  lvcreate -n lv1 -L 250GB vg00 /dev/sda3

  mkfs.btrfs -d raid1 -m raid1 /dev/vg00/lv0 /dev/vg00/lv1

However, partman does not allow the final option to be added to the
lvcreate command line.

Workaround: user can run lvcreate from the shell to get exactly what
they want.


Reply to: