Linux LVM users
 help / color / mirror / Atom feed
From: Patrick Caulfield <caulfield@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] recovering a bad physical volume
Date: Tue Jul 16 02:14:02 2002	[thread overview]
Message-ID: <20020716071417.GB957@tykepenguin.com> (raw)
In-Reply-To: <Pine.SOL.4.44.0207160055110.25080-100000@yellow.csi.cam.ac.uk>

On Tue, Jul 16, 2002 at 01:02:08AM +0100, Matthew Johnson wrote:
> Hi, I have just got lvm setup on my machine - and it works fine. However,
> I had a problem with my root partition (not lvm) and when it came back up
> one of the 2 lvm partitions on that disk said it wasn't a valid physical
> volume. The otherone was fine, and the logical volumes that weren't on the
> first physical volume (it wasn't striped) mounted OK. The one that was
> partially on that first pv didn't, though - it said the device was not a
> valid block device.
> 
> The question is, can I easily get the partition back so it mounts OK, and
> failing that can I recover all (or any) of the data. all my /usr is on
> there, plus some other less critical stuff, so I really could do with it.
> 
> more system details: Debian woody, with a custom 2.4.19 kernel with lvm
> compiled in. The fs's all run reiserfs. THe volume group contains
> /dev/hde6 /dev/hde7 & /dev/hda5. e7 & a5 are OK when I run pvdisplay, and
> /dev/lvm1/var and /dev/lvm1/utils mount fine. /dev/lvm1/music doesn't
> mount - I get errors reading superblock etc, and when I pvdisplay
> /dev/hde6 it says it is not a valid physical volume.

# pvcreate /dev/hde6
# vgcfgrestore -n lvm1 /dev/hde6
# vgscan

should recover the volume group for you.


-- 

patrick

  reply	other threads:[~2002-07-16  2:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-15 19:01 [linux-lvm] recovering a bad physical volume Matthew Johnson
2002-07-16  2:14 ` Patrick Caulfield [this message]
2002-07-16 16:22   ` Matthew Johnson
2002-07-17  2:21     ` Patrick Caulfield
2002-07-18 19:16       ` Matthew Johnson
2002-07-19  1:41         ` Patrick Caulfield
2002-07-19  6:10           ` Matthew Johnson
2002-07-22  3:29             ` 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=20020716071417.GB957@tykepenguin.com \
    --to=caulfield@sistina.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