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

[BUG] No data for USB external drive #266

Closed
mhbates opened this issue May 28, 2022 · 9 comments · Fixed by #328
Closed

[BUG] No data for USB external drive #266

mhbates opened this issue May 28, 2022 · 9 comments · Fixed by #328
Labels
bug Something isn't working waiting for response

Comments

@mhbates
Copy link

mhbates commented May 28, 2022

Describe the bug
Seagate external drive is listed but shows no data. It's a Seagate 14TB Expansion drive.

Screenshots
image

Log Files
time="2022-05-28T14:44:40Z" level=info msg="Executing command: smartctl --info -j -d sat /dev/sdg" type=metrics time="2022-05-28T14:44:40Z" level=error msg="Could not retrieve device information for sdg: exit status 2" type=metrics time="2022-05-28T14:45:43Z" level=error msg="no device WWN detected for sdg. Skipping collection for this device (no data association possible).\n" type=metrics

@mhbates mhbates added the bug Something isn't working label May 28, 2022
@AnalogJ
Copy link
Owner

AnalogJ commented May 28, 2022

@mhbates can you take a look at this issue: #255

When you run smartctl manually (with the addl flags) does everything work?

smartctl /dev/sdg -a -v 1,raw48:54 -v 7,raw48:54

@mhbates
Copy link
Author

mhbates commented May 28, 2022

@AnalogJ Thanks for the quick response. No, it throws this:

Read Device Identity failed: scsi error unsupported field in scsi command
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

@AnalogJ
Copy link
Owner

AnalogJ commented May 28, 2022

Oh, i just noticed that you said it was an external Seagate 14TB Expansion drive.
Have you shucked it, and connected it via a SATA connector? or is it connected via USB?

@mhbates
Copy link
Author

mhbates commented May 28, 2022

It's connected via USB. Do these just not support SMART?

@AnalogJ
Copy link
Owner

AnalogJ commented May 28, 2022

someone on Reddit with a similar issue mentioned that adding -T permissive worked for them. Can you try that?

smartctl (which Scrutiny uses under the hood) supports USB drives, but IIRC it doesn't detect them automatically.

@mhbates
Copy link
Author

mhbates commented May 28, 2022

Still no luck, see screenshot below. I also found this Reddit thread, which has me thinking that when connected via USB, SMART just won't work: https://www.reddit.com/r/DataHoarder/comments/nc392f/how_can_i_read_the_smart_data_of_a_16_tb_seagate/

image

@AnalogJ
Copy link
Owner

AnalogJ commented May 28, 2022

You may need to play around with different --device, -d flag options to figure out which one works for your USB device:

https://webcache.googleusercontent.com/search?q=cache:HSSoogXbzrMJ:https://www.smartmontools.org/wiki/Supported_USB-Devices+&cd=1&hl=en&ct=clnk&gl=us&client=firefox-b-1-d

Try -d sat -T permissive and see if that works

@AnalogJ
Copy link
Owner

AnalogJ commented Jun 1, 2022

worst case you can try this:

https://github.com/AnalogJ/scrutiny/blob/beta/docs/TROUBLESHOOTING_DEVICE_COLLECTOR.md#volume-mount-all-devices-dev---privileged

Its the least secure option, but you can use it to run smartctl without any of the restrictions that docker imposes.

@ViRb3
Copy link

ViRb3 commented Jun 2, 2022

External HDDs support two modes of operation usb-storage (old, slower, stable) and uas (new, faster, sometimes unstable). On some external HDDs, uas mode does not properly pass through SMART information, or even causes hardware issues, so it has been disabled by the kernel. No amount of smartctl parameters will fix this, as it is being rejected by the kernel. This is especially true with Seagate HDDs. One solution is to force these devices into usb-storage mode, which will incur some performance penalty, but may work well enough for you. More info:

@AnalogJ AnalogJ changed the title [BUG] No data for Seagate external drive [BUG] No data for USB external drive Jun 11, 2022
AnalogJ added a commit that referenced this issue Jul 10, 2022
fixes #266

added solaris to supported os list.
@AnalogJ AnalogJ mentioned this issue Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for response
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants