From: Paul Pianta <pantz@lqt.ca>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: RE: [linux-lvm] waah waah - disaster recovery
Date: Fri, 11 Feb 2005 15:37:39 -0500 [thread overview]
Message-ID: <1108154259.4699.45.camel@aragorn.intranet> (raw)
In-Reply-To: <0B834CEE3453504B82AB821DFB7047C1FF0487@enyc11p32003.corpny.csfb.com>
On Fri, 2005-02-11 at 19:43 +0000, Rosenstrauch, David wrote:
>
> > Does anyone have any ideas on how I might be able to restore/mount
> > the /dev/md2 partition - even if it is just enough to copy the data
> > elsewhere??
> >
> > thanks
> >
> > pantz
>
> Basically just dd the data from the partition on the bad disk to the partition
> on the new disk (e.g., "dd if=/dev/hda2 of=/dev/hdb3"). Theoretically, you've
> now got a copy of the original partition, and theoretically LVM should be able
> to use it just like the old one. Do fsck's on all the relevant partitions
> and/or LV's once you're done with this, as there could be glitches that
> occurred.
Wow - thanks for the quick responses guys! Wouldn't have anything to do
with mooching about on a Friday afternoon, catching up on emails coz the
work you have to do can wait until Monday ;)
I am attempting a bit of a combination of the two suggestions.
Editing /etc/fstab to not mount the dodgy partition got me to boot into
the system ok - but running fsck gives LOTS of bad looking errors and it
just loops on the same bad sector and I have to reboot the machine to
get out of it.
I am now dd'ing the dodgy partition to a new drive that I installed in
the machine.
My question now is a bit off topic but what would be the recommended way
of dd'ing my corrupt /dev/hdc5 partition to the new /dev/hda drive.
- Should I have created a partition on /dev/hda exactly the same size
as /dev/hdc5 and then done a 'dd if=/dev/hdc5 of=/dev/hda1'?
- Will 'dd if=/dev/hdc5 of=/dev/hda' give me something mountable later?
- Should I have dd'ed the partition to a file in a partition /dev/hda1
on the new disk and loop mounted it after?
Sorry for being OT but I am just interested ...
thanks
pantz
next prev parent reply other threads:[~2005-02-11 20:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-11 19:43 [linux-lvm] waah waah - disaster recovery Rosenstrauch, David
2005-02-11 20:31 ` Rickard Olsson
2005-02-11 20:37 ` David Brown
2005-02-11 20:37 ` Paul Pianta [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-11 20:45 Rosenstrauch, David
2005-02-14 15:22 ` Paul Pianta
2005-02-11 19:05 Paul Pianta
2005-02-11 19:40 ` Robin Green
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=1108154259.4699.45.camel@aragorn.intranet \
--to=pantz@lqt.ca \
--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