All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben <kf4wbx@hamsnet.net>
To: linux-lvm@sistina.com
Cc: ben.klang@transchannel.com
Subject: [linux-lvm] Help!! VG Corrupted?
Date: Mon Nov 26 21:04:02 2001	[thread overview]
Message-ID: <1006830259.2791.23.camel@outback.key> (raw)

Hello,

I am running Mandrake 8.1 which installs Linux LVM 0.9.  I've read posts
that mention that 0.9 is "bad for your health."  While I'm not totally
sure why or how, it seems to be the case for me as well.

I installed the OS and ran find with one IDE HD partition dedicated
(/dev/hda9, one VG on one PV) to LVM and two LV's (/usr and /var).
Yesterday, I added another partition (/dev/hda7) and added its PEs to
the VG.  I thhen added the newly added PE's to the /usr LV.  Everything
was great.  Then I rebooted.  Upon reboot, I got:
[root@cray]# vgscan -v
vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- scanning for all active volume group(s) first
vgscan -- found inactive volume group "vg0"
vgscan -- reading data of volume group "vg0" from physical volume(s)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
data of volume group "vg0" from physical volume(s)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating
"/etc/lvmtab" and "/etc/lvmtab.d"
[root@cray]#

I then tried the vgcfgrestore, which ran sucessfully.  Now I get vgscan
reporting no volumes.  Found a reference on how to fix this (using dd
and reading uuids from pv's, then writing them back to the disk).  That
procedure brings me back to the starting point.

It seems the data is there because pvscan reports:

[root@cray]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/ide0/host0/bus0/target0/lun0/part7" is
associated to an unknown VG (run vgscan)
pvscan -- inactive PV "/dev/ide0/host0/bus0/target0/lun0/part9" is
associated to an unknown VG (run vgscan)
pvscan -- total 2 [12.02 GB] / in use: 2 [12.02 GB] / in no VG: 0 [0]
[root@cray]#

One more note of interest:  My partitions on disk are out of order.
hda7 occupies cylinders 2848-3736 and hda9 occupies cylinders 2168-2847.

[root@cray]# fdisk /dev/hda
Command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 3763 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot     Start       End      Blocks    Id  System
/dev/hda1  *           1       934     7502323+    b  Win95 FAT32
/dev/hda2            935      3736    22507065     5  Extended
/dev/hda5  *         935      1874     7550518+    7  HPFS/NTFS
/dev/hda6           1875      2135     2096451    83  Linux
/dev/hda7           2848      3736     7140861    8e  Linux LVM
/dev/hda8           2136      2167      256977    82  Linux swap
/dev/hda9           2168      2847     5462037    8e  Linux LVM

Partition table entries are not in disk order




So, can anyone help me?  Would recreating the VG and adding the PV's to
it restore access to my data?  Or would I just blow it all away in the
attempt?



Thanks for any help!
-Ben K
kf4wbx@hamsnet.net

             reply	other threads:[~2001-11-26 21:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-26 21:04 Ben [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-19 13:12 [linux-lvm] Help! VG corrupted? Ben
2001-11-20  4:41 ` Heinz J . Mauelshagen
2001-11-26 21:10   ` Ben
2001-11-27  0:15     ` Andreas Dilger

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=1006830259.2791.23.camel@outback.key \
    --to=kf4wbx@hamsnet.net \
    --cc=ben.klang@transchannel.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 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.