Linux LVM users
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolinux.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] safe to ru-run vgscan after mounting LV root?
Date: Thu, 29 Mar 2001 12:10:10 -0700 (MST)	[thread overview]
Message-ID: <200103291910.f2TJAAl09275@webber.adilger.int> (raw)
In-Reply-To: <Pine.LNX.4.30.0103290944140.29639-100000@bongo.fms.indiana.edu> from Jay Sissom at "Mar 29, 2001 09:46:01 am"

Jay Sissom writes:
> Nope, I am running kernel 2.4.2 with the beta6 patch and the beta6
> utilities.

OK, that's a bad sign.

> This started after I resized a LV.  The answer from this list was, "don't
> run vgscan".  Now people on the list say you can run it as many times as
> you like.  If I run it once, all my LV's are gone.  I'd like to figure out
> what the problem is, but don't know where to start looking.

You _should_ be able to re-run vgscan, but in most cases (as you have
seen) it is not _necessary_ to do so.

In any case, how to track down the problem - run "vgscan -v -d" and
start going through the output with a fine-tooth comb.  Basically,
at some point you will start getting errors, and that is what is bad
(it is OK to get error codes in a few places, like when checking if
a partition/disk has an LVM header on it).

For a VG to be operative, you need all of the PVs in it to be OK.
This seems to be a common source of problems.  I have a modified
pv_read_all_pv() and pv_read_all_pv_of_vg() which is a lot better
in terms of reporting why a PV was discarded from the PV list. This
may make finding the source of the problem easier (even obvious ;-).

You can find it in an email to the lvm-devel mailing list dated
March 15 "Re: [lvm-devel] Extent list sorting considered buggy".

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

  reply	other threads:[~2001-03-29 19:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-27 14:14 [linux-lvm] safe to ru-run vgscan after mounting LV root? Mark van Walraven
2001-03-27 15:15 ` Patrick Caulfield
2001-03-27 16:01   ` Jay Sissom
2001-03-29  4:38     ` Mark van Walraven
2001-03-29 12:34       ` Ed Tomlinson
2001-03-29 14:46         ` Jay Sissom
2001-03-29 19:10           ` Andreas Dilger [this message]
2001-03-29 14:21       ` Patrick Caulfield

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=200103291910.f2TJAAl09275@webber.adilger.int \
    --to=adilger@turbolinux.com \
    --cc=linux-lvm@sistina.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