Skip to content

Changes to Userspace multipath code to support lsi-rdac

Chandra Seetharaman dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3C4 Inquiry based path checkerlibcheckers/Makefile libcheckers/checkers.c libcheckers/checkers.h +2 more+129 -10 replies
2/3Fix the priority calculation to use PATH_GHOST statelibmultipath/discovery.c libmultipath/switchgroup.c+2 -20 replies
3/3Increase the wait time for device to appear in /devlibmultipath/discovery.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Changes to Userspace multipath code to support lsi-rdac

Hi All,

While working on lsi-rdac hardware handler, I found that the checkers "tur" and "readsector0" are not serving the lsi-rdac properly. Also, the storage device has a active/passive state which need to be handled properly.

So, I wrote a new path checker for lsi-rdac, to use the C4 inquiry page to get the current owner of the lun and set the state as UP(active) or GHOST(passive). Changes are in patch 1/3.

After applying the above patch, I realized the priorities are not set properly. Made some changes to use the GHOST state while setting priorities. Changes are in patch 2/3.

Debugging the above patches found that the wait time (5 seconds) in multipathd was not sufficient for the devices to appear in /dev/ It was taking about 20 seconds. Changed the wait time to be 60 seconds. Change in patch 3/3.

Please provide me with your feedback/comment on these changes regarding correctness, completeness etc.,

Thanks & regards,

chandra

Signature · 4 lines
----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [email protected]   |      .......you may get it.
----------------------------------------------------------------------