All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Diedrich Ehlerding" <diedrich.ehlerding@ts.fujitsu.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: multipath - AAArgh! How do I turn "features=1 queue_if_no_path" off?
Date: Thu, 01 Oct 2009 11:41:07 +0200	[thread overview]
Message-ID: <7ujn84$8pp4s@dgate20u.abg.fsc.net> (raw)
In-Reply-To: <4AC46E70.9060509@Calva.COM>

John Hughes wrote:  

> and no_path_retry 5).   The mdadm raid10 built on top of the multipath
> devices hangs, even /proc/mdstat hangs.
> 
> You're saying that without queue_if_no_path multipath basicly won't
> work 
> - mdadm will see I/O errors on multipath devices if a path fails?

No. It will see IO errors immediately if _all_ paths fail. With 
no_path_retry nn, the intended behaviour is to wait nn cycles to see if 
the array (at elast one path) reappears, and to fail thhe IO after nn 
cycles. 

Waht you report here is  exactly what I observed too (my distro was a 
SLES10). Apparently, some versions of multipath-tools seem to be buggy 
with respect to no_path_retry count and seem to react as if you had 
used "no_path_retry queue".  AFAIR some weeks ago Hannes Reinecke 
stated here that this is indeed a bug in some SuSE versions of 
multipath_tools. 

I succeeded to set up mdadm mirrors (and also lvm mirrors on a SLES11 
machine)  on top of dm_multipath by explicitely using "no_path_retry 
fail" (edit multipath.conf and restart multipathd afterwards). With 
these settings, path failures are handled as usually, and I could 
survive a (simulated) raid array failure (i.e., all paths failed). 
"no_path_retry fail" may contradict commercial raid system 
manufacturers' recommendations ... but it seems to work for me.

Another idea which you might take into account: I do not know the raid 
array which you are using. My attempts were done with EMC Clariion 
arrays. If I simulate an array failure by just removing the host's 
access rights to a lun within the array, I get a different behaviour 
depending on the lun address - on a Clariion, removing, say, scsi 
address 2:0:0:0 and 3:0:0:0 is not exactly the same as removing 2:0:0:1 
and 3:0:0:1. A clariion exposes some kind of dummy lun 0 ("LUNZ") to 
all hosts which dont have access rights to any real lun visible at  
address 0. The consequence ist that removing a real lun 0 will not 
result in not having a lun 0 o the scsi level; instead, it results in a 
not_ready lun 0 (i.e. 2:0:0:0 and 3:0:0:0 are still visible at the scsi 
layer!). Therefore I recommend to simulate site failures with luns !=0

best regards
Diedrich

-- 
Diedrich Ehlerding, Fujitsu Technology Solutions GmbH, R GE TIS N IC2 
Hildesheimer Str 25, D-30880 Laatzen
Fon +49 511 8489-1806, Fax -251806, Mobil +49 173 2464758
Firmenangaben: http://de.ts.fujitsu.com/imprint.html

  reply	other threads:[~2009-10-01  9:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-30 10:33 multipath - AAArgh! How do I turn "features=1 queue_if_no_path" off? John Hughes
2009-09-30 15:42 ` malahal
2009-10-01  6:24   ` Hannes Reinecke
2009-10-01  8:55     ` John Hughes
2009-10-01  9:41       ` Diedrich Ehlerding [this message]
2009-10-01  9:44       ` Hannes Reinecke
2009-09-30 16:22 ` Moger, Babu
2009-09-30 17:11   ` John Hughes
2009-10-01  9:05   ` John Hughes

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='7ujn84$8pp4s@dgate20u.abg.fsc.net' \
    --to=diedrich.ehlerding@ts.fujitsu.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.