FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 12-21-2011, 10:01 PM
"Moger, Babu"
 
Default scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed

This patch adds a check-condition in scsi_dh_alua handler for a retry.
Sometimes,
I have seen attach failing due to this check-condition with following
error
messages on NetApp E series storage.

Dec 7 15:31:01 nilgiris kernel: [102979.696673] scsi 3:0:2:9: alua:
port group 00 rel port 01
Dec 7 15:31:01 nilgiris kernel: [102979.697082] scsi 3:0:2:9: alua:
rtpg failed with 8000002
Dec 7 15:31:01 nilgiris kernel: [102979.697086] scsi 3:0:2:9: alua:
rtpg sense code 06/2a/01
Dec 7 15:31:01 nilgiris kernel: [102979.697088] scsi 3:0:2:9: alua: not
attached

Signed-off-by: Babu Moger <babu.moger@netapp.com>
---

--- linux-3.2-rc6/drivers/scsi/device_handler/scsi_dh_alua.c.orig
2011-12-21 15:48:46.000000000 -0600
+++ linux-3.2-rc6/drivers/scsi/device_handler/scsi_dh_alua.c
2011-12-21 16:03:56.000000000 -0600
@@ -466,6 +466,11 @@ static int alua_check_sense(struct scsi_
* Power On, Reset, or Bus Device Reset, just
retry.
*/
return ADD_TO_MLQUEUE;
+ if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01)
+ /*
+ * Mode Parameters Changed
+ */
+ return ADD_TO_MLQUEUE;
if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06)
/*
* ALUA state changed



--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 01-09-2012, 06:12 AM
Hannes Reinecke
 
Default scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed

On 12/22/2011 12:01 AM, Moger, Babu wrote:
> This patch adds a check-condition in scsi_dh_alua handler for a retry.
> Sometimes,
> I have seen attach failing due to this check-condition with following
> error
> messages on NetApp E series storage.
>
> Dec 7 15:31:01 nilgiris kernel: [102979.696673] scsi 3:0:2:9: alua:
> port group 00 rel port 01
> Dec 7 15:31:01 nilgiris kernel: [102979.697082] scsi 3:0:2:9: alua:
> rtpg failed with 8000002
> Dec 7 15:31:01 nilgiris kernel: [102979.697086] scsi 3:0:2:9: alua:
> rtpg sense code 06/2a/01
> Dec 7 15:31:01 nilgiris kernel: [102979.697088] scsi 3:0:2:9: alua: not
> attached
>
> Signed-off-by: Babu Moger <babu.moger@netapp.com>
Looks ok.

Acked-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 10:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org