linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Emanuel Lauria <emanuel.lauria@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Disk Crash.
Date: Wed, 25 Apr 2007 01:30:29 -0500	[thread overview]
Message-ID: <200704250130.29388.emanuel.lauria@gmail.com> (raw)

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

                 reply	other threads:[~2007-04-25  6:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200704250130.29388.emanuel.lauria@gmail.com \
    --to=emanuel.lauria@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).