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 09-18-2008, 01:54 PM
 
Default scsi_dh: add ALUA notification for EMC Clariion devices.

Adding sense code data decode for optimal/non-optimal path changeover.
Unfortunately in the read sense code we can't do another inquiry, so we
can't tell the user whether we are on the optimal or non-optimal path,
only that a change has occurred.

Jerry Levy, Engineer IV
EMC Global Services Technical Support, PREM ISG
AMER Host Systems Software - UNIX
---

--- scsi_dh_emc.original.c 2008-09-17 14:50:18.000000000 -0400
+++ scsi_dh_emc.c 2008-09-17 14:54:38.000000000 -0400
@@ -435,6 +435,16 @@
return SUCCESS;
break;
case UNIT_ATTENTION:
+ if (sense_hdr->asc == 0x2A && sense_hdr->ascq == 0x06)
+ /*
+ * ALUA status has changed. Report to host,
+ * no further action required... jml
+ */
+ sdev_printk(KERN_NOTICE, sdev,
+ "%s: Asymetric access state has
changed.
",
+ CLARIION_NAME);
+ return SUCCESS;
+ break;
if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00)
/*
* Unit Attention Code. This is the first IO

--
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 05:35 PM.

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