Currently, issuing a TUR command on a path in standby
mode, it returns a Unit Attention status. This is
reported as a Failed path by the SLES11 tur checker.
Instead, this has to be reported as Ghost path based
on the additional sense code and sense code qualifier values.
References: 475816
Signed-off-by: Hannes Reinecke <hare@suse.de>
#define MSG_TUR_UP "tur checker reports path is up"
#define MSG_TUR_DOWN "tur checker reports path is down"
+#define MSG_TUR_GHOST "tur checker reports path is in standby state"
struct tur_checker_context {
void * dummy;
if (--retry_tur)
goto retry;
}
+ else if (key == 0x2) {
+ /* Not Ready */
+ /* Note: Other ALUA states are either UP or DOWN */
+ if( asc == 0x04 && ascq == 0x0b){
+ /*
+ * LOGICAL UNIT NOT ACCESSIBLE,
+ * TARGET PORT IN STANDBY STATE
+ */
+ MSG(c, MSG_TUR_GHOST);
+ return PATH_GHOST;
+ }
+ }
MSG(c, MSG_TUR_DOWN);
return PATH_DOWN;
}