pvmove problem
Luckily I have some backups of all but one LV (which is just too big to backup) on vol2. But it would be nice to recover that volume.
As far as syslog messages, I did not see anything out of the ordinary before the pvmove. Now of course I get the error message produced by vgscan which I pasted in the first message.
Not quite sure what you mean about "using vol2's content". I cannot get LVM to recognize vol2, so of course it will not activate it. So I cannot mount any of the volumes in vol2.
It is only complaining about /dev/vol2/software volume. If there was someway I could delete this volume without having to have vol2 activated, that might solve the problem--unless other volumes' metadata is corrupted as well. I seem to remember reading about LVM2's ability to do a partial activation (missing 1 or more PVs from a VG). Would it be worthwhile to try and mount vol2 under LVM2 with hdh3 removed?
Thanks,
Skip
Quoted 103 lines
From: "Heinz J . Mauelshagen" <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [linux-lvm] pvmove problem
Date: Mon, 10 Feb 2003 14:53:49 +0100Quoted 1 line · B. Dobalina
Its linux 2.4.19 (with the sgi xfs patch) and lvm 1.0.6. I have two
volumes,
Quoted 1 line
the other volume (vol1) is unaffected. All lvm operations seem to be
working
Quoted 1 line
on vol1. For vol2 (the one that I executed a pvmove on), I cannot get
lvm to
Quoted 1 line
recognize it so I cannot perform any lvm operations.
You've got the actual LVM software. Let's try to approach the problem a bit more...
Have there been any syslog messages spotting some light on this ? Are you still able to use vol2's content ?
Before changing anything, don't forget to keep recent backups!
Regards,
Heinz -- The LVM Guy --Quoted 10 lines
-skip
Which LVM and Linux version is this ?
Does everything else irt LVM with the exception of pvmove ru fine (i.e. creating/removing LVs etc.) ?Quoted 8 lines
Regards,
Heinz -- The LVM Guy --Quoted 3 lines · B. Dobalina
I am trying to remove an old harddrive from one of my volumes using:
pvmove -v/dev/hdh3
It was chugging along just find until about half way through when itfroze.
Quoted 2 lines
Quoted 2 lines
Linux was not "frozen", but I do not think it would allow any io to the block devices (logins, ls's, etc would stall). I waited about an hour,
at
Quoted 1 line
Quoted 1 line
which point it was still stuck on the same extent, and had no other
option
Quoted 1 line
Quoted 1 line
but to hard reboot. When the system was booted, the volume to which
hdh3
Quoted 7 lines
Quoted 7 lines
belonged, would no longer mount:
$ vgscan vgscan -- reading all physical volumes (this may take a while...) vgscan -- found active volume group "vol1" vgscan -- only found 2523 of 768 LEs for LV /dev/vol2/software (1) vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can'tget
Quoted 3 lines
Quoted 3 lines
data of volume group "vol2" from physical volume(s) vgscan -- "
/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of yourvolume
Quoted 4 lines
Quoted 4 lines
groups
Looks like some lvm metadata has been corrupted. So I ran vgcfgrestore
on
Quoted 1 line
Quoted 1 line
/dev/hdh3: same result. Then I ran it on all the PVs in vol2: sameresult.
Quoted 1 line
Quoted 1 line
Does anybody have a solution to get this volume mounted? There is a
bunch
Quoted 1 line
Quoted 1 line
of data on vol2, but not all that much in
/dev/hdh3, so a partialrestore
Quoted 11 lines
Quoted 11 lines
would be ok.
Thanks,
Skip_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmailQuoted 6 lines
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/*** 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
Quoted 8 lines
FAX 924446=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
Quoted 10 lines · B. Dobalina
Luckily I have some backups of all but one LV (which is just too big to backup) on vol2. But it would be nice to recover that volume.
As far as syslog messages, I did not see anything out of the ordinary before the pvmove. Now of course I get the error message produced by vgscan which I pasted in the first message.
Not quite sure what you mean about "using vol2's content". I cannot get LVM to recognize vol2, so of course it will not activate it. So I cannot mount any of the volumes in vol2.
Got it.
Quoted 7 lines
It is only complaining about
/dev/vol2/softwarevolume. If there was someway I could delete this volume without having to have vol2 activated, that might solve the problem--unless other volumes' metadata is corrupted as well. I seem to remember reading about LVM2's ability to do a partial activation (missing 1 or more PVs from a VG). Would it be worthwhile to try and mount vol2 under LVM2 with hdh3 removed?
That's probably the way to go.
LVM2 is LVM1 metadata compatible.
Run "vgscan ; vgchange -P -ay" once you've installed it.
Please remember that LVM2 doesn't have pvmove so far (we are working on it).
Quoted 128 lines
Thanks,
SkipQuoted 103 lines
From: "Heinz J . Mauelshagen" <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [linux-lvm] pvmove problem
Date: Mon, 10 Feb 2003 14:53:49 +0100Quoted 1 line · B. Dobalina
Its linux 2.4.19 (with the sgi xfs patch) and lvm 1.0.6. I have two
volumes,
Quoted 1 line
the other volume (vol1) is unaffected. All lvm operations seem to be
working
Quoted 1 line
on vol1. For vol2 (the one that I executed a pvmove on), I cannot get
lvm to
Quoted 1 line
recognize it so I cannot perform any lvm operations.
You've got the actual LVM software. Let's try to approach the problem a bit more...
Have there been any syslog messages spotting some light on this ? Are you still able to use vol2's content ?
Before changing anything, don't forget to keep recent backups!
Regards,
Heinz -- The LVM Guy --Quoted 10 lines
-skip
Which LVM and Linux version is this ?
Does everything else irt LVM with the exception of pvmove ru fine (i.e. creating/removing LVs etc.) ?Quoted 8 lines
Regards,
Heinz -- The LVM Guy --Quoted 3 lines · B. Dobalina
I am trying to remove an old harddrive from one of my volumes using:
pvmove -v/dev/hdh3
It was chugging along just find until about half way through when itfroze.
Quoted 2 lines
Quoted 2 lines
Linux was not "frozen", but I do not think it would allow any io to the block devices (logins, ls's, etc would stall). I waited about an hour,
at
Quoted 1 line
Quoted 1 line
which point it was still stuck on the same extent, and had no other
option
Quoted 1 line
Quoted 1 line
but to hard reboot. When the system was booted, the volume to which
hdh3
Quoted 7 lines
Quoted 7 lines
belonged, would no longer mount:
$ vgscan vgscan -- reading all physical volumes (this may take a while...) vgscan -- found active volume group "vol1" vgscan -- only found 2523 of 768 LEs for LV /dev/vol2/software (1) vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can'tget
Quoted 3 lines
Quoted 3 lines
data of volume group "vol2" from physical volume(s) vgscan -- "
/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of yourvolume
Quoted 4 lines
Quoted 4 lines
groups
Looks like some lvm metadata has been corrupted. So I ran vgcfgrestore
on
Quoted 1 line
Quoted 1 line
/dev/hdh3: same result. Then I ran it on all the PVs in vol2: sameresult.
Quoted 1 line
Quoted 1 line
Does anybody have a solution to get this volume mounted? There is a
bunch
Quoted 1 line
Quoted 1 line
of data on vol2, but not all that much in
/dev/hdh3, so a partialrestore
Quoted 11 lines
Quoted 11 lines
would be ok.
Thanks,
Skip_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmailQuoted 6 lines
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/*** 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 141200Quoted 8 lines
FAX 924446=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-