From: Andreas Dilger <adilger@turbolinux.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] hd read error / some PEs won't pvmove - how to resolve?
Date: Tue, 19 Dec 2000 15:39:02 -0700 (MST) [thread overview]
Message-ID: <200012192239.eBJMd3j26809@webber.adilger.net> (raw)
In-Reply-To: <20001217183129.B884@twitch.webtownis.bc.ca> "from rick@webtownis.bc.ca at Dec 17, 2000 06:31:29 pm"
Rick, you write:
> 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.
Yes, AIX always had this same problem. However, because you could mirror
inside the LVM on AIX, you could mirror the bad LEs, and then remove the
old PV because there were 2 copies of that LE. Generally you were better
off throwing the whole filesystem out and restoring from a backup, if you
didn't have a mirrored LV in the first place. AIX also warned you at the
time of temporary (rather than permanent) read errors, so sometimes you
had a chance to replace the disk before it totally crapped out.
> 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.
If the bad PEs are in the middle of the filesystem, you are pretty much
hosed in terms of recovery for this filesystem, regardless of whether
you can force LVM to move the PEs for you (if you are lucky fsck may be
able to recover, but it really depends on where/how big the bad PEs are
and how you initially configured the filesystem). Hopefully the bad
PEs are only in one LV.
I would simply back up what files you can (via tar) and make a new LV
and filesystem on the other disk. You _should_ be able to delete the
LV. Once the LV using those PEs is gone is gone you should be able to
remove the PV.
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:[~2000-12-19 22:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-18 2:31 [linux-lvm] hd read error / some PEs won't pvmove - how to resolve? rick
2000-12-19 22:39 ` 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=200012192239.eBJMd3j26809@webber.adilger.net \
--to=adilger@turbolinux.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