linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Jim Schatzman <james.schatzman@futurelabusa.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Pvmove Cannot Be Aborted
Date: Thu, 05 Jul 2007 18:12:49 -0600	[thread overview]
Message-ID: <20070706001249.2D0BA776F6@mail.futurelabusa.com> (raw)
In-Reply-To: <468D2221.7000004@vdberg.org>

At 10:53 AM 7/5/2007, you wrote:
>Jim Schatzman wrote:
>> So... I have learned my lesson - never use pvmove on a bad drive. 
>
>Your VG and LVs are not in worse shape now (after the stuck pvmove) than
>they would have been if you did not attempt the pvmove, right? I guess
>you did not use use raid on top of or under lvm?
>
>Sincerely,
>
>Richard van den Berg
Thanks for your question.

The problem is more complicated than I explained. The drive (a late model SATA device) apparently tries to automatically relocate bad sectors. The relocate invariably fails. What happens after a while is that the system log gets filled with thousands of error messages and Linux eventually disables the drive. The drive then disables itself somehow (I have not figured this out) so that if I reboot then Linux reports "soft reset failed" and disables the drive again.

When the drive is offline, Linux LVM refuses to activate the LVs on the VG (obviously) unless I use dmsetup to error out the bad drive. If I do that, the LV ends up in a "d" state ("device present without tables"). I am not sure what "tables" are meant. I am certain that there are many EXT2 superblocks on the good drives, including the first one, so that isn't it. If I had to guess, I would think that what is meant is the LVM tables. 

I can power cycle the drive and computer about 20 times to get the drive to come back online (it would be helpful if I could get SATA hot-swap to work so I wouldn't have to reboot the computer but no joy even though the controller supposedly supports hot swap - maybe "hot swap" is different from "hot initial plug in"?). Then I can copy off a bit of data until the drive goes haywire again and Linux disables it. After a few days, I was able to retrieve all the good data I was going to get.

What would have saved me a lot of time is to have been able to mount the LV filesystems without the bad drive via the dmsetup mechanism. That did not work. My guess is that this is due to my executing "pvmove" in a vain attempt to replace the bad drive without having to rebuild the VG from scratch. Once the pvmove failed, I was hosed, apparently. No going forward and no going back.

Jim Schatzman

  reply	other threads:[~2007-07-06  0:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-04 14:05 [linux-lvm] Pvmove Cannot Be Aborted Jim Schatzman
2007-07-05 16:41 ` Stuart D. Gathman
2007-07-05 16:47   ` [linux-lvm] Debugging partial drive failure Stuart D. Gathman
2007-07-07 11:05     ` Nix
2007-07-05 16:53 ` [linux-lvm] Pvmove Cannot Be Aborted Richard van den Berg
2007-07-06  0:12   ` Jim Schatzman [this message]
2007-07-06  4:55 ` [linux-lvm] lv with cmirror Michael Eisenkölbl / FIS
2007-07-10 14:51   ` Jonathan Brassow

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=20070706001249.2D0BA776F6@mail.futurelabusa.com \
    --to=james.schatzman@futurelabusa.com \
    --cc=linux-lvm@redhat.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).