* [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs...
@ 2002-02-26 16:28 Daniel Savard
2002-02-26 16:56 ` Andreas Dilger
2002-02-27 3:17 ` Heinz J . Mauelshagen
0 siblings, 2 replies; 6+ messages in thread
From: Daniel Savard @ 2002-02-26 16:28 UTC (permalink / raw)
To: linux-lvm
I managed to get the vgcfgrestore execute using the executable in the
lvm-build tree. I still don't know why the installed executable is
missing a definition for the opt_ignore (this is a variable that seems
to be used by pv_move() and introduced around mid February according to
the source files).
The operation cannot be completed. I will explain my big mistake and I
would like to know if something can be try to recover from this or if I
must check this as an unrecoverable error.
I was making some changes in order to move my partitions to LV in my VG.
The idea was to recover as much space as possible from my drive, making
all remaining partitions continguous and creating a new partition marked
for LVM and add the new partition to the VG in order to migrate as much
stuff as possible into the VG.
So, I was to the point I needed to create a partition contiguous to the
other one, move stuff on it, delete the old one and recover contiguous
space for the future LVM partition to be added to the VG. I add just
remove an obsolete partition, say /dev/sda6, my existing LVM partition
was /dev/sda8, so the partition numbers were decreased by one for all
partitions above 6 as usual, I then created a new partition which became
/dev/sda8 and the LVM partition was the /dev/sda7. Everything would be
just fine if I didn't forget to reboot the machine before proceeding
with the following:
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?
If yes, HOW.
--
=======================================
Daniel Savard
Internet: dsavard@cids.ca
=======================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs...
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
2002-02-27 3:17 ` Heinz J . Mauelshagen
1 sibling, 1 reply; 6+ messages in thread
From: Andreas Dilger @ 2002-02-26 16:56 UTC (permalink / raw)
To: Daniel Savard; +Cc: linux-lvm
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs...
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 3:17 ` Heinz J . Mauelshagen
1 sibling, 0 replies; 6+ messages in thread
From: Heinz J . Mauelshagen @ 2002-02-27 3:17 UTC (permalink / raw)
To: linux-lvm
On Tue, Feb 26, 2002 at 05:28:38PM -0500, Daniel Savard wrote:
> I managed to get the vgcfgrestore execute using the executable in the
> lvm-build tree. I still don't know why the installed executable is
> missing a definition for the opt_ignore (this is a variable that seems
> to be used by pv_move() and introduced around mid February according to
> the source files).
Yes.
Did you do a clean build?
That should avoid the missing definition.
>
> The operation cannot be completed. I will explain my big mistake and I
> would like to know if something can be try to recover from this or if I
> must check this as an unrecoverable error.
>
> I was making some changes in order to move my partitions to LV in my VG.
> The idea was to recover as much space as possible from my drive, making
> all remaining partitions continguous and creating a new partition marked
> for LVM and add the new partition to the VG in order to migrate as much
> stuff as possible into the VG.
>
> So, I was to the point I needed to create a partition contiguous to the
> other one, move stuff on it, delete the old one and recover contiguous
> space for the future LVM partition to be added to the VG. I add just
> remove an obsolete partition, say /dev/sda6, my existing LVM partition
> was /dev/sda8, so the partition numbers were decreased by one for all
> partitions above 6 as usual, I then created a new partition which became
> /dev/sda8 and the LVM partition was the /dev/sda7. Everything would be
> just fine if I didn't forget to reboot the machine before proceeding
> with the following:
>
> 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?
>
> If yes, HOW.
>
> --
>
> =======================================
> Daniel Savard
>
> Internet: dsavard@cids.ca
> =======================================
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs...
2002-02-26 16:56 ` Andreas Dilger
@ 2002-02-27 11:28 ` Daniel Savard
2002-02-27 11:41 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Savard @ 2002-02-27 11:28 UTC (permalink / raw)
To: Andreas Dilger; +Cc: linux-lvm
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
=======================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs...
2002-02-27 11:28 ` Daniel Savard
@ 2002-02-27 11:41 ` Heinz J . Mauelshagen
0 siblings, 0 replies; 6+ messages in thread
From: Heinz J . Mauelshagen @ 2002-02-27 11:41 UTC (permalink / raw)
To: linux-lvm
On Wed, Feb 27, 2002 at 12:28:03PM -0500, Daniel Savard wrote:
> 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?
"pvcreate -ff /dev/sda7" before you try vgcfgrestore again.
>
> --
>
> =======================================
> Daniel Savard
>
> Internet: dsavard@cids.ca
> =======================================
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 6+ messages in thread
* [linux-lvm] Re: lvm 1.0.3, kernel 2.4.17 and the libs...
@ 2002-02-27 12:31 Daniel Savard
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Savard @ 2002-02-27 12:31 UTC (permalink / raw)
To: linux-lvm
I used the following as suggested by Heinz:
pvcreate -ff /dev/sda7
It worked, I was able to recover most of my LVs, but three. However, of
these two were not important at all and I have a backup for the other
one.
BTW, I find out why I ran into an error about a missing definition. As
Heinz suggested I was actually executing a older copy of the utilities
which were copied somewhere else in case of emergency and were before
the newest ones in the path.
Thanks to all for your help,
--
=======================================
Daniel Savard
Internet: dsavard@cids.ca
=======================================
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-02-27 12:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).