[fedora-virt] virsh output discrepancy with vol-list

Shergill, Gurinder gurinder.shergill at hp.com
Thu Apr 11 12:08:16 UTC 2013


> -----Original Message-----
> From: Kashyap Chamarthy [mailto:kashyapc at fedoraproject.org]
> Sent: Thursday, April 11, 2013 4:09 AM
> To: Shergill, Gurinder
> Cc: virt at lists.fedoraproject.org
> Subject: Re: [fedora-virt] virsh output discrepancy with vol-list
> 
> On 04/11/2013 08:36 AM, Shergill, Gurinder wrote:
> > Hello,
> >
> > I am seeing following discrepancy with virsh output for volume list,
> which goes away when I restart the libvirtd daemon.
> >
> > Here virsh shows 4 volumes. Also, notice that first 2 volumes are
> duplicates.
> >
> > $ virsh vol-list --pool default
> > Name                 Path
> > -----------------------------------------
> > crab.vol.0.img       /var/lib/libvirt/images/crab.vol.0.img
> > crab.vol.0.img       /var/lib/libvirt/images/crab.vol.0.img
> > fish.vol.0.img       /var/lib/libvirt/images/fish.vol.0.img
> > fish.vol.1.img       /var/lib/libvirt/images/fish.vol.1.img
> >
> > However, none of the above volumes currently exist (as I had just
> deleted them using, again, using virsh).
> >
> > $ ll /var/lib/libvirt/images/
> > total 0
> >
> > Now, I restart libvirt. And, after that virsh output is fine.
> >
> > $ virsh vol-list --pool default
> > Name                 Path
> > -----------------------------------------
> >
> > Any idea what is going on here ? Is this a known issue ?
> 
> Not sure at the first glance.
> >
> > I am using Fedora 17.
> 
> Version of libvirt ?

$ rpm -qa | grep libvirt
libvirt-daemon-0.9.11.9-1.fc17.x86_64
libvirt-python-0.9.11.9-1.fc17.x86_64
libvirt-daemon-config-network-0.9.11.9-1.fc17.x86_64
libvirt-client-0.9.11.9-1.fc17.x86_64
libvirt-daemon-qemu-0.9.11.9-1.fc17.x86_64
libvirt-0.9.11.9-1.fc17.x86_64
libvirt-daemon-config-nwfilter-0.9.11.9-1.fc17.x86_64

> 
> I'm using this version & I can't reproduce it -- libvirt-1.0.4-
> 1.fc18.x86_64

The issue doesn't happen all the time or right away. I am working on benchmarking various KVM storage I/O options, for this I routinely create/destroy guests, and after a while I'll notice this discrepancy.

> 
> Do you find the same issue with using --
> http://fedorapeople.org/groups/virt/virt-preview/

I haven't tried that yet.

> 
> For further debugging:
> 
> Add the below in in libvirtd.log
> ====
> log_level = 1
> log_outputs = 1:file:/var/tmp/libvirtd.log ====
> 
> $ service libvirtd restart
> 
> Monitor the log for interesting info.

Okay. I'll try that.

Sunny



More information about the virt mailing list