Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvme is comming #5

Merged
merged 2 commits into from
Feb 14, 2022
Merged

nvme is comming #5

merged 2 commits into from
Feb 14, 2022

Conversation

laa88rf
Copy link

@laa88rf laa88rf commented Mar 12, 2021

Added some information from smartctl:

root@xps:~# smartctl -a /dev/nvme0 
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-44-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       WDS500G3X0C-00SJG0
Serial Number:                      202********D8
Firmware Version:                   111110WD
PCI Vendor/Subsystem ID:            0x15b7
IEEE OUI Identifier:                0x001b44
Total NVM Capacity:                 500 107 862 016 [500 GB]
Unallocated NVM Capacity:           0
Controller ID:                      8215
Number of Namespaces:               1
Namespace 1 Size/Capacity:          500 107 862 016 [500 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            001b44 8b46ff2b25
Local Time is:                      Fri Mar 12 19:14:22 2021 +05
Firmware Updates (0x14):            2 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:         128 Pages
Warning  Comp. Temp. Threshold:     84 Celsius
Critical Comp. Temp. Threshold:     88 Celsius
Namespace 1 Features (0x02):        NA_Fields

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     5.50W       -        -    0  0  0  0        0       0
 1 +     3.50W       -        -    1  1  1  1        0       0
 2 +     3.00W       -        -    2  2  2  2        0       0
 3 -   0.0700W       -        -    3  3  3  3     4000   10000
 4 -   0.0025W       -        -    4  4  4  4     4000   40000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         2
 1 -    4096       0         1

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        47 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    0%
Data Units Read:                    1 311 979 [671 GB]
Data Units Written:                 9 020 390 [4,61 TB]
Host Read Commands:                 14 299 841
Host Write Commands:                152 114 561
Controller Busy Time:               282
Power Cycles:                       38
Power On Hours:                     955
Unsafe Shutdowns:                   17
Media and Data Integrity Errors:    0
Error Information Log Entries:      1
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0

Error Information (NVMe Log 0x01, max 256 entries)
No Errors Logged

Result:

 ./smartmon.sh 
# HELP smartmon_smartctl_version SMART metric smartctl_version
# TYPE smartmon_smartctl_version gauge
smartmon_smartctl_version{version="7.1"} 1
# HELP smartmon_47 Celsius SMART metric 47 Celsius
# TYPE smartmon_47 Celsius gauge
smartmon_47 Celsius
# HELP smartmon_available_spare_raw_value SMART metric available_spare_raw_value
# TYPE smartmon_available_spare_raw_value gauge
smartmon_available_spare_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 100
# HELP smartmon_available_spare_threshold SMART metric available_spare_threshold
# TYPE smartmon_available_spare_threshold gauge
smartmon_available_spare_threshold{disk="/dev/nvme0",type="nvme",smart_id="255"} 10
# HELP smartmon_controller_busy_time_raw_value SMART metric controller_busy_time_raw_value
# TYPE smartmon_controller_busy_time_raw_value gauge
smartmon_controller_busy_time_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 282
# HELP smartmon_device_active SMART metric device_active
# TYPE smartmon_device_active gauge
smartmon_device_active{disk="/dev/nvme0",type="nvme"} 1
# HELP smartmon_device_info SMART metric device_info
# TYPE smartmon_device_info gauge
smartmon_device_info{disk="/dev/nvme0",type="nvme",vendor="",product="",revision="",lun_id="",model_family="",device_model="",serial_number="202********8",firmware_version="111110WD"} 1
# HELP smartmon_device_smart_available SMART metric device_smart_available
# TYPE smartmon_device_smart_available gauge
smartmon_device_smart_available{disk="/dev/nvme0",type="nvme"} 0
# HELP smartmon_device_smart_enabled SMART metric device_smart_enabled
# TYPE smartmon_device_smart_enabled gauge
smartmon_device_smart_enabled{disk="/dev/nvme0",type="nvme"} 0
# HELP smartmon_device_smart_healthy SMART metric device_smart_healthy
# TYPE smartmon_device_smart_healthy gauge
smartmon_device_smart_healthy{disk="/dev/nvme0",type="nvme"} 1
# HELP smartmon_error_information_log_entries_raw_value SMART metric error_information_log_entries_raw_value
# TYPE smartmon_error_information_log_entries_raw_value gauge
smartmon_error_information_log_entries_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 1
# HELP smartmon_host_read_commands_raw_value SMART metric host_read_commands_raw_value
# TYPE smartmon_host_read_commands_raw_value gauge
smartmon_host_read_commands_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 14339025
# HELP smartmon_host_write_commands_raw_value SMART metric host_write_commands_raw_value
# TYPE smartmon_host_write_commands_raw_value gauge
smartmon_host_write_commands_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 152331211
# HELP smartmon_media_and_data_integrity_errors_count_raw_value SMART metric media_and_data_integrity_errors_count_raw_value
# TYPE smartmon_media_and_data_integrity_errors_count_raw_value gauge
smartmon_media_and_data_integrity_errors_count_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 0
# HELP smartmon_percentage_used_raw_value SMART metric percentage_used_raw_value
# TYPE smartmon_percentage_used_raw_value gauge
smartmon_percentage_used_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 0
# HELP smartmon_power_cycles_count_raw_value SMART metric power_cycles_count_raw_value
# TYPE smartmon_power_cycles_count_raw_value gauge
smartmon_power_cycles_count_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 38
# HELP smartmon_power_on_hours_raw_value SMART metric power_on_hours_raw_value
# TYPE smartmon_power_on_hours_raw_value gauge
smartmon_power_on_hours_raw_value{disk="/dev/nvme0",type="nvme",smart_id="9"} 957
# HELP smartmon_smartctl_run SMART metric smartctl_run
# TYPE smartmon_smartctl_run gauge
smartmon_smartctl_run{disk="/dev/nvme0",type="nvme"} 1615569993
# HELP smartmon_temperature_celsius_raw_value SMART metric temperature_celsius_raw_value
# TYPE smartmon_temperature_celsius_raw_value gauge
smartmon_temperature_celsius_raw_value{disk="/dev/nvme0",type="nvme",smart_id="194"} 47
# HELP smartmon_unsafe_shutdowns_count_raw_value SMART metric unsafe_shutdowns_count_raw_value
# TYPE smartmon_unsafe_shutdowns_count_raw_value gauge
smartmon_unsafe_shutdowns_count_raw_value{disk="/dev/nvme0",type="nvme",smart_id="255"} 17

not in the branch:

Data Units Read:                    1 311 979 [671 GB]
Data Units Written:                 9 020 390 [4,61 TB]
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0

@laa88rf
Copy link
Author

laa88rf commented Mar 12, 2021

Sorry. It's my first pull request.

@micha37-martins micha37-martins merged commit ca9e3ae into micha37-martins:dev Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants