Linux LVM users
 help / color / mirror / Atom feed
From: "B. J. Zolp" <bjzolp@wisc.edu>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Drive failure
Date: Thu May 15 09:17:02 2003	[thread overview]
Message-ID: <200305150917.21504.bjzolp@wisc.edu> (raw)
In-Reply-To: <20030515081450.ADEF6AE4F5@basilica.la.naos.co.nz>

On Thursday 15 May 2003 03:14, Ewen McNeill wrote:
> In message <20030515055917.GB19045@www.13thfloor.at>, Herbert Poetzl writes:
> >On Wed, May 14, 2003 at 10:41:37AM -0500, B. J. Zolp wrote:
> >> Should I be able to dd (without reading the bad sectors) the failing
> >> drive (assuming it spins up and reads all the good sectors) to the
> >> replacement drive, then run fsck on the unmounted volume and then mount
> >> the volume with minimal data loss?
> >
> >I guess, this should work ... but make sure, that
> >you do the copy operation on another system, otherwise
> >the LVM stuff could/will be irritated by two diffent
> >disks with the same signature (after copying over)
>
> Other things to consider:
>
> - make sure you do the dd with an option to replace unreadable sectors
>   with blank sectors (otherwise nothing will be written out for the
>   unreadable sectors, causing everything to be "out of alignment" after
>   the first bad block)
>

I plan on using the noerror switch for dd, what else would I need to use to 
make sure it replaces with blank sectors.  I could not find anything in info 
dd or man dd.

> - do the copy in single user mode, preferable booted in such a way that
>   the LVM isn't active (or on another system as suggested above)
>
> - it'll take longer but consider copying in sector-by-sector chunks, as
>   it'll reduce the amount skipped  (eg, bs=512)
>

great idea

> - you may want to map which logical volumes, and which files on those
>   volumes, are affected by the bad sectors before you start, so you know
>   which files you'll lose  (you could use something like "badblocks" --
>   in _read_only_ mode!! -- to identify the affected blocks)
>
> But aside from that, given an identical sized replacement disk and/or
> replacement partition, I'd guess it should, in theory, work.  I've seen
> similar things done with other systems with logical volume managers
> (eg, HP/UX 10.20) reasonably successfully (we ended up restoring much
> of the data from backup anyway to get a consistent database snapshot,
> but it did save a bunch of volume reconstruction time, etc).
>
> Ewen
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2003-05-15  9:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-14 10:41 [linux-lvm] Drive failure B. J. Zolp
2003-05-15  3:01 ` Herbert Poetzl
2003-05-15  3:14   ` Ewen McNeill
2003-05-15  9:17     ` B. J. Zolp [this message]
2003-05-15 15:39       ` Ewen McNeill
2003-05-15 18:36         ` B. J. Zolp
2003-05-15 18:55           ` Ewen McNeill
2003-05-18 13:24           ` Urs Thuermann
2003-05-15  9:09   ` B. J. Zolp
2003-05-15 16:49     ` Herbert Poetzl

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=200305150917.21504.bjzolp@wisc.edu \
    --to=bjzolp@wisc.edu \
    --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