About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
On an NVMe drive, a non-zero Critical Warning byte makes smartctl 7.3 print SMART overall-health self-assessment test result: FAILED!. The byte is a set of bits, each defined in the NVM Express specification, so read which bit is set before deciding anything. Percentage Used and Media and Data Integrity Errors are separate fields with their own meanings. Copy the data off first if the warning is set, then read the fields.
What the symptom means
The fields come from the SMART / Health Information log (Log Identifier 02h). The NVM Express Base Specification 2.0c says the information is "over the life of the controller and is retained across power cycles unless otherwise specified".
Critical Warning is a byte. In the specification's words, "Each bit corresponds to a critical warning type". More than one bit can be set at once. The bits are:
| Bit | Meaning in the specification |
|---|---|
| 0 | The available spare capacity has fallen below the threshold |
| 1 | A temperature is greater than or equal to an over temperature threshold, or less than or equal to an under temperature threshold |
| 2 | The NVM subsystem reliability has been degraded due to significant media related errors or any internal error that degrades NVM subsystem reliability |
| 3 | All of the media has been placed in read only mode |
| 4 | The volatile memory backup device has failed; valid only if the controller has a volatile memory backup solution |
| 5 | The Persistent Memory Region has become read-only or unreliable |
The specification adds that the bits "represent the state at the time the Get Log Page command is processed", so the byte describes the state when the log is read.
What smartctl 7.3 does with it. The manual says NVMe status "is obtained by reading the "Critical Warning" byte from the SMART/Health Information log". In the 7.3 source, print_critical_warning prints PASSED when the byte is zero and FAILED! for any non-zero value, then one line per bit, for example - available spare has fallen below threshold, - temperature is above or below threshold, - NVM subsystem reliability has been degraded and - media has been placed in read only mode. The same code adds the failing-status flag to the exit status, which the manual describes as bit 3: "SMART status check returned "DISK FAILING"". Bit 3 has the value 8. This reading is of the 7.3 source and can change between releases.
Percentage Used is, in the specification's words, "a vendor specific estimate of the percentage of NVM subsystem life used based on the actual usage and the manufacturer’s prediction of NVM life." It continues: "A value of 100 indicates that the estimated endurance of the NVM in the NVM subsystem has been consumed, but may not indicate an NVM subsystem failure. The value is allowed to exceed 100." Percentages greater than 254 are shown as 255.
Media and Data Integrity Errors is "the number of occurrences where the controller detected an unrecovered data integrity error." The specification says errors "such as uncorrectable ECC, CRC checksum failure, or LBA tag mismatch are included in this field".
Available Spare and Available Spare Threshold are normalised percentages (0% to 100%). Critical warning bit 0 means the available spare capacity has fallen below the threshold.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| Spare capacity below threshold (bit 0) | Critical Warning bit 0; smartctl line about available spare | Compare Available Spare with Available Spare Threshold |
| Temperature outside thresholds (bit 1) | Critical Warning bit 1 | Read Temperature; smartctl -c shows the controller's temperature thresholds |
| Reliability degraded (bit 2) | Critical Warning bit 2; the media error count may be above 0 | Read Media and Data Integrity Errors and the error log |
| Media read-only (bit 3) | Writes fail; Critical Warning bit 3 | Critical Warning byte; smartctl line about read only mode |
| Endurance consumed | Percentage Used at or above 100; Critical Warning may be 0x00 |
Read Percentage Used; read the specification's caveat above |
| Unrecovered integrity errors with no warning | Media and Data Integrity Errors above 0 |
Compare the count over time; read smartctl -l error |
Prove the cause before changing anything
All of these read from the drive. Run them as root or with sudo. The manual says to use "/dev/nvme[0-9]" (broadcast namespace) or "/dev/nvme[0-9]n[1-9]" (specific namespace 1-9) for NVMe devices.
1. Read everything smartctl prints for NVMe. The manual says that for NVMe, -a (and -x) is equivalent to -H -i -c -A -l error.
smartctl -a /dev/nvme0
A good result shows PASSED, Critical Warning of 0x00, and no listed warning lines. A bad result shows FAILED! followed by a line for each set bit.
2. Read the verdict and exit status together.
smartctl -H /dev/nvme0; echo "exit status $?"
Exit status 0 means nothing was flagged. If the Critical Warning byte is non-zero, the value includes 8.
3. Read the error log. The manual says -l error prints "the NVMe Error Information log" and that "Only the 16 most recent log entries are printed by default."
smartctl -l error /dev/nvme0
4. Read the log a second way for your record. The nvme-cli documentation gives this example and notes that the structure can also be printed raw.
nvme smart-log /dev/nvme0
5. Save the output.
smartctl -a /dev/nvme0 > /root/nvme0-smart.2026-12-02.txt
Fix
TrueNAS's troubleshooting flowchart treats a SMART status of "FAIL, Media Error, or Critical Warning" with the instruction: "Back up your data, then consider replacing the drive."
Protect the data
Copy or back up the data before any other step, and check that the copy can be restored. A failing disk in a Linux server: image it before you repair it explains imaging with a mapfile for a single failing disk.
Act on the field
- Bit 1, temperature: the specification defines the bit only by thresholds. Check the drive's cooling and the server's airflow (our own advice) and read
Temperatureagain after the load drops. - Bit 0, 2 or 3, spare, reliability or read-only media: treat as a replacement case once the data is safe (our own advice, in line with TrueNAS's "consider replacing the drive").
- Percentage Used at or above 100 with Critical Warning 0x00: the specification says this "may not indicate an NVM subsystem failure". Plan a replacement and keep a verified backup (our own advice); there is no warning bit to clear.
- Media and Data Integrity Errors above 0: note the count and read it again later. The specification does not give a count that is acceptable.
Replace the drive
Follow the server or enclosure vendor's procedure for your form factor. First save the current state:
smartctl -a /dev/nvme0 > /root/nvme0-before-replace.2026-12-02.txt
Disruptive step: the next step takes the NVMe drive out of service and removes it from the server. Anything stored only on that drive is unavailable until it is refitted or restored, and a drive that is part of an array or boot path can stop the server from starting. Our own note: a server may need a shutdown first, so follow the server vendor's procedure.
Replace the drive using your hardware vendor's instructions, then restore or rebuild the data onto the new drive.
To back out: if the removed drive still responds, refit it in the same slot, start the system, and compare smartctl -a /dev/nvme0 with /root/nvme0-before-replace.2026-12-02.txt. If it does not respond, restore from the verified copy.
Example (illustrative): db01 has /dev/nvme0. smartctl -H /dev/nvme0; echo "exit status $?" prints FAILED! and the line - NVM subsystem reliability has been degraded, and the exit status is 8. The Critical Warning byte is 0x04: binary 0100, so bit 2 only. Media and Data Integrity Errors is 3, Percentage Used is 12%, and Available Spare is above its threshold. Data Units Written is 40,000,000; smartctl 7.3 multiplies the count by 1,000 x 512 bytes, so 40,000,000 x 1,000 x 512 = 20,480,000,000,000 bytes, or 20.48 TB (decimal). Low wear but a reliability warning: the engineer treats it as a replacement case, copies the data first, and saves the output before the swap.
Confirm the fix
- On the new drive,
smartctl -a /dev/nvme0showsPASSEDandCritical Warningof0x00. Media and Data Integrity Errorsis 0, andsmartctl -l errorlists no new entries.Percentage UsedandData Units Writtenare low, and match a new drive.- The restored data has been checked at the application level, which smartctl cannot do.
What to watch afterwards
- Read the Critical Warning byte on every NVMe drive in the fleet, and keep the saved output so you can compare
Percentage UsedandMedia and Data Integrity Errorsover time. - Temperature changes after a change in load or airflow.
- Because the specification says the byte shows state "at the time the Get Log Page command is processed", a warning that came and went still deserves a look at the error log.
Read next
Related articles you may want next.
- Troubleshootingsmartctl "SMART overall-health self-assessment test result: FAILED!": what the verdict means and what to do firstsmartctl says SMART overall-health self-assessment test result: FAILED!? Protect the data, then read the exit status, attributes and logs.Read article
- TroubleshootingSMART attribute 199 UDMA_CRC_Error_Count keeps rising: what it means and the cable checkSMART 199 UDMA_CRC_Error_Count rising? It points at the link between drive and controller. Take readings, check the log, then replace the cable.Read article
- Backup & RecoveryA failing disk in a Linux server: image it before you repair itWhy a failing Linux disk should be imaged before repair: SMART evidence, ddrescue and its mapfile, read-only checks, and repairing the copy, not the original.Read article
Risks and limits
- These commands have not been run or lab-tested.
Percentage Usedis a vendor-specific estimate. The specification points to the JEDEC JESD218A standard for SSD life and endurance measurement techniques but gives no replacement threshold, so none is given here.- The specification does not say how many media errors are acceptable.
- The exit status and message text come from smartmontools 7.3. Other releases may differ, and a drive behind a hardware RAID controller or USB bridge may need a device type.
- Some NVMe drives do not support every Critical Warning bit; for bit 4 the specification says the field is valid only if the controller has a volatile memory backup solution.
Sources
- NVM Express Base Specification, Revision 2.0c — NVM Express, Inc., dated 4 October 2022, accessed 2 December 2026
- smartctl(8) — Debian Manpages, bookworm (smartmontools 7.3-1+b1), source updated 16 October 2022, accessed 2 December 2026
- nvmeprint.cpp — smartmontools project source repository, tag RELEASE_7_3, no date shown, accessed 2 December 2026
- smartctl.h — smartmontools project source repository, tag RELEASE_7_3, no date shown, accessed 2 December 2026
- nvme-smart-log(1) — nvme-cli project, tag v2.9.1, no date shown, accessed 2 December 2026
- Drive Troubleshooting Flowchart — TrueNAS Documentation Hub, last modified 8 April 2026, accessed 2 December 2026
This article was originally published on .