[Pkg-xen-devel] Bug#702340: xe sr-create creates nested PV/VG

Daniel Pocock daniel at pocock.com.au
Tue Mar 5 13:00:43 UTC 2013


Package: xcp-xe
Version: 1.3.2-14
Severity: normal

I created an LV manually and ran the command:

xe sr-create type=ext name-label=myHostSr0 \
   device-config:device=/dev/mapper/vg00-sr0

The SR was created, however, I found that it was created as a nested LV,
in other words, it appears xe did something like this:

   pvcreate /dev/mapper/vg00-sr0
   vgcreate sr_vg
   lvcreate sr_vg sr0

It's likely that most people will not want nested PVs/VGs like this and
the sr-create command should probably do one of the following:
a) work within the existing VG, or
b) refuse to do this operation and tell the user to run it on a raw
device and not an LV, or however it is intended to work,
and maybe offering a --force option allowing people to do this anyway if
they really intend that.



More information about the Pkg-xen-devel mailing list