Project

General

Profile

Bug #42773

Remove redundant mrsas checks in smartd

Added by . Hokan 11 months ago. Updated 6 months ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
New
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 upgraded to the lastest FreeNAS a few days ago and now smartd isn't working. smartd.conf contains only these lines:

################################################
  1. smartd.conf generated by /etc/ix.rc.d/ix-smartd ################################################

When I copy /etc/local/smartd.conf.sample to /etc/local/smart.conf then the smartd service will start.


Related issues

Related to FreeNAS - Bug #41400: Remove redundant mrsas checksDone
Related to FreeNAS - Bug #41056: Remove redundant mrsas checksDone
Has duplicate FreeNAS - Bug #42281: Smartd fails to start on 11.1-U4 - 11.1-U5 despite disabling ALL DrivesClosed

Associated revisions

Revision cd58f8b1 (diff)
Added by Vladimir Vinogradenko 11 months ago

fix(smart): Remove redundant mrsas checks

Ticket: #42773

History

#1 Updated by . Hokan 11 months ago

  • File debug-enet-rascal-2-20180823205735.txz added
  • Private changed from No to Yes

#2 Updated by Dru Lavigne 11 months ago

  • Assignee changed from Release Council to William Grzybowski

#3 Updated by William Grzybowski 11 months ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

His disks do support SMART, is this something we have fixed for 11.2 already? Is that specific fix too intrusive for 11.1?

#4 Updated by Vladimir Vinogradenko 11 months ago

  • Status changed from Unscreened to In Progress

Investigating...

#5 Updated by Vladimir Vinogradenko 11 months ago

. Hokan, I was unable to guess why smartd.conf was empty. Can you please try running

/etc/ix.rc.d/ix-smartd start

and posting output and checking if config file is not empty?

Was it an upgrade or a fresh install by the way?

#6 Updated by Vladimir Vinogradenko 11 months ago

  • Status changed from In Progress to Blocked

#7 Updated by . Hokan 11 months ago

This was an upgrade from -U5 to -U6.

I rebooted, then ran /etc/ix.rc.d/ix-smartd start from the command prompt. It produced no output to the screen.

Again, smartd.conf contains only:

@################################################
  1. smartd.conf generated by /etc/ix.rc.d/ix-smartd
    ################################################@

#8 Updated by Vladimir Vinogradenko 11 months ago

Please post output of

camcontrol devlist -v

and

echo "select * from services_smart" | sqlite3 /data/freenas-v1.db

and

echo "select * from storage_disk" | sqlite3 /data/freenas-v1.db

#9 Updated by . Hokan 11 months ago

root@enet-rascal-2:~ # camcontrol devlist -v
scbus0 on mrsas0 bus 0:
<> at scbus0 target -1 lun ffffffff ()
scbus1 on mrsas0 bus 1:
<SEAGATE ST6000NM0095 DS22> at scbus1 target 0 lun 0 (pass0,da0)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 1 lun 0 (pass1,da1)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 2 lun 0 (pass2,da2)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 3 lun 0 (pass3,da3)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 4 lun 0 (pass4,da4)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 5 lun 0 (pass5,da5)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 6 lun 0 (pass6,da6)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 7 lun 0 (pass7,da7)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 8 lun 0 (pass8,da8)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 9 lun 0 (pass9,da9)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 10 lun 0 (pass10,da10)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 11 lun 0 (pass11,da11)
<SEAGATE ST300MM0008 TT31> at scbus1 target 12 lun 0 (pass12,da12)
<SEAGATE ST300MM0008 TT31> at scbus1 target 13 lun 0 (pass13,da13)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 14 lun 0 (pass14,da14)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 15 lun 0 (pass15,da15)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 16 lun 0 (pass16,da16)
<SEAGATE ST6000NM0095 DS22> at scbus1 target 17 lun 0 (pass17,da17)
<DP BP13G+EXP 3.31> at scbus1 target 32 lun 0 (ses0,pass18)
<> at scbus1 target -1 lun ffffffff ()
scbus2 on ahcich0 bus 0:
<> at scbus2 target -1 lun ffffffff ()
scbus3 on ahcich1 bus 0:
<> at scbus3 target -1 lun ffffffff ()
scbus4 on ahcich8 bus 0:
<> at scbus4 target -1 lun ffffffff ()
scbus5 on ahcich9 bus 0:
<> at scbus5 target -1 lun ffffffff ()
scbus6 on camsim0 bus 0:
<> at scbus6 target -1 lun ffffffff ()
scbus-1 on xpt0 bus 0:
<> at scbus-1 target -1 lun ffffffff (xpt0)

