* [linux-lvm] Rebuilding physical volume metadata
@ 2004-12-31 4:23 Sasha Z
2004-12-31 15:22 ` Alasdair G Kergon
0 siblings, 1 reply; 6+ messages in thread
From: Sasha Z @ 2004-12-31 4:23 UTC (permalink / raw)
To: linux-lvm
I have a severe problem.
I had a healthly LVM four days ago, but came home to an LVM that no
longer had an PV's, and a computer without an PV's listed.
So I had to recreate the physical volumes, and that went ok. When I
recreated the volume group, I found that it thought all the PV's were
completely empty. Of course this cannot be true. Nothing I did took
any time at all, zeroing 700GB's of disk would take a very very long
time. I didn't delete any partitions, and so I figure the "maps" or
metadata stored on each drive has been deleted somehow.
Is there a way to regenerate these maps using raw sector data? I know
my data is there, just getting LVM2 to allow access to it is the
problem.
- Sasha Z.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Rebuilding physical volume metadata
2004-12-31 4:23 [linux-lvm] Rebuilding physical volume metadata Sasha Z
@ 2004-12-31 15:22 ` Alasdair G Kergon
2005-01-03 2:50 ` Sasha Z
0 siblings, 1 reply; 6+ messages in thread
From: Alasdair G Kergon @ 2004-12-31 15:22 UTC (permalink / raw)
To: LVM general discussion and development
On Thu, Dec 30, 2004 at 11:23:22PM -0500, Sasha Z wrote:
> I had a healthly LVM four days ago, but came home to an LVM that no
> longer had an PV's, and a computer without an PV's listed.
What version of LVM2? ('lvm version')
If it's above 2.00.25 then upgrade to 2.00.32.
Versions 2.00.26 to 2.00.31 are best avoided because of
problems recognising certain partitioning schemes correctly,
which can cause PVs to appear to disappear. [Can often work
around by changing lvm.conf.]
> So I had to recreate the physical volumes, and that went ok.
No - read the 'vgcfgrestore' man page for instructions.
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [linux-lvm] Rebuilding physical volume metadata
2004-12-31 15:22 ` Alasdair G Kergon
@ 2005-01-03 2:50 ` Sasha Z
2005-01-03 2:51 ` Sasha Z
0 siblings, 1 reply; 6+ messages in thread
From: Sasha Z @ 2005-01-03 2:50 UTC (permalink / raw)
To: LVM general discussion and development
I have managed to restore the volume group, but I can't mount it as a
filesystem, I can't format the logical volume, I can't do anything
with lvextend, etc.
Here's a basic operation that fails:
[root@fileserver mapper]# lvextend -L+5G /dev/vg0/lv0
Extending logical volume lv0 to 525.70 GB
device-mapper ioctl cmd 9 failed: Invalid argument
Couldn't load device 'vg0-lv0'.
Problem reactivating lv0
After doing that, lvdisplay says the logical volume is suspended.
What's wrong? /dev/vg0/lv0 is a symlink to /dev/mapper/vg0-lv0
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-01-10 1:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-31 4:23 [linux-lvm] Rebuilding physical volume metadata Sasha Z
2004-12-31 15:22 ` Alasdair G Kergon
2005-01-03 2:50 ` Sasha Z
2005-01-03 2:51 ` Sasha Z
2005-01-07 23:25 ` Sasha Z
2005-01-10 1:16 ` Sasha Z
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox