lvm volumes not listed if lvm has command_names option = 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
lvm2 (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
I have an lvm vg called 'main' in which I keep images for my VMs and a few other things in. It's configured as a storage pool in libvirt:
sudo cat /etc/libvirt/
<pool type='logical'>
<name>main</name>
<uuid>
<capacity>
<allocation>
<available>
<source>
<name>
<format type='lvm2'/>
</source>
<target>
<path>
<permissions>
<
<
<
</permissions>
</target>
</pool>
virsh vol-list main wasn't working for me, after a bit of prodding I found the issue was that in /etc/lvm/lvm.conf I'd set
command_names = 1
in the 'log' section (having tried to debug some other lvm issues).
I'm going to say also this might be an lvm bug - I think command_names is actually changing the output format of the lvm commands, not just what's logged, and for an option in the log section of /etc/lvm/lvm.conf that's probably wrong.
Dave
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libvirt-bin 0.9.2-4ubuntu11
ProcVersionSign
Uname: Linux 3.0.0-9-generic x86_64
Architecture: amd64
CheckboxSubmission: f2d10bd9f943a85
CheckboxSystem: 0531969bcfd4f03
Date: Sun Aug 28 23:53:51 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: Upgraded to oneiric on 2011-07-31 (28 days ago)
modified.
modified.
mtime.conffile.
mtime.conffile.
Related branches
Changed in libvirt (Ubuntu): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
This, and possibly other parsing issues in libvirt's storage_ backend_ logical. c is causing LVM bugs with virt-manager. See bug 551432.