Fix race condition in SMART
On 11.1-U5, I have identified a drive that is not compatible with smartd (usb drive).
If I go into View Disks, under Storage and check the "Enable S.M.A.R.T." checkbox, I receive an error message in the GUI that states "The service failed to restart.". I have attached a screenshot labelled "enabling_smart.png" showing the message.
This is expected behavior. If I go back into the webUI and UNCHECK the "Enable S.M.A.R.T." checkbox I receive the same "The service failed to restart" message in the webUI. I have attached a screenshot to this ticket laballed "disabling_smart.png" showing this message.
Even though after disabling SMART for the USB drive, the smartd service starts up as usual. The cli shows the smartd process running as normal.
root@truenas:~ # ps -auxwh | grep -v grep | grep smartd
root 43394 1.5 0.0 10704 4956 - Ss 09:38 0:00.19 /usr/local/sbin/smartd -n -i 1800 -c /usr/local/etc/smartd.conf -p /var/run/smartd-daemon.pid
- Category changed from OS to Middleware
- Assignee changed from Release Council to William Grzybowski
Updated by William Grzybowski over 2 years ago
- Assignee changed from William Grzybowski to Vladimir Vinogradenko
Vladimir can you investigate why it says the service failed to start even though it did?
Updated by Vladimir Vinogradenko over 2 years ago
- Status changed from Unscreened to Ready for Testing
- Subject changed from webUI is stating smartd failed to restart when it actually did restart to Fix race condition in SMART
- Project changed from TrueNAS to FreeNAS
- Category changed from Middleware to Middleware
- Target version changed from TrueNAS-11.1-U6.1 to 11.1-U6
- Migration Needed deleted (
- Hide from ChangeLog deleted (
- Support Department Priority deleted (
- Needs Merging changed from Yes to No
Updated by Bonnie Follweiler over 2 years ago
- Status changed from Ready for Testing to Passed Testing
- Needs QA changed from Yes to No
Test Passed in FreeNAS-11.1-U6-INTERNAL3
- Status changed from Passed Testing to Done
Also available in: Atom