From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx2.redhat.com (mx2.redhat.com [10.255.15.25]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l5T6OenJ007987 for ; Fri, 29 Jun 2007 02:24:40 -0400 Received: from carpentier.vpsland.com (carpentier.vpsland.com [207.210.113.97]) by mx2.redhat.com (8.13.1/8.13.1) with ESMTP id l5T6OcAs018084 for ; Fri, 29 Jun 2007 02:24:38 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by carpentier.vpsland.com (Postfix) with ESMTP id 79CF21823E for ; Fri, 29 Jun 2007 08:24:36 +0200 (CEST) Received: from carpentier.vpsland.com ([127.0.0.1]) by localhost (carpentier.vpsland.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uhg29VY9Ydep for ; Fri, 29 Jun 2007 08:23:06 +0200 (CEST) Received: from soetens.vdberg.org (h8441201224.dsl.speedlinq.nl [84.41.201.224]) by carpentier.vpsland.com (Postfix) with ESMTP id 9B9711823B for ; Fri, 29 Jun 2007 08:23:05 +0200 (CEST) Received: from [192.168.0.34] (h8441201224.dsl.speedlinq.nl [84.41.201.224]) by soetens.vdberg.org (Postfix) with ESMTP id 8124214C2C1 for ; Fri, 29 Jun 2007 08:23:04 +0200 (CEST) Message-ID: <4684A547.8080302@vdberg.org> Date: Fri, 29 Jun 2007 08:23:03 +0200 From: Richard van den Berg MIME-Version: 1.0 Subject: Re: [linux-lvm] Serious problem and I don't know where to turn. References: <001201c7b9a3$4f0da2d0$ed28e870$@net> <46842D81.8090501@vdberg.org> <001601c7b9f6$8ff21990$afd64cb0$@net> In-Reply-To: <001601c7b9f6$8ff21990$afd64cb0$@net> Content-Type: multipart/alternative; boundary="------------000209070906030809080604" Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development This is a multi-part message in MIME format. --------------000209070906030809080604 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit WarlockD wrote: > > [root@server ~]# lvscan -a > > ACTIVE '/dev/VolGroup00/LogVol00' [147.00 GB] inherit > > ACTIVE '/dev/VolGroup00/LogVol01' [1.94 GB] inherit > > [root@server ~]# vgscan > > Reading all physical volumes. This may take a while... > > Found volume group "VolGroup00" using metadata type lvm2 > > Found volume group "ANIME" using metadata type lvm2 So the vg "ANIME" is found, but is not activated? That kind of makes sense because it is missing the pv on the deleted /dev/sdb2 partition. According to the vgreduce man pages you can: vgreduce --removemissing ANIME to remove all missing physical volumes from the volume group and make the volume group consistent again. It's a good idea to run this option with --test first to find out what it would remove before running it for real. There is also "--partial" option you can use to activate vgs and lvs even if they are missing data. Read the man pages and be very careful before you proceed. > Basicly, I have a volume called “ANIME-logical” I am trying to > restore, but I don’t have the metadata. Is there a way I can get to it? > Without the metadata that's going to be tough. If the filesystem is all continuous on your RAID5 partition, technically you should be able to mount it if you can create a device pointing at the right start, and with the right size. Good luck figuring that out. Another approach could be to recreate the /dev/sdb2 partition in exactly the same way you did before. The metadata might still be there, and the vg might come up. Sincerely, Richard van den Berg --------------000209070906030809080604 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit WarlockD wrote:

[root@server ~]# lvscan -a

  ACTIVE            '/dev/VolGroup00/LogVol00' [147.00 GB] inherit

  ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GB] inherit

[root@server ~]# vgscan

  Reading all physical volumes.  This may take a while...

  Found volume group "VolGroup00" using metadata type lvm2

  Found volume group "ANIME" using metadata type lvm2

So the vg "ANIME" is found, but is not activated? That kind of makes sense because it is missing the pv on the deleted /dev/sdb2 partition. According to the vgreduce man pages you can:

vgreduce --removemissing ANIME

to remove all  missing physical volumes from the volume group and make the volume group consistent again. It's a good idea to run this option with --test  first to find out what it would remove before running it for real. There is also "--partial" option you can use to activate vgs and lvs even if they are missing data. Read the man pages and be very careful before you proceed.

Basicly, I have a volume called “ANIME-logical” I am trying to restore, but I don’t have the metadata.  Is there a way I can get to it?


Without the metadata that's going to be tough. If the filesystem is all continuous on your RAID5 partition, technically you should be able to mount it if you can create a device pointing at the right start, and with the right size. Good luck figuring that out.

Another approach could be to recreate the /dev/sdb2 partition in exactly the same way you did before. The metadata might still be there, and the vg might come up.

Sincerely,

Richard van den Berg
--------------000209070906030809080604--