FreeBSD
From Hack Sphere Labs Wiki
Contents
Hard Drive Falls Out/Detaches
HD Problem
WD2500BEVT-75A23T0 01.01A01 ada0: - bla - detached Device bla went missing before all of the data could be written to it: expect data loss NOP. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 CAM status: ATA Status Error ATA status: d1 (BSY DRDY SERV ERR), error: 04 (ABRT ) RES: d1 04 ff ff ff ff ff ff ff ff ff Error 5, Retries exhausted NOP. ACP: 00 00 00 00 00 00 00 00 00 00 00 00 CAM status: ATA Status Error ATA status: d1 (BSY DRDY SERV ERR), error: 04 (ABRT ) RES: d1 04 ff ff ff ff ff ff ff ff ff Error 5, Retries exhausted
Solution Research
- https://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting
- https://www.google.com/search?q=freebsd+sata+timeout&ie=utf-8&oe=utf-8
Forum Posts
- https://forum.pfsense.org/index.php?topic=112455.0
- https://forums.freenas.org/index.php?threads/wd-red-western-digital-idle3-what-the-heck-which-setting-is-the-best-some-wd-blue-talk-too.43672/
Potential Solutions
- Disable Smart
- http://comments.gmane.org/gmane.os.freebsd.stable/94818
kern.cam.ada.default_timeout: 30
needo During a scrub one of my drives detached. needo Jan 1 11:36:36 arkham (aprobe0:ahcich4:0:0:0): CAM status: ATA Status Error needo Jan 1 11:36:36 arkham (aprobe0:ahcich4:0:0:0): ATA status: d1 (BSY DRDY SERV ERR), error: 04 (ABRT ) anodos needo: what type of drives / controller or hba? needo anodos: This was on the motherboard onboard sata controller a WD 6TB Red
- https://lists.freebsd.org/pipermail/freebsd-stable/2013-July/074319.html
- turn off the drives' power-saving features (this is done through a DOS utility you can download)
- Updating the firmware and increasing the timeout before these spin down automagically is likely to help, but as Andrea noted, such drives do have quite a history of timeout problems due to excessive head parking and their power conservation attempts.
SSD
- Intel, Crucial, Samsung
Notes
- https://lists.freebsd.org/pipermail/freebsd-questions/2014-May/258087.html
- https://forums.freenas.org/index.php?threads/cam-errors-icrc-abrt-drd-serv-err.17369/
- http://www.ebay.com/itm/Sandisk-SDSA5AK-016G-1014-16G-SSD-w-Caddy-100-Healthy-/331837563630?hash=item4d430f62ee:g:ByYAAOSwubRXGTye
ada vs ahci
- https://www.freebsd.org/cgi/man.cgi?query=ada
- loader.conf and sysctl vars
sysctl kern.cam.ada.default_timeout=60 sysctl kern.cam.ada.retry_count=20
THE SOLUTION?
https://community.wd.com/t/new-wd30efrx-red-drive-idle3-timer-set-to-8-seconds-high-lcc-in-nas/16808 wdidle3.exe /D
Problem with solution and new problem
Another Issue WD Red
Be warned, I used the wdidle3 utility on my 68EUZN0 drive to disable the head parking, but it did the opposite: it was cycling every second and ticking like a clock! I rebooted and set the timer to max (300s) and all seems well for now.
Out of interest did the reported Load Cycle Count increase aswell? When you say it was ticking like a clock, I presume you mean that the drive was making clicking noises like a clock when it parked the heads (or do you mean that the LCC was ticking over every second like a clock lol)?
Yes, I took a screenshot of the LCC using Crystal Disk Info both before I disabled the timer and after.
Pay attention to: Load_Cycle_Count
HD Problem Continue
- WDRed Utilities?: https://forums.freenas.org/index.php?threads/hacking-wd-greens-and-reds-with-wdidle3-exe.18171/
- http://idle3-tools.sourceforge.net/
- http://man7.org/linux/man-pages/man8/hdparm.8.html
-J Get/set the Western Digital (WD) Green Drive's "idle3" timeout value. This timeout controls how often the drive parks its heads and enters a low power consumption state. The factory default is eight (8) seconds, which is a very poor choice for use with Linux. Leaving it at the default will result in hundreds of thousands of head load/unload cycles in a very short period of time. The drive mechanism is only rated for 300,000 to 1,000,000 cycles, so leaving it at the default could result in premature failure, not to mention the performance impact of the drive often having to wake-up before doing routine I/O. WD supply a WDIDLE3.EXE DOS utility for tweaking this setting, and you should use that program instead of hdparm if at all possible. The reverse-engineered implementation in hdparm is not as complete as the original official program, even though it does seem to work on at a least a few drives. A full power cycle is required for any change in setting to take effect, regardless of which program is used to tweak things. A setting of 30 seconds is recommended for Linux use. Permitted values are from 8 to 12 seconds, and from 30 to 300 seconds in 30-second increments. Specify a value of zero (0) to disable the WD idle3 timer completely (NOT RECOMMENDED!).
- Do not run WDIDLE3 /D on the new Western Digital EZRX drives
- https://lime-technology.com/forum/index.php?topic=15554.0
- So... word of warning If you have a WD--EZRX drive and tend to run WDIDLE3 to reduce LLC counts - Run it with /S300 and not /D!
- However, there have been many recent reports that people have witnessed disk parking activity on their 4TB WD Reds. Some have checked, using WDIDLE3, if head parking was disabled and to their dismay it wasn't and worse yet the idle period was set to 8 seconds. [1]
- From what i know, all WD Green drives with IntelliPark suffer from this "design decision".[2]
- https://community.wd.com/t/new-wd30efrx-red-drive-idle3-timer-set-to-8-seconds-high-lcc-in-nas/16808?page=2
The answer?
- https://forums.freenas.org/index.php?threads/wd-utility-for-red-drives-with-high-load-cycle-counts.18095/
- I have provided you a link to the tool to change the time for the Park Cycle from 8 seconds to 300 seconds on your red drive.
- wd5741
- http://support.wdc.com/download/notes/Disclaimer_of_Liability_WD_RED_Utility_As-is.pdf
- https://community.wd.com/t/new-release-wd-red-smart-load-unload-utility-1-21-14/18227#M425
- Compile and Using idle3-tools: https://community.netgear.com/t5/New-to-ReadyNAS/HOWTO-Disable-WD-IDLE3-via-ReadyNAS/td-p/894601
- Intellipark sucks?
The Why
For those with some WD Reds, apparently not. I think it goes like this.. - WD Reds introduced to market in 2012. Everything is fine. (I'll call these drives group 1) - WD Red drives manufactured around Sept-Dec 2013 changed to having an 8 second idle park(normally I'd call it intellipark, but I don't think that term is appropriate for WD Reds). wdidle3 works on these drives. (I'll call these drives group 2) - At some point people complained, WD backtracked and changed it to 300 seconds(or disabled... not sure which). Likely Dec-2013/Jan-2014. (I'll call these drives group 3) - January 2013 WD released the tool for WD Reds(compatible with linux and windows.. woohoo?) called wd5741 If you are in group 1, this stuff doesn't matter. If you are in group 2, you have an 8 second delay. wdidle3.exe works and the new wd5741 *may* NOT work. If you are in group 3, you have a 300 second delay(or its disabled.. not sure which exactly), and both wdidle3 and wd5741 *should* work. This is simplified down horribly, and some info may be inaccurate. The bottom line is you should follow my guide if you have any question about what to do. It's all explained there.
Links
- https://community.wd.com/t/new-wd30efrx-red-drive-idle3-timer-set-to-8-seconds-high-lcc-in-nas/16808
- https://forums.freenas.org/index.php?threads/hacking-wd-greens-and-reds-with-wdidle3-exe.18171/
- https://www.freebsd.org/cgi/man.cgi?query=ada&sektion=4
- http://freebsd.1045724.n5.nabble.com/ada-drives-keep-timing-out-td5990448.html
- https://forums.freebsd.org/threads/43218/
- https://www.freebsd.org/cgi/man.cgi?query=camcontrol&sektion=8
- https://forums.freebsd.org/threads/17445/
- http://www.yosbits.com/opensonar/rest/man/freebsd/man/en/man4/ahci.4.html
- https://wiki.freebsd.org/TuningPowerConsumption
- https://www.google.com/search?q=freebsd+disable+drive+spindown&ie=utf-8&oe=utf-8
- https://forums.whirlpool.net.au/archive/2197640
- https://www.dslreports.com/forum/r22845466-Equipment-question-about-cradlepoint-routers-or-similar
- https://forum.synology.com/enu/viewtopic.php?t=37967&start=15
- https://forum.synology.com/enu/viewtopic.php?t=41515
- http://www.storagereview.com/how_to_stop_excessive_load_cycles_on_the_western_digital_2tb_caviar_green_wd20ears_with_wdidle3
- https://www.techpowerup.com/forums/threads/warning-older-wd-blue-hdds-have-idle3-at-12-8-sec-wd10ezex.215633/
- http://www.poweradded.net/2009/08/idle3-disabling-not-working-for-some-wd.html
- https://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting
- https://www.google.com/search?q=freebsd+sata+timeout&ie=utf-8&oe=utf-8
- http://linux-bsd-sharing.blogspot.com/2009/03/howto-fix-sata-dma-timeout-issues-on.html
- https://lists.freebsd.org/pipermail/freebsd-hackers/2012-July/040061.html
- https://www.google.com/search?q=freebsd+sata+timeout&ie=utf-8&oe=utf-8