Skip to contentSkip to conversation

good dm-mpath test setup?

DISCUSSION Christoph Hellwig 2 participants 5 messages Jun 5, 2014 Device mapper

lore
Share & tools
lore
#0 lore raw

I've been looking into support blk-mq/scsi-mq in dm-mpath, but I'm already running into issues with mainline. I created a couple luns (without second path) using iet, and then using the iscsi initiator to access them. But it seems like no I/O is possible through dm-mpath for this simple setup as the kpartx processes spawned by udev already hang. Is dm-mpath (default config, no multipath.conf) support to work for a single path setup, or is this expected behavior?

Does anyone have a good default iet or maybe lio config for dm-mpath testing?

#1 lore raw
Quoted 8 lines · Christoph Hellwig

I've been looking into support blk-mq/scsi-mq in dm-mpath, but I'm already running into issues with mainline. I created a couple luns (without second path) using iet, and then using the iscsi initiator to access them. But it seems like no I/O is possible through dm-mpath for this simple setup as the kpartx processes spawned by udev already hang. Is dm-mpath (default config, no multipath.conf) support to work for a single path setup, or is this expected behavior?

Hmm. This shouldn't happen.

But be aware, that multipath doesn't play well together with systemd currently.
I've done plenty of fixes to get it up and running for SLES12; once they've stabilized I'll be sending them mainline.

But for a stable testbed I would recommend against systemd currently.

Quoted 3 lines

Does anyone have a good default iet or maybe lio config for dm-mpath testing?

The easiest bit would be set set up lio in loopback mode, and map two luns pointing to the same device.

I've attached a small script I'm using for a quick test here.

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: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
#3 lore raw
In reply to Christoph Hellwig
Quoted 8 lines · Christoph Hellwig

I've been looking into support blk-mq/scsi-mq in dm-mpath, but I'm already running into issues with mainline. I created a couple luns (without second path) using iet, and then using the iscsi initiator to access them. But it seems like no I/O is possible through dm-mpath for this simple setup as the kpartx processes spawned by udev already hang. Is dm-mpath (default config, no multipath.conf) support to work for a single path setup, or is this expected behavior?

On a complete different footing, I've whipped together some patches to simplify the request/bio cloning when using multipath; basically do _not_ clone the bios, but just modify the rq_end_io handler.

You mentioned something at LSF that the current way of handling is quite insane, and looking at it I tend to agree.

So if you'd be interested I'll be posting them.

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: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
#4 lore raw
Quoted 9 lines · Hannes Reinecke

On a complete different footing, I've whipped together some patches to simplify the request/bio cloning when using multipath; basically do _not_ clone the bios, but just modify the rq_end_io handler.

You mentioned something at LSF that the current way of handling is quite insane, and looking at it I tend to agree.

So if you'd be interested I'll be posting them.

Please do - that's something mostly orthogonal to my patches, but with the bio cloning removed and my conversion to blk-mq dm-mpath will become really lean and simple.

#2 lore raw
In reply to Hannes Reinecke
Quoted 8 lines · Hannes Reinecke

Hmm. This shouldn't happen.

But be aware, that multipath doesn't play well together with systemd currently.
I've done plenty of fixes to get it up and running for SLES12; once they've stabilized I'll be sending them mainline.

But for a stable testbed I would recommend against systemd currently.

I'm not going anywhere near that stinking pile if I can avoid it. This is a Debian Wheezy setup.

Quoted 7 lines
Quoted 3 lines

Does anyone have a good default iet or maybe lio config for dm-mpath testing?

The easiest bit would be set set up lio in loopback mode, and map two luns pointing to the same device.

I've attached a small script I'm using for a quick test here.

Thanks!