linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: lvm@qasmos.net,
	LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Recovering a volume after lost disk
Date: Tue, 29 Nov 2011 15:20:58 +0100	[thread overview]
Message-ID: <4ED4EA4A.1070907@redhat.com> (raw)
In-Reply-To: <20111128124632.GA17443@hulk.dreamhost.com>


On 11/28/2011 01:46 PM, lvm@qasmos.net wrote:
> I have a file system that spanned two physical disks on my Linux
> machine but one disk was lost and had to be pulled out due to
> excessive errors.  Are there instructions anywhere for being able to
> truncate the file system to the size of the good disk and mount it
> that way?  The disk that is left is good so data in it should be
> intact.  It is just that volume manager commands don’t see the volume
> in it, only the disk group itself.

You can add "zero device" replacement for missing PV, then dd
to another disk and run fsck/mount/truncate it.

I had example how to do that in slide [3/6] missing PV example
http://mbroz.fedorapeople.org/talks/LinuxAlt2009_2/

(maybe there is better description somewhere, dunno.
There are some slides which need updates though but principle
is the same.)

Milan

  parent reply	other threads:[~2011-11-29 14:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 12:46 [linux-lvm] Recovering a volume after lost disk lvm
2011-11-29 10:03 ` Heinz Mauelshagen
2011-11-29 14:20 ` Milan Broz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-11-29 10:46 shtegtari
2011-11-30 18:09 ` Stuart D. Gathman
2011-11-29 15:43 lvm

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=4ED4EA4A.1070907@redhat.com \
    --to=mbroz@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=lvm@qasmos.net \
    /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).