Project

General

Profile

Bug #36538

Fix smartd.conf being empty on first boot due to race condition

Added by Bonnie Follweiler about 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I did a "clean install" of FreeNAS 11.2-Internal 14, and imported a volume, I get a "smartd_daemon is not running" alert message
S.M.A.R.T. is running
Debug is attached

Associated revisions

Revision ee183cf9 (diff)
Added by Vladimir Vinogradenko about 2 years ago

fix(smart): Fix smartd.conf being empty on first boot due to race condition Ticket: #36538

Revision 83f6a640 (diff)
Added by Vladimir Vinogradenko about 2 years ago

fix(etc): Wait for middleware startup in ix-etc Ticket: #36538

Revision 86db2505 (diff)
Added by Vladimir Vinogradenko about 2 years ago

fix(smart): Run ix-syncdisks before generating smartd.conf Ticket: #36538

History

#1 Updated by Bonnie Follweiler about 2 years ago

  • Private changed from No to Yes

#2 Updated by Bonnie Follweiler about 2 years ago

I hope this helps: I ran
[root@freenas ~]# ps -auxwh | grep -v grep | grep smartd
root 2646 0.0 0.0 10784 5496 - Is 11:08 0:00.95 /usr/local/s
bin/smartd -n -i 1800 -c /usr/local/etc/smartd.conf
[root@freenas ~]#

#3 Updated by William Grzybowski about 2 years ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko
  • Target version changed from Backlog to 11.2-BETA2
  • Severity changed from New to Medium

#4 Updated by Bonnie Follweiler about 2 years ago

I think it just took extra long for it to start running. After creating a debug andf creating this ticket, I logged into the legacy UI and there was no alert so I logged into the new UI and the alert was gone!

#5 Updated by Vladimir Vinogradenko about 2 years ago

  • Status changed from Unscreened to In Progress

Note for testing: this only happens on first boot after fresh install

#6 Updated by Vladimir Vinogradenko about 2 years ago

  • Status changed from In Progress to Ready for Testing

#7 Updated by Dru Lavigne about 2 years ago

  • File deleted (debug(1).tgz)

#8 Updated by Dru Lavigne about 2 years ago

  • Subject changed from In a clean install of FreeNAS 11.2-Internal 14 I get a "smartd_daemon is not running" alert message to Fix smartd.conf being empty on first boot due to race condition
  • Private changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#9 Updated by Bonnie Follweiler about 2 years ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Test Passed in FreeNAS-11.2-MASTER-201807120858
(Build Date: Jul 12, 2018 12:2)

#10 Updated by Dru Lavigne about 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF