Bug#331342: lvm2: lvs fails to display snapshot volumes

Barasz Mihaly klao at cs.elte.hu
Mon Oct 3 19:00:33 UTC 2005


On Mon, Oct 03, 2005 at 11:40 +0200, Bastian Blank wrote:
> 
> Seems that I found the problem. The code which iterates over the LVs
> explicitely ignores snapshot volumes.
> 
> tools/toollib.c:
> | 62         list_iterate_items(lvl, &vg->lvs) {
> | 63                if (lvl->lv->status & SNAPSHOT)
> | 64                        continue;

On Mon, Oct 03, 2005 at 15:03 +0100, Alasdair G Kergon wrote:
> On Mon, Oct 03, 2005 at 04:12:19AM +0200, Barasz Mihaly wrote:
> > After a recent upgrade lvs and lvdisplay stopped to display snapshot
> > volumes. Example:
>  
> > # lvs
> >   LV   VG   Attr   LSize  Origin Snap%  Move Log Copy% 
> >   data vg0  -wi-ao 84.00G                              
> >   home vg0  owi-ao 50.00G                              
> 
> Use lvs -a to see them.
> It was fixed in CVS a couple of weeks ago, but isn't included in a
> release yet.

Thank you for the prompt answer!

The "lvs -a" will do it till the next release.

						Misi




More information about the pkg-lvm-maintainers mailing list