linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Broken hard disk
Date: Thu, 12 Oct 2006 23:53:09 +0100	[thread overview]
Message-ID: <452EC755.1070603@redhat.com> (raw)
In-Reply-To: <200610122350.46609.martin.wilmes@java-cup.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Wilmes wrote:
> Now I installed the old, hopefully still working disk in a different computer 
> and booted with Knoppix 5.0.1 to get some of my data back but vgscan -v comes 
> back with nothing at all.

It's a bit strange that it outputs nothing at all. I'd expect to see
something like:

$ sudo vgscan -v
    Wiping cache of LVM-capable devices
    Wiping internal VG cache
  Reading all physical volumes.  This may take a while...
    Finding all volume groups
    Finding volume group "scratch0"
  Couldn't find device with uuid 'ZpQI30-qpx3-Cm54-YcSR-5Ho4-rlUx-uCxGBi'.
  Couldn't find all physical volumes for volume group scratch0.
  Couldn't find device with uuid 'ZpQI30-qpx3-Cm54-YcSR-5Ho4-rlUx-uCxGBi'.
  Couldn't find all physical volumes for volume group scratch0.
  Volume group "scratch0" not found

If there's a PV missing from the volume group.

You can add move 'v's to increase the verbosity of vgscan to see what
it's scanning - do you have any device filters configured in /etc/lvm.conf?

It'd also be good to see what pvscan shows, for e.g.:

$ sudo pvscan
  Couldn't find device with uuid 'ZpQI30-qpx3-Cm54-YcSR-5Ho4-rlUx-uCxGBi'.
  PV /dev/hda2        VG d800_vg0   lvm2 [34.18 GB / 760.00 MB free]
  PV unknown device   VG scratch0   lvm2 [60.00 MB / 0    free]
  PV /dev/loop1       VG scratch0   lvm2 [60.00 MB / 52.00 MB free]
  Total: 3 [34.30 GB] / in use: 3 [34.30 GB] / in no VG: 0 [0   ]

Once you find the volume group, activate it without the missing PV using
the --patial option, e.g:

vgchange -ay --partial <vgname>


Cheers,

Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFLsdU6YSQoMYUY94RAuddAJ4rVU9uHR9njfB/WuYqRg/6bVJkNACgsfpi
vgFdYK7lqpgZ6mJ3bo5VccQ=
=D/8l
-----END PGP SIGNATURE-----

  reply	other threads:[~2006-10-12 22:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 21:50 [linux-lvm] Broken hard disk Martin Wilmes
2006-10-12 22:53 ` Bryn M. Reeves [this message]
2006-10-13  3:53   ` Martin Wilmes
2006-10-13 16:33     ` Bryn M. Reeves
2006-10-13 18:46       ` Martin Wilmes

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=452EC755.1070603@redhat.com \
    --to=breeves@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 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).