[LU-17390] sgpdd-survey refuses to run with raw devices Created: 02/Jan/24  Updated: 02/Jan/24

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Gwen Dawes Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Lustre 2.15.3


Rank (Obsolete): 9223372036854775807

 Description   

When attempting to run sgpdd-survey on raw devices it refuses to continue after sg_readcap, returning:

read capacity(16): pass-through os error: Inappropriate ioctl for device
READ CAPACITY (16) failed: Inappropriate ioctl for device
sg_readcap failed: Inappropriate ioctl for device
sg_readcap on device localhost:/dev/raw/raw1 failed,  setting block size to 512
device localhost:/dev/raw/raw1 not big enough:  0 < 8388608.
Consider reducing $size

 

In testing this could be bypassed by commenting out the relevant device size check (lines 217-221) and sgpdd-survey proceeds normally otherwise.


Generated at Sat Feb 10 03:35:03 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.