Ensure the path_fail_secs is set to 120 seconds, which is the default. This is the value in seconds for which the Mass Storage Stack will wait after the first I/O has failed on the path before marking the path as offline. At least one I/O request has to succeed within X seconds for the path to be not marked as offline. In other words, if a lunpath continues to see I/O errors with no successful I/O completions for X seconds, then Mass Storage Stack marks the lunpath as offline. [Source] The command to check this attribute is as follows:
scsimgr get_attr -D /dev/rdisk/disk0 -a path_fail_secs
name = path_fail_secs
current = 120
default = 120
saved =
If you need to change it you can use this command:
scsimgr save_attr -D /dev/rdisk/disk0 -a path_fail_secs=120
Value of attribute path_fail_secs saved successfully