All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek <konrad@virtualiron.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [patch]: [multipath-tool] Add check for removed device in rdac checker
Date: Mon, 27 Oct 2008 13:01:13 -0400	[thread overview]
Message-ID: <20081027170113.GA6167@mars.virtualiron.com> (raw)
In-Reply-To: <00FE57DD11E3A94893D5BD54C3358BE884BFA6@AUSX3MPC128.aus.amer.dell.com>

On Mon, Oct 27, 2008 at 10:11:28AM -0500, Yanqing_Liu@Dell.com wrote:
> Hi,
> 
> This patch adds a check for removed device in rdac checker. After volume
> access inquiry returns, the checker will check the peripheral qualifier
> field to see if the device is deleted/unmapped. If so, mark path as
> failed.

How does multipathd behaves when this fix is not in? Does
it still mark the path down? I would presume so, but it would take
longer (the default SCSI timeout value?)

> 
> Signed off by: Yanqing Liu <Yanqing_Liu@Dell.com>
> 
> ---
> 
> --- libcheckers/rdac.c.orig	2008-10-22 02:52:33.000000000 -0400
> +++ libcheckers/rdac.c	2008-10-17 03:43:13.000000000 -0400
> @@ -27,6 +27,7 @@
>  #define MSG_RDAC_UP    "rdac checker reports path is up"
>  #define MSG_RDAC_DOWN  "rdac checker reports path is down"
>  #define MSG_RDAC_GHOST "rdac checker reports path is ghost"
> +#define MSG_RDAC_DELETED "rdac checker reports path deleted"
>  
>  struct rdac_checker_context {
>  	void * dummy;
> @@ -90,7 +91,8 @@
>  
>  struct volume_access_inq
>  {
> -	char dontcare0[8];
> +	char qualifier;
> +	char dontcare0[7];
>  	char avtcvp;
>  	char dontcare1[39];
>  };
> @@ -104,6 +106,12 @@
>  		MSG(c, MSG_RDAC_DOWN);
>  		return PATH_DOWN;
>  	}
> +	
> +	if (0 != inq.qualifier) {
> +		MSG(c, MSG_RDAC_DELETED);
> +		return PATH_DOWN;
> +	}
> +		
>  
>  	return ((inq.avtcvp & 0x1) ? PATH_UP : PATH_GHOST);  }
> 
> 
> 
> 
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

  reply	other threads:[~2008-10-27 17:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 15:11 [patch]: [multipath-tool] Add check for removed device in rdac checker Yanqing_Liu
2008-10-27 17:01 ` Konrad Rzeszutek [this message]
2008-10-28  9:41   ` [patch]: [multipath-tool] Add check for removeddevice " Shyam_Iyer
2008-10-28 14:10     ` Konrad Rzeszutek

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=20081027170113.GA6167@mars.virtualiron.com \
    --to=konrad@virtualiron.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.