Skip to content

Instantly share code, notes, and snippets.

@mkell43
Created May 11, 2021 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkell43/650b14041c1e0c8880907061a0de56b7 to your computer and use it in GitHub Desktop.
Save mkell43/650b14041c1e0c8880907061a0de56b7 to your computer and use it in GitHub Desktop.
nvme drive smarctl & nvme smart-log
[k8s:microk8s (default)]
~ via  v14.16.1
🌯 ❯ sudo nvme smart-log /dev/nvme1n1p1
Smart Log for NVME device:nvme1n1p1 namespace-id:ffffffff
critical_warning : 0
temperature : 36 C
available_spare : 100%
available_spare_threshold : 10%
percentage_used : 0%
endurance group critical warning summary: 0
data_units_read : 1,348,141
data_units_written : 4,084,807
host_read_commands : 28,060,825
host_write_commands : 159,992,093
controller_busy_time : 263
power_cycles : 90
power_on_hours : 538
unsafe_shutdowns : 39
media_errors : 0
num_err_log_entries : 4
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1 : 36 C
Temperature Sensor 2 : 35 C
Thermal Management T1 Trans Count : 0
Thermal Management T2 Trans Count : 0
Thermal Management T1 Total Time : 0
Thermal Management T2 Total Time : 0
[k8s:microk8s (default)]
~ via  v14.16.1
🌯 ❯ sudo smartctl -a /dev/nvme1n1p1
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-7614-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: Samsung SSD 970 EVO Plus 1TB
Serial Number: S59ANM0NB01329L
Firmware Version: 2B2QEXM7
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 1,000,204,886,016 [1.00 TB]
Unallocated NVM Capacity: 0
Controller ID: 4
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,000,204,886,016 [1.00 TB]
Namespace 1 Utilization: 280,085,471,232 [280 GB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 002538 5b01903e76
Local Time is: Mon May 10 20:56:49 2021 PDT
Firmware Updates (0x16): 3 Slots, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Maximum Data Transfer Size: 512 Pages
Warning Comp. Temp. Threshold: 85 Celsius
Critical Comp. Temp. Threshold: 85 Celsius
Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 7.80W - - 0 0 0 0 0 0
1 + 6.00W - - 1 1 1 1 0 0
2 + 3.40W - - 2 2 2 2 0 0
3 - 0.0700W - - 3 3 3 3 210 1200
4 - 0.0100W - - 4 4 4 4 2000 8000
Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 0
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 35 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 1,348,142 [690 GB]
Data Units Written: 4,084,837 [2.09 TB]
Host Read Commands: 28,060,827
Host Write Commands: 159,993,242
Controller Busy Time: 263
Power Cycles: 90
Power On Hours: 538
Unsafe Shutdowns: 39
Media and Data Integrity Errors: 0
Error Information Log Entries: 4
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Temperature Sensor 1: 35 Celsius
Temperature Sensor 2: 35 Celsius
Error Information (NVMe Log 0x01, max 64 entries)
No Errors Logged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment