Skip to contentSkip to conversation

Problem with ALUA Handler

DISCUSSION Pradipmaya Maharana 2 participants 5 messages Nov 8, 2007 – Nov 12, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi,

I tried compiling ALUA handler code from Hannes Reincke
(https://www.redhat.com/archives/dm-devel/2007-October/msg00033.html)
on kernel 2.6.18 and with few modifications it did fine.

I was even able to load it, but it fails for the std inquiry and hence does not do anything further. It returns error that the controller does not support TPGS.

I verified with the analyser that the inquiry command is actually reaching the controller and it's returning proper values.

Could someone please let me know what am I missing here?

Thanks and Regards,
Pradipmaya.

#1 lore raw
Quoted 10 lines · Pradipmaya Maharana

Hi,

I tried compiling ALUA handler code from Hannes Reincke
(https://www.redhat.com/archives/dm-devel/2007-October/msg00033.html)
on kernel 2.6.18 and with few modifications it did fine.

I was even able to load it, but it fails for the std inquiry and hence does not do anything further. It returns error that the controller does not support TPGS.

This is preliminary code only. I've done a rework of the ALUA handler and will post the updated code here shortly.

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
#2 lore raw

Thanks Hannes.

Actually I could get it to work after making some changes; In the function prepare_req(), I replaced

//rq->cmd_flags |= REQ_FAILFAST | REQ_NOMERGE;
	rq->flags |= REQ_FAILFAST | REQ_NOMERGE;

with following:

rq->flags |= REQ_BLOCK_PC | REQ_SPECIAL | REQ_QUIET;

This worked for me.

Thanks for your support.
Regards,
Pradipmaya.

Quoted 28 lines · Hannes Reinecke
Quoted 10 lines · Pradipmaya Maharana

Hi,

I tried compiling ALUA handler code from Hannes Reincke
(https://www.redhat.com/archives/dm-devel/2007-October/msg00033.html)
on kernel 2.6.18 and with few modifications it did fine.

I was even able to load it, but it fails for the std inquiry and hence does not do anything further. It returns error that the controller does not support TPGS.

This is preliminary code only. I've done a rework of the ALUA handler and will post the updated code here shortly.

Cheers,

Hannes
--
Dr. Hannes Reinecke zSeries & Storage
[email protected] +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#3 lore raw
Quoted 5 lines · Pradipmaya Maharana

Thanks Hannes.

Actually I could get it to work after making some changes; In the function prepare_req(), I replaced

Quoted 9 lines
//rq->cmd_flags |= REQ_FAILFAST | REQ_NOMERGE;
	rq->flags |= REQ_FAILFAST | REQ_NOMERGE;

with following:

rq->flags |= REQ_BLOCK_PC | REQ_SPECIAL | REQ_QUIET;

This worked for me.

Errm. Which version you're compiling against? The hardware handler is done against scsi-misc; by the looks of it you're compiling against some older version (2.6.19? 2.6.16?)

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
#4 lore raw

Yes, you are right. I am evaluating it on 2.6.18 (that explains why the changes work);
I am willing to wait for your patch but have no idea which release of linux would include it.

Could you please let me know.

Thank and Regards,
Pradipmaya.

Quoted 35 lines · Hannes Reinecke
Quoted 5 lines · Pradipmaya Maharana

Thanks Hannes.

Actually I could get it to work after making some changes; In the function prepare_req(), I replaced

Quoted 9 lines
//rq->cmd_flags |= REQ_FAILFAST | REQ_NOMERGE;
      rq->flags |= REQ_FAILFAST | REQ_NOMERGE;

with following:

rq->flags |= REQ_BLOCK_PC | REQ_SPECIAL | REQ_QUIET;

This worked for me.

Errm. Which version you're compiling against? The hardware handler is done against scsi-misc; by the looks of it you're compiling against some older version (2.6.19? 2.6.16?)

Cheers,

Hannes
--
Dr. Hannes Reinecke zSeries & Storage
[email protected] +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel