> -----Original Message-----
> From: Cole Robinson [mailto:[email protected]]
> Sent: Saturday, April 13, 2013 3:47 PM
> To: Shergill, Gurinder
> Cc: [email protected]
> Subject: Re: [fedora-virt] virsh output discrepancy with vol-list
> 
> On 04/10/2013 11:06 PM, 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 ?
> >
> 
> When you delete files behind libvirt's back, it doesn't notice.

Although, in my case, I used "virsh vol-delete" and did not go behind libvirt. 
And, the last instance I reported, issue happened without anything being 
deleted.

http://lists.fedoraproject.org/pipermail/virt/2013-April/003637.html

> You need to do
> 
>   virsh vol-refresh default

Good to know.

> 
> This was a deliberate decision by libvirt but for directory pools it's
> caused so much grief it should be fixed. There's a bug about a possible
> solution:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=821508
> 
> - Cole

I am moving to F18, as per Kashyap's suggestion, will report back how it goes.

Sunny

_______________________________________________
virt mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/virt

Reply via email to