Linux LVM users
 help / color / mirror / Atom feed
From: rick@webtownis.bc.ca
To: linux-lvm@sistina.com
Subject: [linux-lvm] hd read error / some PEs won't pvmove - how to resolve?
Date: Sun, 17 Dec 2000 18:31:29 -0800	[thread overview]
Message-ID: <20001217183129.B884@twitch.webtownis.bc.ca> (raw)

Hi people,

I've searched the net, the mailing lists, and the documentation for the
solution to this, but I don't see anything obvious.

I had partitions on 45GB and 20GB drives in a volume group. Problems
developed with the 20GB drive, where certain blocks became undreadable.
I added a 13GB drive, and juggled some files to come up with another 8GB on
the 45GB, and pvmoved all the data off the 20 GB drive.

All except for 8 PEs, that is. pvmove fails with an error when I try to
move those particular PEs where the read errors are occuring. 

I don't need to worry about recovering that data. None of the affected
files are important enough to worry about. But I do need to remove the 
PV on the 20GB drive from the VG, which I can't do while these 8 PEs 
are still assigned to my LV. 

So! The only hint at a solution I've found for this in the mailing lists
is to replace the 20GB drive with an equal or greater size drive, and 
use vgcfgrestore to restore the PV information on that drive. I would assume
the PEs will still be allocated, but they'll just be empty of data. From 
that point on, recovery is a filesystem layer issue.

The problem is, I don't have a 20GB or greater drive lying around to replace
this one with until I get this one replaced on warranty, which I can't send
in for warranty until I can remove it from the volume group. Chicken and egg.

The other option I can consider is a painful piece-by-piece move of the data
from this VG into a new VG, gradually reducing one VG and expanding the other
until there's no data left on the first VG. If there's no better option, I'll
do this, but I'm not excited about it. Can I do this within the existing volume
group, or will the currently allocated PEs cause problems later on when I try
to remove that failed drive? (vgsplit?)

Any help appreciated, much thanks.


Rick

             reply	other threads:[~2000-12-18  2:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-18  2:31 rick [this message]
2000-12-19 22:39 ` [linux-lvm] hd read error / some PEs won't pvmove - how to resolve? Andreas Dilger

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=20001217183129.B884@twitch.webtownis.bc.ca \
    --to=rick@webtownis.bc.ca \
    --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