root@enet-rascal-2:~ # echo "select * from services_smart" | sqlite3 /data/freenas-v1.db
0|30|never|0|rascal-2@enet.umn.edu|0|1

@root@enet-rascal-2:~ # echo "select * from storage_disk" | sqlite3 /data/freenas-v1.db {serial_lunid}ZAD0CVCH_5000c500863a9ef7|da1|da|1|ZAD0CVCH|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CWWY_5000c500863a1343|da2|da|2|ZAD0CWWY|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CVKQ_5000c500863a8553|da3|da|3|ZAD0CVKQ|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CDH4_5000c5008638ed2b|da4|da|4|ZAD0CDH4|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0A0BM_5000c5008639dfc7|da5|da|5|ZAD0A0BM|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CMGK_5000c500863bf0cf|da6|da|6|ZAD0CMGK|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0DV5C_5000c500864119db|da7|da|7|ZAD0DV5C|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0D0DL_5000c500863e7743|da8|da|8|ZAD0D0DL|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0DB0F_5000c5008640dea3|da9|da|9|ZAD0DB0F|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CX10_5000c500863a0d4b|da10|da|10|ZAD0CX10|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CX0T_5000c500863a101b|da11|da|11|ZAD0CX0T|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CGEY_5000c500863a0aab|da14|da|14|ZAD0CGEY|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0DBH0_5000c500863d6e53|da15|da|15|ZAD0DBH0|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CPBQ_5000c500863b8caf|da16|da|16|ZAD0CPBQ|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0DTZD_5000c50086412a83|da17|da|17|ZAD0DTZD|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}ZAD0CVYX_5000c500863a62df|da0|da|0|ZAD0CVYX|6001175126016||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}S4237F0P_5000c50099c65607|da13|da|13|S4237F0P|300000000000||||Auto|Always On|Disabled|Disabled|1|||| {serial_lunid}S42364MK_5000c50099c68ebf|da12|da|12|S42364MK|300000000000||||Auto|Always On|Disabled|Disabled|1||||
@

#10 Updated by Bug Clerk 11 months ago

  • Status changed from Blocked to In Progress

#11 Updated by Vladimir Vinogradenko 11 months ago

. Hokan, thank you for your cooperation! Problem solved

You may either apply this patch https://github.com/freenas/freenas/pull/1720/files manually or just use example smartd conf.

#12 Updated by . Hokan 11 months ago

I don't have the source and so can't patch, but I commented the lines that the patch removed from /conf/base/etc/ix.rc.d/ix-smartd and rebooted. Success! smartd.conf has entries and smartd starts automatically.

#13 Updated by Dru Lavigne 11 months ago

  • Target version changed from Backlog to TrueNAS 11.1-U6.2

#14 Updated by Vladimir Vinogradenko 11 months ago

  • Has duplicate Bug #42281: Smartd fails to start on 11.1-U4 - 11.1-U5 despite disabling ALL Drives added

#15 Updated by Dru Lavigne 11 months ago

  • File deleted (debug-enet-rascal-2-20180823205735.txz)

#16 Updated by Dru Lavigne 11 months ago

  • Private changed from Yes to No

#17 Updated by Bug Clerk 9 months ago

  • Status changed from In Progress to Ready for Testing

#18 Updated by Dru Lavigne 9 months ago

  • Subject changed from smartd.conf has no entries to Remove redundant mrsas checks in smartd
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#19 Updated by Dru Lavigne 9 months ago

  • Related to Bug #41400: Remove redundant mrsas checks added

#20 Updated by Dru Lavigne 9 months ago

  • Related to Bug #41056: Remove redundant mrsas checks added

#21 Updated by Dru Lavigne 8 months ago

  • Target version changed from TrueNAS 11.1-U6.2 to 11.1-U7

#22 Updated by Caleb St. John 6 months ago

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

#24 Updated by Dru Lavigne 6 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF