Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sg_turs: do not report error for standby or unavailable ports #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwilck
Copy link

@mwilck mwilck commented Nov 4, 2022

This patch from @hreinecke fixes a problem where rescan-scsi-bus.sh was extremely slow because of repeated probing of standby devices in testonline. Our customer the slowness only in older releases of sg3_utils (1.43), but it should also be helpful for more recent releases.

A LUN might be in ALUA 'standby' or 'unavailable', but this is perfectly
okay and does not indicate that the device is not ready (in the sense
that a repeated call to 'sg_turs' might report different states).
So do not report an error for these devices.

Signed-off-by: Hannes Reinecke <[email protected]>
@doug-gilbert
Copy link
Owner

Thanks. Applied upstream with some documentation additions. Mirrored here and corresponds to my svn revision number 980. Does rescan-scsi-bus.sh need any changes to use these new exit status categories?

@mwilck
Copy link
Author

mwilck commented Nov 4, 2022

Does rescan-scsi-bus.sh need any changes to use these new exit status categories?

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants