From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Caulfield Subject: Re: [linux-lvm] recovering a bad physical volume Message-ID: <20020716071417.GB957@tykepenguin.com> References: Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Tue Jul 16 02:14:02 2002 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@sistina.com On Tue, Jul 16, 2002 at 01:02:08AM +0100, Matthew Johnson wrote: > Hi, I have just got lvm setup on my machine - and it works fine. However, > I had a problem with my root partition (not lvm) and when it came back up > one of the 2 lvm partitions on that disk said it wasn't a valid physical > volume. The otherone was fine, and the logical volumes that weren't on the > first physical volume (it wasn't striped) mounted OK. The one that was > partially on that first pv didn't, though - it said the device was not a > valid block device. > > The question is, can I easily get the partition back so it mounts OK, and > failing that can I recover all (or any) of the data. all my /usr is on > there, plus some other less critical stuff, so I really could do with it. > > more system details: Debian woody, with a custom 2.4.19 kernel with lvm > compiled in. The fs's all run reiserfs. THe volume group contains > /dev/hde6 /dev/hde7 & /dev/hda5. e7 & a5 are OK when I run pvdisplay, and > /dev/lvm1/var and /dev/lvm1/utils mount fine. /dev/lvm1/music doesn't > mount - I get errors reading superblock etc, and when I pvdisplay > /dev/hde6 it says it is not a valid physical volume. # pvcreate /dev/hde6 # vgcfgrestore -n lvm1 /dev/hde6 # vgscan should recover the volume group for you. -- patrick