From: malahal@us.ibm.com
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Mirror fail/recover test
Date: Thu, 25 Feb 2010 08:11:12 -0800 [thread overview]
Message-ID: <20100225161112.GA14691@us.ibm.com> (raw)
In-Reply-To: <cbc809246d15e30c4dd15df41e2889b9.squirrel@fela.liber4e.com>
jose nuno neto [jose.neto@liber4e.com] wrote:
> Much thanks for your interest
> im putting more info below
>
> > jose nuno neto [jose.neto@liber4e.com] wrote:
> >> Hi
> >>
> >> I'm trying to test the failure of a SAN Mirrored Lv, and the recover and
> >> check for data lost.
> >>
> >> Im runing RedHat 5.4
> >> 2.6.18-164.2.1.el5
> >> lvm2-2.02.46-8.el5_4.1
>
> multipath -l -v2 | grep -A 7 3600a0b800048f9b200000c2b4b5980b7
> mpath12 (3600a0b800048f9b200000c2b4b5980b7) dm-8 SUN,CSM200_R
> [size=52G][features=1 queue_if_no_path][hwhandler=1 rdac][rw]
> \_ round-robin 0 [prio=0][enabled]
> \_ 7:0:1:1 sdo 8:224 [active][undef]
> \_ 9:0:1:1 sdq 65:0 [active][undef]
> \_ round-robin 0 [prio=0][enabled]
> \_ 7:0:0:1 sdd 8:48 [active][undef]
> \_ 9:0:0:1 sdf 8:80 [active][undef]
>
> Before UnPluging
> dmsetup status mpath12
> 0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 A 0 65:0 A 0 E 0 2 0 8:48
> A 0 8:80 A 0
>
> echo offline > /sys/block/sdd/device/state
> echo offline > /sys/block/sdo/device/state
> echo offline > /sys/block/sdq/device/state
> echo offline > /sys/block/sdf/device/state
>
> dmsetup status mpath12
> 0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 F 1 65:0 F 1 E 0 2 0 8:48
> F 1 8:80 F 1
I was actually asking for "dmsetup status <mirror-device>" rather than
multipath device. I didn't know that you were using multipath devices!!!
Anyway, looks like you have mpath12 that probably queues I/O on path
failures rather than failing them back to upper layers. In other words,
if you were to run "dd" or any other app to mpath12, it would hang too.
mpath12 seems to keep the request and forever wait for the paths to
become available again in your case. If you really want it to fail,
configure your multipath accordingly.
Thanks, Malahal.
PS: "features=1 queue_if_no_path" in your 'multipath -ll' output is the
source of error here...
next prev parent reply other threads:[~2010-02-25 16:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-24 16:14 [linux-lvm] Mirror fail/recover test jose nuno neto
2010-02-24 18:55 ` malahal
2010-02-25 10:36 ` jose nuno neto
2010-02-25 16:11 ` malahal [this message]
2010-03-02 10:31 ` [linux-lvm] Mirror fail/recover test SOLVED jose nuno neto
2010-04-14 15:03 ` [linux-lvm] Lvm hangs on San fail jose nuno neto
2010-04-14 17:38 ` Eugene Vilensky
2010-04-14 23:02 ` brem belguebli
2010-04-15 8:29 ` jose nuno neto
2010-04-15 9:32 ` Bryan Whitehead
2010-04-15 11:59 ` jose nuno neto
2010-04-15 12:41 ` Eugene Vilensky
2010-04-16 8:55 ` jose nuno neto
2010-04-16 20:15 ` Bryan Whitehead
2010-04-17 9:00 ` brem belguebli
2010-04-19 9:21 ` jose nuno neto
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=20100225161112.GA14691@us.ibm.com \
--to=malahal@us.ibm.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).