RESOLVED: Help with errors on boot

Started by Scottp, November 08, 2021, 01:16:31 AM

Previous topic - Next topic
November 08, 2021, 01:16:31 AM Last Edit: November 15, 2021, 11:01:09 PM by Scottp
Every time my device is rebooted, I get these errors in the log. The device still works but I cannot upgrade the device to a newer version. Can anyone tell me what these lines mean?

2021-11-07T18:12:32   kernel: (ada0:ahcich1:0:0:0): RES: 71 04 00 00 00 40 00 00 00 01 00
2021-11-07T18:12:32   kernel: (ada0:ahcich1:0:0:0): ATA status: 71 (DRDY DF SERV ERR), error: 04 (ABRT )
2021-11-07T18:12:32   kernel: (ada0:ahcich1:0:0:0): CAM status: ATA Status Error
2021-11-07T18:12:32   kernel: (ada0:ahcich1:0:0:0): DSM TRIM. ACB: 06 01 00 00 00 40 00 00 00 00 01 00

Please install the os-smart plugin if you haven't already and then post the output of this command as root:
smartctl -a /dev/ada0
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

OK I am a complete noob to everything FreeBSD, I can't figure out how to install that plugin.

I logged in to the system as root, selected option 8 to use the console. The Github page seems to indicate that the install is in the "sysutils/smart" directory, but I can't find it. I looked in /usr and many other directories.

I have searched all over and find lots of discussion around the usege and problem with this plugin and it's associated widget and listing of "included plugins" but nothing on how to actually install it or where the "sysutils/smart" is located.

In the web UI navigate to System > Firmware > Plugins and install the os-smart plugin. OPNsense is an appliance with a defined feature set and a UI for everything. Using the command line can be helpful for troubleshooting - as I asked you to - but in general referring to FreeBSD documentation is neither helpful nor supported.

The SMART plugin is an official part of OPNsense, so please install that via the UI. Then use the command line for some diagnostics as I asked.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


Please use SSH and copy & paste all of the text the command outputs.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thank you so much for your patience and help.

Here is the full output:


smartctl 7.1 2019-12-30 r5022 [FreeBSD 11.2-RELEASE-p19-HBSD amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SATAFIRM   S11
Serial Number:    KCMLCCC11263554
LU WWN Device Id: 0 000000 000000000
Firmware Version: SBFMBBW3
User Capacity:    32,017,047,552 bytes [32.0 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      mSATA
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-4 (minor revision not indicated)
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Nov 15 13:58:42 2021 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
See vendor-specific Attribute list for failed Attributes.

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (65535) seconds.
Offline data collection
capabilities:                    (0x79) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  30) minutes.
Conveyance self-test routine
recommended polling time:        (   6) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       6438
12 Power_Cycle_Count       0x0012   100   100   000    Old_age   Always       -       13
168 Unknown_Attribute       0x0012   100   100   000    Old_age   Always       -       0
170 Unknown_Attribute       0x0003   000   000   010    Pre-fail  Always   FAILING_NOW 335007449104
173 Unknown_Attribute       0x0012   100   100   000    Old_age   Always       -       131075
192 Power-Off_Retract_Count 0x0012   100   100   000    Old_age   Always       -       6
194 Temperature_Celsius     0x0023   067   067   000    Pre-fail  Always       -       33 (Min/Max 33/33)
218 Unknown_Attribute       0x000b   100   100   050    Pre-fail  Always       -       0
231 Temperature_Celsius     0x0013   100   100   000    Pre-fail  Always       -       99
241 Total_LBAs_Written      0x0012   100   100   000    Old_age   Always       -       707

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


I assume that means I should be shopping for a new M.2 SSD. What's a good brand/drive for something like this? All I see on amazon in this size are no-name Chinese drives with some bad reviews (one even comes with a free virus  :P).

I have always recommended the Transcend 370 series. While not dirt cheap they are reasonably priced and have an insane TBW (write endurance) for the size.

https://de.transcend-info.com/Products/No-632
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thanks for the recommendation and again for all your help.