All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chandra Seetharaman <sekharan@us.ibm.com>
To: "Moger, Babu" <Babu.Moger@lsi.com>
Cc: device-mapper development <dm-devel@redhat.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: RE: [dm-devel] i/o error due to all path failure with rdac
Date: Thu, 30 Oct 2008 16:35:29 -0700	[thread overview]
Message-ID: <1225409729.14830.1005.camel@chandra-ubuntu> (raw)
In-Reply-To: <E463DF2B2E584B4A82673F53D62C2EF45BD9D16B@cosmail01.lsi.com>

Can you try this patch.
---------
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>

Index: linux-2.6.27/drivers/scsi/device_handler/scsi_dh_rdac.c
===================================================================
--- linux-2.6.27.orig/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ linux-2.6.27/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -386,6 +386,7 @@ static int check_ownership(struct scsi_d
 	struct c9_inquiry *inqp;
 
 	h->lun_state = RDAC_LUN_UNOWNED;
+	h->state = RDAC_STATE_ACTIVE;
 	err = submit_inquiry(sdev, 0xC9, sizeof(struct c9_inquiry), h);
 	if (err == SCSI_DH_OK) {
 		inqp = &h->inq.c9;
---

On Thu, 2008-10-30 at 17:21 -0600, Moger, Babu wrote:
> Looks like eventually we get rport failure after the controller offline.
> 
> 
> I have attached the messages file.  I am running raw IO.
> 
> Also, please note that I have added following lines in check_sense. This condition (quiescence) should be retried.
> 
> 
> case UNIT_ATTENTION:
>                 if ((sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) ||
>                     (sense_hdr->asc == 0x8b && sense_hdr->ascq == 0x02))
>                         /*
>                          * Power On, Reset, or Bus Device Reset, just retry.
>                          */
>                         return ADD_TO_MLQUEUE;
> 
> 
> 
> Thanks
> Babu Moger
> 
> -----Original Message-----
> From: Chandra Seetharaman [mailto:sekharan@us.ibm.com]
> Sent: Thursday, October 30, 2008 5:24 PM
> To: Moger, Babu
> Cc: device-mapper development; linux-scsi@vger.kernel.org
> Subject: RE: [dm-devel] i/o error due to all path failure with rdac
> 
> 
> On Thu, 2008-10-30 at 14:30 -0600, Moger, Babu wrote:
> > This is what happens in my case
> >
> > When the active path is failed, the dh handler calls rdac_activate to activate the passive path.
> > Then check_ownership is called. As you know check_ownership sends inquiry (page c9). Looking at the
> > response this function sets the lun_state(h->lun_state) to RDAC_LUN_OWNED.
> >
> > If lun_state is set to RDAC_LUN_OWNED then send_mode_select will not be called. This is what
> > happens in my case.
> 
> Ok. Now it is clear. I thought the port was disabled.
> 
> The rport failure in the log you sent made me think that it was a port
> disable. Why was there a rport failure ?
> 
> Can you add these two lines at the top of
> scsi_dn_rdac.c:rdac_check_sense() function, retest and send me the log.
> ------------
>         sdev_printk(KERN_ERR, sdev, "sense_key:%x; asc %c; ascq %x\n",
>                 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq);
> -----------
> I want to see if we are getting any special sense that we are not
> handling.


  reply	other threads:[~2008-10-30 23:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 19:22 Buffer I/O error Kit Westneat
2008-10-24 23:11 ` i/o error due to all path failure with rdac Moger, Babu
2008-10-30 17:34   ` [dm-devel] " Mike Anderson
2008-10-30 19:17     ` Moger, Babu
2008-10-30 20:03       ` Chandra Seetharaman
2008-10-30 20:30         ` Moger, Babu
2008-10-30 22:23           ` [dm-devel] " Chandra Seetharaman
2008-10-30 23:21             ` Moger, Babu
2008-10-30 23:35               ` Chandra Seetharaman [this message]
2008-10-31 16:05                 ` Moger, Babu
2008-10-31 20:21                   ` [dm-devel] " Chandra Seetharaman
2008-10-30 18:56   ` Chandra Seetharaman
2008-10-30 17:29 ` Buffer I/O error Mike Anderson

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=1225409729.14830.1005.camel@chandra-ubuntu \
    --to=sekharan@us.ibm.com \
    --cc=Babu.Moger@lsi.com \
    --cc=dm-devel@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    /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.