linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "David Fuchs" <php4flicks@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] recovering data from broken volume group
Date: Tue, 8 May 2007 14:17:36 +0200	[thread overview]
Message-ID: <c2df0f750705080517o74f63c7cjaa4c7b3deb97afec@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3345 bytes --]

hi list

I am running a debian system with 2 raid arrays (+swap). on md0, I have the
/ filesystem (about 500 MB). md1 (about 200GB) contains a LVM2 volume group
with 5 volumes, where /home, /var, /usr, /tmp, and /home/vpopmail reside.
all filesystems are of type ext3.

this setup has been running just fine for 2 years now. until I upgraded from
debian 3.1 to 4.0. the update went smooth, but when I rebooted I got:

[/sbin/fsck.ext3 (1) -- /var ] fsck.ext3 -a -C0 /dev/mapper/volg1-b
fsck.ext3: no such file or directory while trying to open
/dev/mapper/volg1-b
/dev/mapper/volg1-b:
The superblock could not be read or does not describe a correct ext2
filesystem. if the device is valid and it really contains an ext2 filsystem
(and not swap or ufs or something else), then the superblock is corrupt, and
you might try running e2fsck with an alternate superblock:
    e2fsck -b 8192 <device>

the same for all other lvs.

the first problem was that md1 did not get started, so I did this manually
and continued the boot process. I got

[/sbin/fsck.ext3 (1) -- /var] fsck.ext3 -a -C0 /dev/mapper/volg1-b
/var: recovering journal
/var contains a file system with errors, check forced.
/var:
Inode 184326 has illegal block(s)
/var: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY (i.e. without the -a or -o
options)

( again, for all lvs)

fsck died with exit status 4.

here I got dropped into a maintenance shell again, but forced the system to
continue to boot (probably not the wisest choice, in retrospect).

EXT3-fs warning: mounting fs with errors. running e2fsck is recommended
EXT3 FS on dm-4, internal journal
EXT3-FS: mounted filesystem with ordered data mode.

...  (same for dm-3, dm-2, dm-1, dm-0)

EXT3-fs error (device dm-1) in ext3_reserve_inode_write: Journal has aborted
EXT3-fs error (device dm-1) in ext3_orphan)write: Journal has aborted
EXT3-fs error (device dm-1) in ext3_orphan_del: Journal has aborted
EXT3-fs error (device dm-1) in ext3_truncate_write: Journal has aborted
ext3_abort called.
EXT3-fs error (device dm-1): ext3_journal)_start_sb: Detected aborte
djournal
Remounting filesystem read-only

and finally I get tons of these:

dm-0: rw-9, want=6447188432, limit=10485760
attempt to access beyond end of device


I can boot to a root shell specifying init=/bin/sh w/o any file system
related errors, and from here I can also start the volume group without
getting any errors.

when I mount one of the lvs read only and look at the data, it seems as
there is an 'offset' to the whole volume group: looking at files I see
contents that should be in other files, and directory listings suddenly show
subdirectories that really are in other directories. or, I get 'attempt to
access beyond end of device' errors.

because all 5 filesystems started failing simultaneously,  this must be an
error in either the underlying LVM vg or raid volume. since md0 works just
fine and lvm seems to find it's metadata on md1, I don't think it's the
raid. so, it must be lvm...

I do think (and hopefully, this is not just wishful thinking) that most of
the data should still be *physically* intact on the disk. now, before I rip
out the disks and try to rescue the data from another system with e2salvage
or something like that, is there a possible way how I could fix the broken
LVM volume group?

many thanks in advance,
- Dave.

[-- Attachment #2: Type: text/html, Size: 5890 bytes --]

                 reply	other threads:[~2007-05-08 12:17 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=c2df0f750705080517o74f63c7cjaa4c7b3deb97afec@mail.gmail.com \
    --to=php4flicks@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).