All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinz Mauelshagen <mauelshagen@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group
Date: Wed, 10 Jan 2007 18:08:48 +0100	[thread overview]
Message-ID: <20070110170848.GA19858@redhat.com> (raw)
In-Reply-To: <aec22fc50701091026i3b66ec18jbd18760e59164622@mail.gmail.com>

On Tue, Jan 09, 2007 at 09:26:03PM +0300, `VL wrote:
> Dear ALL, <linux-lvm@redhat.com>
> 
> I have a problem with LVM volume(details below) probably after bad shutdown:

Do you assume that, because your system died during
a running configuration change on "lvm1" ?

Are all PVs of "lvm1" accessible ?

If so, you need to fetch your most recent valid VG metadata archive
(see 'man vgcfgrestore'; option '-ll' to look at archive content)
and restore it. 'vgscan ; vgchange -ay' afterwards.

Regards,
Heinz    -- The LVM Guy --


> 
> There are 2 volumes: lvm2 and lvm1 (just names, type is lvm-1). lvm2 is fine
> and mounted,
> and lvm1 has problems:
> 
> # pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE   PV "/dev/sda1" of VG "lvm2" [372.56 GB / 0 free]
> pvscan -- ACTIVE   PV "/dev/sdb1" of VG "lvm2" [372.56 GB / 0 free]
> pvscan -- inactive PV "/dev/hdg1"  is associated to unknown VG "lvm1" (run
> vgscan)
> pvscan -- inactive PV "/dev/hdf1"  is associated to unknown VG "lvm1" (run
> vgscan)
> pvscan -- inactive PV "/dev/hdb1"  is associated to unknown VG "lvm1" (run
> vgscan)
> pvscan -- total: 5 [1.36 TB] / in use: 5 [1.36 TB] / in no VG: 0 [0]
> 
> # vgscan
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- found active volume group "lvm2"
> vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
> volume group "lvm1" from physical volume(s)
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> vgscan -- WARNING: This program does not do a VGDA backup of your volume
> groups
> 
> ls -l /dev/lvm*
> crw-r-----  1 root root 109, 0 2005-03-27 17:11 /dev/lvm
> 
> /dev/lvm1:
> total 0
> crw-r-----  1 root disk 109, 0 2007-01-05 17:14 group
> 
> /dev/lvm2:
> total 0
> crw-r-----  1 root disk 109, 1 2007-01-09 21:22 group
> brw-rw----  1 root disk  58, 1 2007-01-09 21:22 lv2
> 
> 
> System description:
> 
> kernel 2.4.31 vanilla
> slackware-10.2.0
> lvm-1.0.8-i486-1
> 
> any help will be greatly appreciated.

> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Storage Development                               56242 Marienrachdorf
                                                  Germany
Mauelshagen@RedHat.com                            PHONE +49  171 7803392
                                                  FAX   +49 2626 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2007-01-10 17:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-09 18:26 [linux-lvm] vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group `VL
2007-01-10 17:08 ` Heinz Mauelshagen [this message]
2007-01-10 18:16   ` `VL
2007-01-11 11:20 ` Joel Rees
2007-01-12 18:44   ` `VL
  -- strict thread matches above, loose matches on Subject: below --
2002-08-03  5:56 d.levitin
2002-08-03  6:36 ` James Hawtin
2002-08-03  7:04   ` d.levitin
2002-08-03 17:32     ` sander
2002-08-04  5:41       ` d.levitin

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=20070110170848.GA19858@redhat.com \
    --to=mauelshagen@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.