lvm 1.0.3, kernel 2.4.17 and the libs...
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.
Signature · 5 lines
======================================= Daniel Savard Internet: [email protected] =======================================
Quoted 5 lines · Daniel Savard
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/
Quoted 14 lines · Andreas Dilger
Quoted 5 lines · Daniel Savard
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.
Quoted 6 lines
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?
Signature · 5 lines
======================================= Daniel Savard Internet: [email protected] =======================================
Quoted 26 lines · Daniel Savard
Quoted 14 lines · Andreas Dilger
Quoted 5 lines · Daniel Savard
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.
Quoted 6 lines
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:
Quoted 5 lines
[root@einstein sbin]# vgcfgrestore -n datavg -o
/dev/sda9/dev/sda7vgcfgrestore -- 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.
Quoted 16 lines
Signature · 15 lines
-- ======================================= Daniel Savard Internet: [email protected] ======================================= _______________________________________________ linux-lvm mailing list [email protected] http://lists.sistina.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Signature · 15 lines
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
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Quoted 5 lines · Daniel Savard
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 bypv_move()and introduced around mid February according to the source files).
Yes.
Did you do a clean build?
That should avoid the missing definition.
Quoted 44 lines
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/sda8and 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.
Signature · 13 lines
======================================= Daniel Savard Internet: [email protected] ======================================= _______________________________________________ linux-lvm mailing list [email protected] http://lists.sistina.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Signature · 15 lines
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
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-