Disk Crash.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know this is not the first mail of the type, but I have to write to you 
because I haven't found documentation to solve my problem.

I used to have two hard disks, but one of them is in a better place now: hell. 
That disk had the O.S. and a lot of personal files. It was part of a volume 
group with the other disk, which is in good conditions.

First, I am not trying to recover the data on the damaged disk. What I want 
right now is just to see what data is on the other disk. I want to be able to 
mount it and read it.

Let me paste some information that I recovered using this command:
#dd if=/dev/hda2 bsd=512 count=255 skip=1 of=/tmp/hda2-raw-start
and removed all the non-ascii characters:

----------------------------------------------------------------------------------------

root@ubuntu:~# cat /tmp/hda2-raw-start
vg {
id = "qnGQ7f-T155-NWdn-cgUJ-ClU0-ca7g-LHhxEp"
seqno = 3
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192
max_lv = 255
max_pv = 255

physical_volumes {

pv0 {
id = "02i2U4-QCDv-pzqD-wE7i-4cVB-uIwU-9AXgPS"
device = "/dev/hda3"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 7922
}

pv1 {
id = "bfuzKY-PRuZ-ela6-SLSe-UnQX-bHip-RfjxxC"
device = "/dev/hdb2"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 9477
}
}

logical_volumes {

storage {
id = "krZfTS-SgOs-EDaP-tAMW-nkWn-eP7U-dWonEX"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 7921

type = "striped"
stripe_count = 1        # linear

stripes = [
"pv0", 0
]
}
}
}
}
# Generated by LVM2: Sat Nov  6 22:04:12 2004

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "thermenvox"    # Linux thermenvox 2.6.7-hardened-r9 #4 Sat 
Oct 30 21:39:13 CDT 2004 i686
creation_time = 1099800252      # Sat Nov  6 22:04:12 2004

vg {
id = "qnGQ7f-T155-NWdn-cgUJ-ClU0-ca7g-LHhxEp"
seqno = 4
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192
max_lv = 255
max_pv = 255

physical_volumes {

pv0 {
id = "02i2U4-QCDv-pzqD-wE7i-4cVB-uIwU-9AXgPS"
device = "/dev/hda3"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 7922
}

pv1 {
id = "bfuzKY-PRuZ-ela6-SLSe-UnQX-bHip-RfjxxC"
device = "/dev/hdb2"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 9477
}
}

logical_volumes {

storage {
id = "krZfTS-SgOs-EDaP-tAMW-nkWn-eP7U-dWonEX"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 2

segment1 {
start_extent = 0
extent_count = 7922

type = "striped"
stripe_count = 1        # linear

stripes = [
"pv0", 0
]
}
segment2 {
start_extent = 7922
extent_count = 9471

type = "striped"
stripe_count = 1        # linear

stripes = [
"pv1", 0
]
}
}
}
}
# Generated by LVM2: Sat Nov  6 22:05:12 2004

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "thermenvox"    # Linux thermenvox 2.6.7-hardened-r9 #4 Sat 
Oct 30 21:39:13 CDT 2004 i686
creation_time = 1099800312      # Sat Nov  6 22:05:12 2004

vg {
id = "qnGQ7f-T155-NWdn-cgUJ-ClU0-ca7g-LHhxEp"
seqno = 5
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192
max_lv = 255
max_pv = 255

physical_volumes {

pv0 {
id = "02i2U4-QCDv-pzqD-wE7i-4cVB-uIwU-9AXgPS"
device = "/dev/hda3"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 7922
}

pv1 {
id = "bfuzKY-PRuZ-ela6-SLSe-UnQX-bHip-RfjxxC"
device = "/dev/hdb2"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 9477
}
}

logical_volumes {

storage {
id = "krZfTS-SgOs-EDaP-tAMW-nkWn-eP7U-dWonEX"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 2

segment1 {
start_extent = 0
extent_count = 7922

type = "striped"
stripe_count = 1        # linear

stripes = [
"pv0", 0
]
}
segment2 {
start_extent = 7922
extent_count = 9477

type = "striped"
stripe_count = 1        # linear

stripes = [
"pv1", 0
]
}
}
}
}
# Generated by LVM2: Sat Nov  6 22:05:48 2004

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "thermenvox"    # Linux thermenvox 2.6.7-hardened-r9 #4 Sat 
Oct 30 21:39:13 CDT 2004 i686
creation_time = 1099800348      # Sat Nov  6 22:05:48 2004

vg {
id = "qnGQ7f-T155-NWdn-cgUJ-ClU0-ca7g-LHhxEp"
seqno = 4
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192
max_lv = 255
max_pv = 255

physical_volumes {

pv0 {
id = "bfuzKY-PRuZ-ela6-SLSe-UnQX-bHip-RfjxxC"
device = "/dev/hda2"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 9477
}
}

logical_volumes {

storage {
id = "krZfTS-SgOs-EDaP-tAMW-nkWn-eP7U-dWonEX"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 7921

type = "striped"
stripe_count = 1        # linear

stripes = [
"pv0", 0
]
}
}
}
}
# Generated by LVM2: Wed Apr 25 05:46:44 2007

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "ubuntu"        # Linux ubuntu 2.6.12-9-386 #1 Mon Oct 10 
13:14:36 BST 2005 i686
creation_time = 1177480004      # Wed Apr 25 05:46:44 2007

--------------------------------------------------------------------------------------------------

The drive with the id = "02i2U4-QCDv-pzqD-wE7i-4cVB-uIwU-9AXgPS" is the one 
that failed.

I tried to edit this file and remove all the things related to the failed 
drive, changing the PV1 to PV0 and other stuff. Then did a

#vgcfgrestore -f /tmp/hda2-raw-start vg
#vgchange -a y
#lvscan
ACTIVE		/dev/vg/storage

And then I tried to mount it: Mount said I should specify the filesystem type 
and when I did it it said wrong fs type, bad option, bad superblock... bla 
bla ba...

What can I do? Please tell me there is a way to mount that disk and recover 
some information, pleeeeeaseee. Lie if you have to!... no, don't do it.

Thank You

-- 
Emanuel Lauria Izundegui
emanuel.lauria@gmail.com
http://linux.mty.itesm.mx/~elauria

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux