function61 / varasto

All your files in one simple, replicated, encrypted place - with built-in backups and configurable ransomware protection.
https://function61.com/varasto
Apache License 2.0
55 stars 5 forks source link

SMART data for QNAP TR-004 #87

Open joonas-fi opened 5 years ago

joonas-fi commented 5 years ago

That P.O.S. doesn't let SMART data pass through

joonas-fi commented 3 years ago

https://github.com/smartmontools/smartmontools/issues/64

https://www.reddit.com/r/DataHoarder/comments/ggf7dk/any_qnap_tr004_owners_here_please_give_me_your/

joonas-fi commented 3 years ago

Required smartctl version 7.2.

Querying:

# first drive
$ smartctl --all --device jmb39x-q,0 /dev/sda

# second drive
$ smartctl --all --device jmb39x-q,1 /dev/sda

There's a weird mismatch where where the /dev/sda actually identifies the RAID controller that hosts multiple drives, and not the drive itself, so jmb39x-q,0 can refer to /dev/sda, jmb39x-q,1 can refer to /dev/sdb and so on.

We might have to prepare for accidents (after hotplugs changing drive's hotplug port numbers) by asserting that SMART report's serial number matches with the drive that we're expecting.