Yes, It is working fine with this patch. Now my online/offline test is running fine. Thank you very much. That was really a quick fix. I am still learning the device mapper. Hopefully I will be some help in the future. Thanks Babu Moger -----Original Message----- From: Chandra Seetharaman [mailto:sekharan@xxxxxxxxxx] Sent: Thursday, October 30, 2008 6:35 PM To: Moger, Babu Cc: device-mapper development; linux-scsi@xxxxxxxxxxxxxxx Subject: RE: [dm-devel] i/o error due to all path failure with rdac Can you try this patch. --------- Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx> 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 > -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html