Skip to contentSkip to conversation

Help.

linux-lvm Ben Konosky 3 participants 5 messages Jul 22, 2001 – Jul 24, 2001

lore
Share & tools
lore
#0 lore raw

I had a VG that had three PVs in it, one of the PVs failed, is there any way to trick the VG into thinking it only has two PVs in it so I can *try* to mount it and see what data I can pull off the remainder. The file system is reiserfs, and it was the third PV in the group that died.

Thanks in advance,
Ben Konosky
[email protected]

#1 lore raw

- Ben Konosky <[email protected]> on 07/21/01 23:36:47 -0500:

Quoted 4 lines

I had a VG that had three PVs in it, one of the PVs failed, is there any way to trick the VG into thinking it only has two PVs in it so I can *try* to mount it and see what data I can pull off the remainder. The file system is reiserfs, and it was the third PV in the group that died.

vgexport and import it back with the valid PV's. You'll loose whatever was on the missing PV. If any of the LV's spanned PV's then you'll loose those LV's.

sl

#2 lore raw

vgexport -a gives no volume groups found. vgexport myvg gives volume group "myvg" doesn't exist.

And yes, I had one LV spanning across all three PVs.

Quoted 17 lines · Steven Lembark

- Ben Konosky <[email protected]> on 07/21/01 23:36:47 -0500:

Quoted 2 lines

I had a VG that had three PVs in it, one of the PVs failed, is there any way to trick the VG into thinking it only has two PVs in it so I can *try* to mount it and see what data I can pull off the remainder. The file system is reiserfs, and it was the third PV in the group that died.

vgexport and import it back with the valid PV's. You'll loose whatever was on the missing PV. If any of the LV's spanned PV's then you'll loose those LV's.

sl
_______________________________________________
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

#3 lore raw
In reply to Ben Konosky
Quoted 4 lines · Ben Konosky

I had a VG that had three PVs in it, one of the PVs failed, is there any way to trick the VG into thinking it only has two PVs in it so I can *try* to mount it and see what data I can pull off the remainder. The file system is reiserfs, and it was the third PV in the group that died.

Ben,

you mention in our other e-mail, that you had an LV spanning all 3 disks containig a reiserfs.
If your PV is lost *and* you don't have an actual backup, you'll loose fs data anyway :-(

If you still want to get the LV *partially* back, you need a replacement disk/partition of the same size the gone PV had, vgcfgrestore(8) the LVM metadata to it and run "vgscan;vgchange -ay".

Quoted 11 lines

Thanks in advance,
Ben Konosky
[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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#4 lore raw

That didn't work :( Now that I look at it, that drive must have been the first one in the VG/LV :( At least I had most, but not all of the data on that LV backed up. Well, now I know better than to use a drive in a LV that used to be in a computer that was under adverse conditions(like my car), without keeping all the data backed up.

Thanks for all the help,
Ben Konosky

Quoted 28 lines · Heinz J. Mauelshagen
Quoted 2 lines · Ben Konosky

I had a VG that had three PVs in it, one of the PVs failed, is there any way to trick the VG into thinking it only has two PVs in it so I can *try* to mount it and see what data I can pull off the remainder. The file system is reiserfs, and it was the third PV in the group that died.

Ben,

you mention in our other e-mail, that you had an LV spanning all 3 disks containig a reiserfs.
If your PV is lost *and* you don't have an actual backup, you'll loose fs data anyway :-(

If you still want to get the LV *partially* back, you need a replacement disk/partition of the same size the gone PV had, vgcfgrestore(8) the LVM metadata to it and run "vgscan;vgchange -ay".

Quoted 11 lines

Thanks in advance,
Ben Konosky
[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