linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Bastian Blank <waldi@debian.org>
To: Barasz Mihaly <klao@cs.elte.hu>, 331342@bugs.debian.org
Cc: linux-lvm@redhat.com
Subject: [linux-lvm] Re: Bug#331342: lvm2: lvs fails to display snapshot volumes
Date: Mon, 3 Oct 2005 11:40:23 +0200	[thread overview]
Message-ID: <20051003094023.GA15082@wavehammer.waldi.eu.org> (raw)
In-Reply-To: <E1EMFoR-0008MU-48@karp.cs.elte.hu>

[-- Attachment #1: Type: text/plain, Size: 1615 bytes --]

tags 331342 upstream
forwarded 331342 linux-lvm@redhat.com
thanks

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                              
> #
> 
> One can see that "home" is an origin for some snapshot, but can't see
> the snapshot volume.
> 
> It may be interesting, that the snapshot can be used, it appears in
> /dev/vg0:
> 
> # ls -l /dev/vg0
> total 0
> lrwxrwxrwx  1 root root 20 Oct  3 03:32 data -> /dev/mapper/vg0-data
> lrwxrwxrwx  1 root root 20 Oct  3 03:32 home -> /dev/mapper/vg0-home
> lrwxrwxrwx  1 root root 22 Oct  3 03:32 tegnap -> /dev/mapper/vg0-tegnap
> # 
> (the one named "tegnap" is the snapshot.)
> 
> Snapshots still can be created/removed/used, the only problem that they are
> "invisible" now.

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;

> I've checked the vanilla versions from
> ftp://sources.redhat.com/pub/lvm2/  and neither 2.01.13 nor 2.01.14
> works, so the bug is probably in the upstream.
> The last version that works for me is 2.01.09.

This code is new in 2.01.10 or 2.01.11.

Bastian

-- 
Well, Jim, I'm not much of an actor either.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

       reply	other threads:[~2005-10-03  9:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EMFoR-0008MU-48@karp.cs.elte.hu>
2005-10-03  9:40 ` Bastian Blank [this message]
2005-10-03 14:04   ` [linux-lvm] Re: Bug#331342: lvm2: lvs fails to display snapshot volumes Alasdair G Kergon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051003094023.GA15082@wavehammer.waldi.eu.org \
    --to=waldi@debian.org \
    --cc=331342@bugs.debian.org \
    --cc=klao@cs.elte.hu \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).