summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2018-02-01 19:39:29 +0000
committermav <mav@FreeBSD.org>2018-02-01 19:39:29 +0000
commit9c92925bd58e2b070f525708061a4cc871ce7980 (patch)
tree29ab920fe0c1d1e72c9a2a3a61d8a30249481f35
parente5ec517706756ebda3d57eb992ba5c86173e5515 (diff)
downloadFreeBSD-src-9c92925bd58e2b070f525708061a4cc871ce7980.zip
FreeBSD-src-9c92925bd58e2b070f525708061a4cc871ce7980.tar.gz
MFC r313257 (by imp):
Add some descriptions to the man page for the supported log pages as well as the new wdc commands. Make wdc be an alias for hgst when specifying the vendor to use to interpret the page.
-rw-r--r--sbin/nvmecontrol/logpage.c2
-rw-r--r--sbin/nvmecontrol/nvmecontrol.823
2 files changed, 24 insertions, 1 deletions
diff --git a/sbin/nvmecontrol/logpage.c b/sbin/nvmecontrol/logpage.c
index b811cc2..eebdab9 100644
--- a/sbin/nvmecontrol/logpage.c
+++ b/sbin/nvmecontrol/logpage.c
@@ -846,6 +846,8 @@ static struct logpage_function {
sizeof(struct nvme_firmware_page)},
{HGST_INFO_LOG, "hgst", print_hgst_info_log,
DEFAULT_SIZE},
+ {HGST_INFO_LOG, "wdc", print_hgst_info_log,
+ DEFAULT_SIZE},
{INTEL_LOG_TEMP_STATS, "intel", print_intel_temp_stats,
sizeof(struct intel_log_temp_stats)},
{INTEL_LOG_READ_LAT_LOG, "intel", print_intel_read_lat_log,
diff --git a/sbin/nvmecontrol/nvmecontrol.8 b/sbin/nvmecontrol/nvmecontrol.8
index de7502c..c3b826a 100644
--- a/sbin/nvmecontrol/nvmecontrol.8
+++ b/sbin/nvmecontrol/nvmecontrol.8
@@ -62,6 +62,7 @@
.Ic logpage
.Aq Fl p Ar page_id
.Op Fl x
+.Op Fl v Ar vendor-string
.Aq device id
.Aq namespace id
.Nm
@@ -74,7 +75,7 @@
.Ic power
.Op Fl l
.Op Fl p power_state
-.Op fl w workload_hint
+.Op Fl w workload_hint
.Nm
.Ic wdc cap-diag
.Op Fl o path_template
@@ -96,6 +97,26 @@
.Sh DESCRIPTION
NVM Express (NVMe) is a storage protocol standard, for SSDs and other
high-speed storage devices over PCI Express.
+.Pp
+.Ss logpage
+The logpage command knows how to print log pages of various types.
+It also knows about vendor specific log pages from hgst/wdc and intel.
+Page 0xc1 for hgst/wdc contains the advanced smart information about
+the drive.
+Page 0xc1 is read latency stats for intel.
+Page 0xc2 is write latency stats for intel.
+Page 0xc5 is temperature stats for intel.
+Page 0xca is advanced smart information for intel.
+.Ss wdc
+The various wdc command retrieve log data from the wdc/hgst drives.
+The
+.Fl o
+flag specifies a path template to use to output the files.
+Each file takes the path template (which defaults to nothing), appends
+the drive's serial number and the type of dump it is followed
+by .bin.
+These logs must be sent to the vendor for analysis.
+This tool only provides a way to extract them.
.Sh EXAMPLES
.Dl nvmecontrol devlist
.Pp
OpenPOWER on IntegriCloud