From: "Bryn M. Reeves" <bmr@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: Stopped disk causes LVM to go crazy
Date: Wed, 11 Feb 2009 10:39:20 +0000 [thread overview]
Message-ID: <4992AAD8.2060001@redhat.com> (raw)
In-Reply-To: <638406528.2295221234308660984.JavaMail.root@jaguar7.sfu.ca>
Alireza Nematollahi wrote:
> hi guys,
>
> I have a system with two SATA disks and I have LVM on the disks. I
> use sdparm (sdparm -C stop /dev/sdb) to spin-down one of them. It
> works fine and I can hear the disk spinning down and all...But when
> I run any LVM command, say lvscan or whatever, I get lots of error
> messages:
What did you expect? :)
If the volume group is active when you remove/spin down the disks LVM
has no way of knowing that you wanted to do that. To the software, it
just looks like a drive has failed or gone away while it was in use.
<snip>
> /dev/sdb2: read failed after 0 of 4096 at 2993881088: Input/output
> error /dev/sdb2: read failed after 0 of 4096 at 0: Input/output
> error /dev/sdb4: read failed after 0 of 1024 at 144082075648:
> Input/output error /dev/sdb4: read failed after 0 of 2048 at 0:
> Input/output error Even when I physically remove the disk it still
> happens. Is there any way I can stop LVM from querying both disks
> or at least to stop displaying the error messages?
Tell LVM to stop using the disk first. See the man page for vgchange
for full details but you want to run:
vgchange -an <volume group>
To deactivate the volume group *before* you start removing devices
that it is using.
Regards,
Bryn.
next prev parent reply other threads:[~2009-02-11 10:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 23:31 Stopped disk causes LVM to go crazy Alireza Nematollahi
2009-02-11 10:39 ` Bryn M. Reeves [this message]
[not found] <940984053.2821991234377736540.JavaMail.root@jaguar7.sfu.ca>
2009-02-11 18:45 ` Alireza Nematollahi
2009-02-11 18:50 ` Bryn M. Reeves
[not found] <288159352.2860111234381750007.JavaMail.root@jaguar7.sfu.ca>
2009-02-11 20:04 ` Alireza Nematollahi
2009-02-13 9:52 ` Nuno Fernandes
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=4992AAD8.2060001@redhat.com \
--to=bmr@redhat.com \
--cc=dm-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.