smartmontools for NVMe devices

Indraneel Mukherjee <[email protected]>
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
Hi,
NVMe Spec provides for a SMART/Health Log Page. We would like to use
smartctl for reading the Health Log Page
as it is a standard OSS util for monitoring disks. I have some very basic
queries related to that.

- Does smartmontools have any support/plan for NVMe devices?

- When I run smartctl on my NVMe device, I get the following output:

[root@localhost indro]# smartctl -d scsi --all /dev/nvme0n1
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.15.7-200.fc20.x86_64] (local
build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               NVMe
Product:              Samsung xxxxxxx
Revision:             xxxx
User Capacity:        3,200,631,791,616 bytes [3.20 TB]
Logical block size:   512 bytes
Rotation Rate:        Solid State Device
Logical Unit id:      0x60025380144d31325361000000010000
Serial number:        1234
Device type:          disk
Local Time is:        Thu Oct  9 09:58:47 2014 EDT
SMART support is:     Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===

Current Drive Temperature:     59 C
Drive Trip Temperature:        238 C

Error Counter logging not supported

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging


Does this mean that the device needs to implement something like Section
4.21 in
http://www.t13.org/documents/UploadedDocuments/docs2008/D1699r6a-ATA8-ACS.pd
f ?

- Is it possible to support reading NVMe devices SMART/Health Log Page if
there is no support for SMART in the device?
Will be happy to provide a patch if there is some way to implement this for
NVMe devices without SMART support.

TIA,
-Indro


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.