Open ciscam opened 2 years ago
Excellent! I unfortunately forgot about this and no longer have SAS drives to work with, but glad to see this getting worked on.
EDIT: Actually, I do have some SAS drives I'll be replacing with SATA, so I'll run this on those and see how it goes.
I came here with the same need for SAS support and am testing this patch out now, but I wanted to suggest that perhaps a better way forward is to make use of the smartctl --json
option. I don't know how widely spread that feature is across all the platforms this package supports, but it works on FreeBSD 11.4.
I still have one SAS drive model lying around for testing and would be open to contributing to a rewrite. @Spearfoot seems to be inactive since 10/2021, though...
@ciscam your version is working brilliantly for me. I have 5 SAS WD Ultrastor's from 2018 that I got from eBay.... 50k hours, 17 power cycles.
Script is working great.
Shame @Spearfoot seems to no longer be maintaining this repo.
We might look into forking?
I apologize for letting this project wither for lack of attention... Work and Life have gotten in the way.
Thanks for the kind words @gfilicetti. I'm more grateful than anything for the work you saved me with this very useable project @Spearfoot. Thank you for sharing.
I also have had success with SAS drives using ciscam's PR, after original script errored out. Thank you @ciscam!
I have done 2 types of drives (4 drives total)...
2x of 6 TB Seagate Exos Enterprise Drive Model: ST6000NM0095
2x of 12 TB HGST WD Ultrastar DC HC520 Drive Model: HUH721212AL4200
Problem: In the current version, my SAS drive had empty fields:
Assumptions:
Actions:
Remaining problems:
Propositions:
INFO ABOUT RUNNING TEST: SAS running short test
SAS not running short test: "Self-test execution status" line is missing
ATA running extended test:
ATA drive after abort:
ATA drive after successful short test:
SMART INFO ON SAS DRIVE
FYI:
FYI to get info like ATA "reallocated sector" or "pending sector" os SAS devices: