Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Lustre 2.6.0
-
11538
Description
Use case: Running sgpdd-survey against devices that do not support the sg_readcap query.
Scenario 1: Running sgpdd-survey against a md (software) RAID device.
Expectation: When sg_readcap fails to read from the device, sgpdd-survey should exit with an appropriate message and exit code.
Notes: The sg_readcap command is called twice in sgpdd-survey. The first time it fails a default value of 512 is assigned to block size. After it fails on the second invocation, sgpdd-survey exits with an erroneous suggestion.
Implementation: Suggest that sgpdd-survey exit with an appropriate message after the first failure of sg_readcap.