From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <40561772.5070302@howest.be> Date: Mon, 15 Mar 2004 21:52:02 +0100 From: Thomas Berton MIME-Version: 1.0 Subject: Re: [linux-lvm] Hard disk failure, restore problem References: <40520E04.5090505@howest.be> <20040315124721.GB17078@redhat.com> In-Reply-To: <20040315124721.GB17078@redhat.com> Content-Transfer-Encoding: 7bit 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: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: hjm@redhat.com, LVM general discussion and development Hello, I've done > o identify your actual metadata backup (say, bigspace.conf) > > o mkdir /etc/lvmtab.d > > o cp bigspace.conf /etc/lvmtab.d/bigspace > > o echo -ne "bigspace\0" > /etc/lvmtab > > o vgchange -ay after being sure to restore the metadata I have pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/hdg1" of VG "bigspace" [74.47 GB / 768 MB free] pvscan -- inactive PV "/dev/hde1" of VG "bigspace" [149 GB / 0 free] pvscan -- inactive PV "/dev/hdf1" of VG "bigspace" [149 GB / 139.16 GB free] pvscan -- inactive PV "/dev/hdc1" of VG "bigspace" [111.75 GB / 0 free] pvscan -- inactive PV "/dev/hdd1" of VG "bigspace" [74.47 GB / 0 free] pvscan -- inactive PV "/dev/hda1" of VG "bigspace" [74.47 GB / 8.22 GB free] pvscan -- inactive PV "/dev/hdb1" of VG "bigspace" [74.47 GB / 0 free] pvscan -- total: 7 [708 GB] / in use: 7 [708 GB] / in no VG: 0 [0] vgscan -- reading all physical volumes (this may take a while...) vgscan -- only found 17904 of 17876 LEs for LV /dev/bigspace/bigspace1 (0) vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data of volume group "bigspace" from physical volume(s) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group => after the vgscan the echo -ne "bigspace\0" > /etc/lvmtab is gone gone again.... [root@ment root]# lvscan lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run vgscan after doing the vgscan, I get pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/hdg1" is associated to unknown VG "bigspace" (run vgscan) pvscan -- inactive PV "/dev/hde1" is associated to unknown VG "bigspace" (run vgscan) pvscan -- inactive PV "/dev/hdf1" is associated to unknown VG "bigspace" (run vgscan) pvscan -- inactive PV "/dev/hdc1" is associated to unknown VG "bigspace" (run vgscan) pvscan -- inactive PV "/dev/hdd1" is associated to unknown VG "bigspace" (run vgscan) pvscan -- inactive PV "/dev/hda1" is associated to unknown VG "bigspace" (run vgscan) pvscan -- inactive PV "/dev/hdb1" is associated to unknown VG "bigspace" (run vgscan) pvscan -- total: 7 [708 GB] / in use: 7 [708 GB] / in no VG: 0 [0] again. the /dev/bigspace/bigspace1 doesn't exists, so I can't mount. should I recreate bigspace and force an import ? I 've alse rebooted once after the vgchange -ay, but he also didn't find the bigspace. thanx again for your help!! kind regards, Thomas.