From: Andreas Dilger <adilger@turbolabs.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Disk Died - Ideas?
Date: Thu, 27 Sep 2001 09:42:43 -0600 [thread overview]
Message-ID: <20010927094243.B19527@turbolinux.com> (raw)
In-Reply-To: <3BB30FD9.853E39DA@lmco.com>
On Sep 27, 2001 07:39 -0400, Jeff Layton wrote:
> Andreas Dilger wrote:
> > dd if=/dev/pv1 of=<backup> bs=1024 skip=<offset #1 in kB> count=<count #1>
> >
> > Do the same thing for the next set of consecutive PEs, with:
> >
> > dd if=/dev/pv1 of=<backup> bs=1024 skip=<offset #2 in kB> \
> > seek=<count #1> count=<count #2>
> >
> > dd if=/dev/pv1 of=<backup> bs=1024 skip=<offset #3 in kB> \
> > seek=<count #1 + count #2> count=<count #3>
>
> Sorry the late follow-up. I follow you so far (I think). The next step
> after copy these "blocks" using dd to some backup device is to
> rebuild the filesystem on the disks and then copy back the data
> from the backup device using dd (just reverse the procedure).
> Is this correct? (Sorry the novice question but I want to be sure I
> have the correct steps before trying this).
If you do the above "dd" steps so that they save the PEs in LE order
(as given by pvdata -avP) then you simply need to "dd" the entire
backup file out to the LV once it is built (assuming you have enough
space to save the entire LV somewhere). If you are fortunate, and
there is only a single contiguous string of PEs/LEs on each disk it
will not be too much work. If needed, you could "dd" the data from
each disk to a separate tape/remote machine disk, but then you need
to make sure you get the "seek" offsets correct when you are restoring
it (it should just be the sum of all the block counts output from
previous "dd" runs).
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
prev parent reply other threads:[~2001-09-27 15:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-25 15:02 [linux-lvm] Disk Died - Ideas? Jeff Layton
2001-09-25 16:56 ` lembark
2001-09-25 17:09 ` Andreas Dilger
2001-09-27 11:39 ` Jeff Layton
2001-09-27 14:40 ` Steven Lembark
2001-09-27 15:55 ` Andreas Dilger
2001-09-27 15:32 ` Kevin Corry
2001-09-27 16:09 ` Steven Lembark
2001-09-27 15:42 ` Andreas Dilger [this message]
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=20010927094243.B19527@turbolinux.com \
--to=adilger@turbolabs.com \
--cc=linux-lvm@sistina.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).