-
Notifications
You must be signed in to change notification settings - Fork 22
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
rescan-scsi-bus.sh: when there is a logical lun-0, testonline will spend 30s to retry-check it #24
Comments
Would something like 'if sg_inq $DEVICE | grep -q -i "PQual=0" ' work in this situation? |
it works:
|
speed testonline() function when peripheral_qualifier != 0 in the standard INQUIRY response. See: #24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@972 6180dd3e-e324-4e3e-922d-17de1ae2f315
sg3_utils revision 972 (subversion, as show in ChangeLog file) uploaded with the above change in it. Could you test it? |
I'm so sorry and embarrassed for #24 (comment). it has a code error - we should not add "[ ]". |
and I tested this shell with "scsi-rescan -a -r ",there are two iscsi links on my server, as we expected, one link reduced 30 seconds。 |
Speed multipath scans with many LUNs by caching multipath LUN info in temporary file, see: #22 Fix small bug in last commit, see: #24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@973 6180dd3e-e324-4e3e-922d-17de1ae2f315
Subversion revision 973, now mirrored here, has the above fix. Perhaps you might recheck it has been done properly. Also that revision contains the patch discussed in the issue #22 . |
speed testonline() function when peripheral_qualifier != 0 in the standard INQUIRY response. See: doug-gilbert/sg3_utils#24 Cherry-pick of 4215af6 ("rescan-scsi-bus.sh speed testonline()") git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@972 6180dd3e-e324-4e3e-922d-17de1ae2f315
Speed multipath scans with many LUNs by caching multipath LUN info in temporary file, see: doug-gilbert/sg3_utils#22 Fix small bug in last commit, see: doug-gilbert/sg3_utils#24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@973 6180dd3e-e324-4e3e-922d-17de1ae2f315
speed testonline() function when peripheral_qualifier != 0 in the standard INQUIRY response. See: doug-gilbert/sg3_utils#24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@972 6180dd3e-e324-4e3e-922d-17de1ae2f315
Speed multipath scans with many LUNs by caching multipath LUN info in temporary file, see: doug-gilbert/sg3_utils#22 Fix small bug in last commit, see: doug-gilbert/sg3_utils#24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@973 6180dd3e-e324-4e3e-922d-17de1ae2f315
In function testonline, this shell uses sg_turs to check sgdevice, but lun-0 is not always a real device, sometimes a logical one. it depends on Vendor's implementation. So could we ensure there is a real sd-device before we check it by sg_turs?
The text was updated successfully, but these errors were encountered: