nvmeのsmartから寿命を見るのは、Linuxでは多少の苦労を伴うようです。
しかし、2つのコマンドを駆使するとわかるようです。
自分の場合、書き込み量のsmartの結果がエラーで見れません。でも直すのも敷居が高そうなので、別の方法で読んでみます。
http://builds.smartmontools.org/ から適宜ツールをダウンロード
[email protected]:/tmp/usr/local/sbin# nvme smart-log /dev/nvme0n1
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning : 0
temperature : 34 C
available_spare : 100%
available_spare_threshold : 4%
percentage_used : 4%
data_units_read : 2,591,389
data_units_written : 11,044,311
host_read_commands : 19,218,485
host_write_commands : 112,267,107
controller_busy_time : 11,194
power_cycles : 7
power_on_hours : 1,074
unsafe_shutdowns : 1
media_errors : 0
num_err_log_entries : 0
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1 : 0 C
Temperature Sensor 2 : 0 C
Temperature Sensor 3 : 0 C
Temperature Sensor 4 : 0 C
Temperature Sensor 5 : 0 C
Temperature Sensor 6 : 0 C
Temperature Sensor 7 : 0 C
Temperature Sensor 8 : 0 C
[email protected]:/tmp/usr/local/sbin# ./smartctl -x /dev/nvme0n1
smartctl 6.6 2017-08-08 r4433 [x86_64-linux-4.4.0-93-generic] (daily-20170914)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: *******
Serial Number: xxxxxxxx
Firmware Version: xxxxxxxx
PCI Vendor ID: xxxxx
PCI Vendor Subsystem ID: xxxxx
IEEE OUI Identifier: xxxxxx
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 256,060,514,304 [256 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Fri Sep 15 22:18:20 2017 JST
Firmware Updates (0x14): 2 Slots, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL *Other*
Optional NVM Commands (0x0016): Wr_Unc DS_Mngmt Sav/Sel_Feat
Maximum Data Transfer Size: 32 Pages
Warning Comp. Temp. Threshold: 85 Celsius
Critical Comp. Temp. Threshold: 88 Celsius
Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 8.25W 5.00W - 0 0 0 0 0 0
1 + 8.25W 3.50W - 1 1 1 1 0 0
2 + 8.25W 3.00W - 2 2 2 2 0 0
3 - 0.0500W - - 0 0 0 0 51000 10000
4 - 0.0055W - - 0 0 0 0 1000000 100000
Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 0
1 - 4096 0 0
=== START OF SMART DATA SECTION ===
Read NVMe SMART/Health Information failed: NVMe Status 0x4002
公式
得られた情報から、赤いとこだけ抜き出します。
data_units_written × Namespace 1 Formatted LBA Size = 総書き込み量 [kb]
data_units_read × Namespace 1 Formatted LBA Size = 総読み込み量 [kb]
これにより、nvmeの書き込み量と総読み込み量が求められます。
参考
https://forums.lime-technology.com/topic/52072-nvme-gui-integration-partition-format-amp-smart-info/
しかし、2つのコマンドを駆使するとわかるようです。
自分の場合、書き込み量のsmartの結果がエラーで見れません。でも直すのも敷居が高そうなので、別の方法で読んでみます。
http://builds.smartmontools.org/ から適宜ツールをダウンロード
[email protected]:/tmp/usr/local/sbin# nvme smart-log /dev/nvme0n1
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning : 0
temperature : 34 C
available_spare : 100%
available_spare_threshold : 4%
percentage_used : 4%
data_units_read : 2,591,389
data_units_written : 11,044,311
host_read_commands : 19,218,485
host_write_commands : 112,267,107
controller_busy_time : 11,194
power_cycles : 7
power_on_hours : 1,074
unsafe_shutdowns : 1
media_errors : 0
num_err_log_entries : 0
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1 : 0 C
Temperature Sensor 2 : 0 C
Temperature Sensor 3 : 0 C
Temperature Sensor 4 : 0 C
Temperature Sensor 5 : 0 C
Temperature Sensor 6 : 0 C
Temperature Sensor 7 : 0 C
Temperature Sensor 8 : 0 C
[email protected]:/tmp/usr/local/sbin# ./smartctl -x /dev/nvme0n1
smartctl 6.6 2017-08-08 r4433 [x86_64-linux-4.4.0-93-generic] (daily-20170914)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: *******
Serial Number: xxxxxxxx
Firmware Version: xxxxxxxx
PCI Vendor ID: xxxxx
PCI Vendor Subsystem ID: xxxxx
IEEE OUI Identifier: xxxxxx
Controller ID: 0
Number of Namespaces: 1
Namespace 1 Size/Capacity: 256,060,514,304 [256 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Fri Sep 15 22:18:20 2017 JST
Firmware Updates (0x14): 2 Slots, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL *Other*
Optional NVM Commands (0x0016): Wr_Unc DS_Mngmt Sav/Sel_Feat
Maximum Data Transfer Size: 32 Pages
Warning Comp. Temp. Threshold: 85 Celsius
Critical Comp. Temp. Threshold: 88 Celsius
Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 8.25W 5.00W - 0 0 0 0 0 0
1 + 8.25W 3.50W - 1 1 1 1 0 0
2 + 8.25W 3.00W - 2 2 2 2 0 0
3 - 0.0500W - - 0 0 0 0 51000 10000
4 - 0.0055W - - 0 0 0 0 1000000 100000
Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 0
1 - 4096 0 0
=== START OF SMART DATA SECTION ===
Read NVMe SMART/Health Information failed: NVMe Status 0x4002
公式
得られた情報から、赤いとこだけ抜き出します。
data_units_written × Namespace 1 Formatted LBA Size = 総書き込み量 [kb]
data_units_read × Namespace 1 Formatted LBA Size = 総読み込み量 [kb]
これにより、nvmeの書き込み量と総読み込み量が求められます。
参考
https://forums.lime-technology.com/topic/52072-nvme-gui-integration-partition-format-amp-smart-info/
0 件のコメント:
コメントを投稿