[linux-lvm] LVM1 Bad harddisk. How do I het data off the Volume?

Heine Laursen maillist at gozar.dynu.com
Thu Feb 24 20:16:20 UTC 2005


Hi.

One of my harddisks in my 2 harddisk LVM 1 setup, The bad harddisk is a 
120 GB Maxtor harddisk, who now identifies itself to the system as:
hde: Oaztor"6[120R0" " " " " " " " " " " " ", ATA DISK drive
The bios reports that the size of the harddisk is 80GB!

And of curse, I can't access any LVM volumes!

debian:~# pvscan -v
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- walking through all physical volumes found
pvscan -- inactive PV "/dev/hdf1"  is associated to unknown VG "vg" (run 
vgscan)
pvscan -- total: 1 [76.34 GB] / in use: 1 [76.34 GB] / in no VG: 0 [0]

debian:~# vgscan -v
vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- scanning for all active volume group(s) first
vgscan -- reading data of volume group "vg" from physical volume(s)
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of 
volume group "vg" 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

As I understand, I have to run vgcfgrestore to get access to the volume.
But what about the faulty hde, is it also possebill to get data off this 
disk?
debian:~# fdisk -l /dev/hde

Disk /dev/hde: 16 heads, 63 sectors, 16383 cylinders
Units = cylinders of 1008 * 512 bytes

    Device Boot    Start       End    Blocks   Id  System
/dev/hde1         33289    271505 120060832+  8e  Linux LVM
/dev/hde2         33289     66578  16777472    0  Empty
Partition 2 does not end on cylinder boundary:
      phys=(2, 2, 0) should be (2, 15, 63)
/dev/hde3         33289     66578  16777472    0  Empty
Partition 3 does not end on cylinder boundary:
      phys=(2, 2, 0) should be (2, 15, 63)
/dev/hde4         33289     66578  16777472    0  Empty
Partition 4 does not end on cylinder boundary:
      phys=(2, 2, 0) should be (2, 15, 63)

How can I rescue as mutch data as possebill?
I do not have access to a spare harddisk to do a dd_rescue on.

I'm useinf debian woody, and LVM 1.
Please advice. I'm afraid i'll do more damage, than rescue!
Thanks.
-- 
Sincerley
Heine Laursen




More information about the linux-lvm mailing list