Task
When the link between the two controllers of a storage system broke, servers got write errors. I fixed the order of path switching, and the errors went from 226 to 0.
When the link between the two controllers of a storage system broke, servers got write errors. I fixed the order of path switching, and the errors went from 226 to 0.
The storage system runs the company's own RAID, a way to spread data over many disks, active on both controllers at once. A thin volume, one that takes disk space only as data is written, was served through the controller that did not own it. When the link between controllers failed, servers writing to it got errors.
The old order of switching access paths removed every usable path on the server side for a moment.
I lined up the state of the management service, the service that serves volumes, the multipath layer that keeps several paths to a volume, and the load. Under load the old order gave a few seconds without paths and 226 write errors. A variant on ALUA, the standard by which a storage system tells servers which path to use, with paths in a transitional state, gave zero errors and a short pause. I located the cause and changed the order of path switching.
Under load on a physical stand. On link recovery the old code gave 613 write errors and a 17 second pause; with the fix it was 0 errors and 2.5 seconds.
Write errors on a full link failure went from 226 to 0, and the fix is merged. Kernel errors seen on recovery went to the team that owns that layer.