multipathing pending issues with rhel
Ben,
I'd like to summarize all the issues I raised recently through my employers support channel on the multipath subsystem. And see if something can be done about it, at least in the upstream concerned codebases.
1/ multipathd private namespace pins lvm2 logical volumes maps mounted at daemon startup, thus making "vgchange -ay" fail, even after umounting the visible mount. In my context, it also means I can't stop a clustered service build on this vg to start it on another node. This problem does not affect upstream which does not create a private namespace.
2/ can't map a rw multipath over read-only paths. Quick workaround to create ro multipath, but ro->rw promotion is not automatic when paths become writable. I keep thinking we should allow rw multipath over ro paths. The ro->rw event might also work, but what will trigger the kernel rw status change in the first place ? To my knowledge, only a manual scsi device rescan can force this status update ... which accounts for a less user-friendly solution than the former.
3/ Can't use scsi-3 persistent reservations on clariion multipathed luns : paths reserved on node A, writes submitted on node B should be errored immediately to ensure data integrity. Instead, writes get buffered in the "queue_if_no_path" logic, and finally corrupt the data when reservation get cleared. In my context, reservation is the prefered io fencing method for clusters.
The kernel knows the write io submitted on a path is refused due to a reservation conflict, but this status is not propagated to multipath for it to react by not queuing this io as it should.
Regards,
cvaroqui
Benjamin Marzinski
maintainerQuoted 7 lines · Christophe Varoqui
Ben,
I'd like to summarize all the issues I raised recently through my employers support channel on the multipath subsystem. And see if something can be done about it, at least in the upstream concerned codebases.
Quoted 6 lines
1/ multipathd private namespace pins lvm2 logical volumes maps mounted at daemon startup, thus making "vgchange -ay" fail, even after umounting the visible mount. In my context, it also means I can't stop a clustered service build on this vg to start it on another node. This problem does not affect upstream which does not create a private namespace.
This already has a fix queued for 5.3. Multipathd now unounts all of the unnecessary mount points after creating the private namespace.
Quoted 8 lines
2/ can't map a rw multipath over read-only paths. Quick workaround to create ro multipath, but
ro->rwpromotion is not automatic when paths become writable. I keep thinking we should allow rw multipath over ro paths. Thero->rwevent might also work, but what will trigger the kernel rw status change in the first place ? To my knowledge, only a manual scsi device rescan can force this status update ... which accounts for a less user-friendly solution than the former.
The workaround is in place for 5.3, but I fully agree that a kernel patch to allow rw maps on top of ro devices is the way to go in the future.
Quoted 12 lines
3/ Can't use scsi-3 persistent reservations on clariion multipathed luns : paths reserved on node A, writes submitted on node B should be errored immediately to ensure data integrity. Instead, writes get buffered in the "
queue_if_no_path" logic, and finally corrupt the data when reservation get cleared. In my context, reservation is the prefered io fencing method for clusters.
The kernel knows the write io submitted on a path is refused due to a reservation conflict, but this status is not propagated to multipath for it to react by not queuing this io as it should.Regards,
cvaroqui
Quoted 8 lines · Benjamin Marzinski
Quoted 7 lines · Christophe Varoqui
Ben,
I'd like to summarize all the issues I raised recently through my employers support channel on the multipath subsystem. And see if something can be done about it, at least in the upstream concerned codebases.
Quoted 7 lines
Quoted 6 lines
1/ multipathd private namespace pins lvm2 logical volumes maps mounted at daemon startup, thus making "vgchange -ay" fail, even after umounting the visible mount. In my context, it also means I can't stop a clustered service build on this vg to start it on another node. This problem does not affect upstream which does not create a private namespace.
errata: "vgchange -an", though it's clear you read it as I meant :)
Quoted 3 lines
This already has a fix queued for 5.3. Multipathd now unounts all of the unnecessary mount points after creating the private namespace.
Good to know, thanks for this update.
Quoted 10 lines
Quoted 9 lines
2/ can't map a rw multipath over read-only paths. Quick workaround to create ro multipath, but
ro->rwpromotion is not automatic when paths become writable. I keep thinking we should allow rw multipath over ro paths. Thero->rwevent might also work, but what will trigger the kernel rw status change in the first place ? To my knowledge, only a manual scsi device rescan can force this status update ... which accounts for a less user-friendly solution than the former.
Quoted 4 lines
The workaround is in place for 5.3, but I fully agree that a kernel patch to allow rw maps on top of ro devices is the way to go in the future.
Glad we share this point of view. Will you propose patches for inclusion upstream ? Which update level do you estimate will include this fix ?
Quoted 10 lines
Quoted 10 lines
3/ Can't use scsi-3 persistent reservations on clariion multipathed luns : paths reserved on node A, writes submitted on node B should be errored immediately to ensure data integrity. Instead, writes get buffered in the "
queue_if_no_path" logic, and finally corrupt the data when reservation get cleared. In my context, reservation is the prefered io fencing method for clusters.
The kernel knows the write io submitted on a path is refused due to a reservation conflict, but this status is not propagated to multipath for it to react by not queuing this io as it should.
This one is hard to understand, I empatize. Nonetheless it deserves attention, as it is a data-corrupter for the clients using, or eager to use, persistent reservations on these widespread Clariion arrays. I know Mike Christie already tried to address the issue years ago ... he might be willing to take over again. (hope)
Quoted 2 lines
Quoted 2 lines
Regards,
cvaroqui
Quoted 75 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Christophe Varoqui
Sent: Wednesday, October 08, 2008 7:07 PM
To: Benjamin Marzinski
Cc: [email protected]
Subject: [dm-devel] Re: multipathing pending issues with rhelQuoted 6 lines · Benjamin Marzinski
Quoted 5 lines · Christophe Varoqui
Ben,
I'd like to summarize all the issues I raised recently through my employers support channel on the multipath subsystem. And see if something can be done about it, at least in
the upstream
Quoted 7 lines
Quoted 7 lines
concerned codebases.
1/ multipathd private namespace pins lvm2 logical volumes maps mounted at daemon startup, thus making "vgchange -ay" fail, even after umounting the visible mount. In my context, it also means I can't stop a clustered service build on this vg to start it on another node. This problem does not affect upstream which
does not
Quoted 2 lines
Quoted 1 line
create a private namespace.
errata: "vgchange -an", though it's clear you read it as I meant :)
Quoted 1 line
This already has a fix queued for 5.3. Multipathd now
unounts all of
Quoted 2 lines
the unnecessary mount points after creating the private namespace.
Good to know, thanks for this update.
Quoted 2 lines
Quoted 2 lines
2/ can't map a rw multipath over read-only paths. Quick
workaround
Quoted 1 line
Quoted 1 line
to create ro multipath, but
ro->rwpromotion is notautomatic when
Quoted 1 line
Quoted 1 line
paths become writable. I keep thinking we should allow rw
multipath
Quoted 4 lines
Quoted 4 lines
over ro paths. The
ro->rwevent might also work, but what will trigger the kernel rw status change in the first place ? To my knowledge, only a manual scsi device rescan can force this status update ... which accounts for a less user-friendlysolution than the
Quoted 6 lines
Quoted 1 line
former.
The workaround is in place for 5.3, but I fully agree that a kernel patch to allow rw maps on top of ro devices is the way to go in the future.
Glad we share this point of view. Will you propose patches for inclusion upstream ? Which update level do you estimate will include this fix ?
Quoted 1 line
Quoted 1 line
3/ Can't use scsi-3 persistent reservations on clariion
multipathed
Quoted 1 line
Quoted 1 line
luns : paths reserved on node A, writes submitted on node
B should
Quoted 1 line
Quoted 1 line
be errored immediately to ensure data integrity. Instead,
writes get
Quoted 2 lines
Quoted 2 lines
buffered in the "
queue_if_no_path" logic, and finally corrupt the data when reservation get cleared. In my context,reservation is the
Quoted 2 lines
Quoted 2 lines
prefered io fencing method for clusters.
The kernel knows the write io submitted on a path isrefused due to
Quoted 3 lines
Quoted 3 lines
a reservation conflict, but this status is not propagated to multipath for it to react by not queuing this io as it should.
Quoted 7 lines
This one is hard to understand, I empatize. Nonetheless it deserves attention, as it is a data-corrupter for the clients using, or eager to use, persistent reservations on these widespread Clariion arrays. I know Mike Christie already tried to address the issue years ago ... he might be willing to take over again. (hope)
I think I inadvertantly made this matter worse about two years ago when I changed the clariion path checker to issue a scsi read via sg_read in libsg.c after inquiry page 0xc0 in order to discern an inactive from an active clariion snapshot logical unit. This change to multipath-tools/libcheckers/emc_clariion.c causes a path check on a path to incur a reservation error if the reservation is held by a different I/T nexus.
A reasonable fix for this problem is to have sg_read in multipath-tools/libcheckers/libsg.c return PATH_UP even if the return value from ioctl is < 0 if the returned scsi status in io_hdr.status is SAM_STAT_RESERVATION_CONFLICT.
The dm-mpath.c
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Regards,
cvaroqui--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel