alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.57k stars 224 forks source link

🐛 [Scrutiny FA] USB SSD doesnt shows #1640

Closed chertvl closed 1 day ago

chertvl commented 1 week ago

Description

Hi, Alex. Thank you for your amazing addons, I love and use ton of them!

About Scrutiny/ScrutinyFA, Is it possible to display SMART of SSD in external case connected to my Intel Nuc ?

I have Nuc10 (with HA OS installed) and 3 ssd disks:

  1. NVME in m.2 - without problems (/dev/nvme0)
  2. Sata2 2.5" with sata2 cable - works great (/dev/sda)
  3. m2sata in external case with usb3.0 - gives an error (/dev/sdb)

time="2024-11-17T19:07:59+02:00" level=error msg="Could not retrieve device information for sdb: exit status 2" type=metrics

I dont know problem is in addon or a docker cointainer, but in AnalogJ repository nothing tolds about that error, and looks like usb devices is supported. I tried non-FA and FA versions of Scrunity, same both.

Third SSD works great in SambaNAS addon and displays in haos-system. image

Reproduction steps

1. Connect SSD in external case to usb3.0 port of X86 machine
2. Restart addon

Addon Logs

AnalogJ/scrutiny/metrics                                dev-0.8.1
time="2024-11-17T19:07:59+02:00" level=info msg="Verifying required tools" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --scan --json" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --info --json /dev/sda" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Generating WWN" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --info --json --device sntrealtek /dev/sdb" type=metrics
time="2024-11-17T19:07:59+02:00" level=error msg="Could not retrieve device information for sdb: exit status 2" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --info --json --device nvme /dev/nvme0" type=metrics

Architecture

amd64

OS

HAos

github-actions[bot] commented 1 day ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

chertvl commented 1 day ago

This issue has been automatically marked as stale

This is still actual, actually ;) Ive tried many combinations with FA and nonFA versions of Scrutiny, other USB and TypeC ports, other SSD disks, NTFS and Ext4 filesystems, tried sntrealtek and other methods in addon config, but picture always the same - exit status 2, no smart data. But in all variants it works as external storage in HAOS and shows smart data when connected to Windows.

alexbelgium commented 1 day ago

Hi! It's super weird... I don't know what would be different on this specific case.

I'm getting SMART data on 2 hdd drives that are in an external USB enclosure so there is no reasons it would not work... The device type looks weird perhaps you need to define a custom one ?

chertvl commented 1 day ago

I'm getting SMART data on 2 hdd drives that are in an external USB enclosure so there is no reasons it would not work...

Hi. Then thank you very much for confirming that it should work. I will make some more attempts and write what my problem was if everything works out.

chertvl commented 1 day ago

Oh. Finally I got the S.M.A.R.T. data via USB. Apparently, the incompatibility was that when using a universal case based on RTL9210 (for NGFF/NVME) and M.2-SATA (NGFF) disks, the S.M.A.R.T. data does not reach (but it shown in windows pc). For the sake of experiment, I inserted an NVME disk - and everything worked, and on the non-FA version too. Yeah. I'll look for a new case (that easier than try to look for a reason). Sorry for bothering you and thank you very much!

alexbelgium commented 1 day ago

Glad you found the source! Funny how there is always some specific configurations leading to strange incompatibilites that make us spend so much time investigating... Guess it goes with home automation, I've spent an insane amount of time also making my own stuff work... Now that it does i'm just keeping it running while changing the minimum!