All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Savard <dsavard@cids.ca>
To: Andreas Dilger <adilger@turbolabs.com>
Cc: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs...
Date: Wed Feb 27 11:28:02 2002	[thread overview]
Message-ID: <1014830883.13642.12.camel@dirac.cids.ca> (raw)
In-Reply-To: <20020226155618.C12832@lynx.adilger.int>

le mar 26-02-2002 à 17:56, Andreas Dilger a écrit :
> On Feb 26, 2002  17:28 -0500, Daniel Savard wrote:
> > I did mkfs.ext2 on /dev/sda8 !!! However, this was still pointing to my
> > LVM partition even if fdisk was not showing this.
> > 
> > The big question: Is it still possible to recover some data from the LVM
> > partition which was the only partition in my VG?
> 
> Well, mke2fs writes a LOT of data into the partition, being especially
> careful to overwrite everything at the start of the disk.  It might be
> possible to recover this with "vgcfgrestore", but even then you have the
> problem of overwriting the rest of the data on the disk.  If the primary
> ext2 superblock is overwritten on an LV inside this disk, you can use
> "e2fsck -b 32768" or so to try and recover.
> 
> Cheers, Andreas
> --
> Andreas Dilger
> http://sourceforge.net/projects/ext2resize/
> http://www-mddsp.enel.ucalgary.ca/People/adilger/
> 

Since my LVM partition has been moved by the operations on the
partitions with fdisk. I had to use the vgcfgrestore command as follow
and getting the following error:

[root@einstein sbin]# vgcfgrestore -n datavg -o /dev/sda9 /dev/sda7
vgcfgrestore -- INFO: using backup file "/etc/lvmconf/datavg.conf"
vgcfgrestore -- ERROR "pv_read(): PV identifier invalid" reading physical volume "/dev/sda7"

Is there still something I can try or should I forget it?

-- 

=======================================
Daniel Savard

Internet: dsavard@cids.ca
=======================================

  reply	other threads:[~2002-02-27 11:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-26 16:28 [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs Daniel Savard
2002-02-26 16:56 ` Andreas Dilger
2002-02-27 11:28   ` Daniel Savard [this message]
2002-02-27 11:41     ` Heinz J . Mauelshagen
2002-02-27  3:17 ` Heinz J . Mauelshagen
  -- strict thread matches above, loose matches on Subject: below --
2002-02-27 12:31 Daniel Savard

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=1014830883.13642.12.camel@dirac.cids.ca \
    --to=dsavard@cids.ca \
    --cc=adilger@turbolabs.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.