From: "Stuart D. Gathman" <stuart@bmsi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Restoring data after losing a drive
Date: Sat, 12 May 2007 21:29:31 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0705122115480.27083-100000@bmsred.bmsi.com> (raw)
In-Reply-To: <230d1df80705121607i34a7526eo72981413f6dd1ff4@mail.gmail.com>
On Sat, 12 May 2007, Saad Shakhshir wrote:
> The data on the damaged disk is not recoverable at this point. However
> there is data on the other remaining good disks that was part of that one
> large logical volume. At this point I want to get back the remaining data
> that was in that logical volume and on the remaining good physical volumes
> without the data that was on the physical volume I lost. I know that the
> data is still intact on those drives... I just need to know how to get my
> system to recognise that it's still there.
The solution involves restoring the metadata to memory or a replacement hard
drive from /etc/lvm (if it is intact) or a backup. I'll let the experts
talk about details.
However, the LVM should be able to handle losing a PV and still bring LVs
for that PV online. Any attempted IO would result in errors, of course.
But the metadata for a PV should be automatically loadable even with
the PV missing. When the missing PV blows a hole in your large LV,
it would simplify recovering the pieces if the missing data got I/O errors.
If you replace the drive and restore the metadata, the missing data will
have whatever is on the drive. It might help recovery to write a pattern
to the replacement drive to help recognize the missing data.
You will also need to be a filesystem wizard to navigate with a huge hole
like that. If you have one large file with a regular record format, it
might be simplest to scan all blocks for records - then paste any missing
I used to run into such problems a lot, and developed a filesystem where
each block is tagged with the inode of the file it belonged to. The
recovery program can recover each and every readable block into the
proper file in the proper location regardless of how much of the filesystem
is missing or garbled due to horrendous errors. There is no inode table
either - any block can be an inode (so blowing away the first part of the
filesystem doesn't lose all your files). There are drawbacks to
this approach, of course. E.g. block size is reduced by the header
present on every block (and is therefore not a power of 2).
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
next prev parent reply other threads:[~2007-05-13 1:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-12 3:29 [linux-lvm] Restoring data after losing a drive Saad Shakhshir
2007-05-12 19:51 ` Ian Kent
2007-05-12 23:07 ` Saad Shakhshir
2007-05-13 1:29 ` Stuart D. Gathman [this message]
2007-05-13 16:02 ` Saad Shakhshir
2007-05-18 16:13 ` Saad Shakhshir
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=Pine.LNX.4.44.0705122115480.27083-100000@bmsred.bmsi.com \
--to=stuart@bmsi.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).