Ubuntu lsblkドライブサイズ

Ubuntu lsblkドライブサイズ

Ubuntu 18を使用し、8つのストレージ用ハードドライブを使用してZFS NASをセットアップしています。sudo lsblk -Pドライブ名を解決するために使用すると、sdb-sdhサイズが0のドライブをスキップするためです。私はそうしましたがsudo lsblk -PasdaしかしSIZE=""。私の質問は、これがSIZE=""ドライブが不良で交換する必要があるということです、または私が知らないドライブに何をすべきかということです。ご協力ありがとうございます。

ビデオlsblk -Pa

ここに画像の説明を入力してください。

修正する 入力後の出力はsudo smartctl -iHAf brief -l error -l xerror /dev/sda次のようになります。

smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-52-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              DKS2D-H3R0SS
Revision:             4F09
User Capacity:        2,983,000,009,600 bytes [2.98 TB]
Logical block size:   520 bytes
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000c50056efa9cf
Serial number:        Z2987NX20000C3515M22
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Sun Jun 23 13:46:00 2019 UTC
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     46 C
Drive Trip Temperature:        68 C

Manufactured in week 29 of year 2013
Specified cycle count over device lifetime:  10000
Accumulated start-stop cycles:  191
Specified load-unload count over device lifetime:  300000
Accumulated load-unload cycles:  191
Elements in grown defect list: 1

Vendor (Seagate) cache information
  Blocks sent to initiator = 815387184
  Blocks received from initiator = 128354709
  Blocks read from cache and sent to initiator = 0
  Number of read and write commands whose size <= segment size = 3123587
  Number of read and write commands whose size > segment size = 0

Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 16529.18
  number of minutes until next internal SMART test = 47

Error counter log:
           Errors Corrected by           Total   Correction     Gigabytes    Total
               ECC          rereads/    errors   algorithm      processed    uncorrected
           fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
read:   1509905219        0         0  1509905219          0        424.001           0
write:         0        0         0         0          0         66.846           0
verify:   306677        0         0    306677          0          0.000           0

Non-medium error count:       89


[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']

ベストアンサー1

はい、これはドライブが悪いことを意味する可能性が高いです。一部のディスクドライブはサイズをゼロとして報告し、内部診断が失敗したことを示しますが、他のディスクドライブは同じ状況で「メディアが挿入されていません」エラーコードでコマンドに応答できます。

ディスクのSMARTステータスを確認する必要があります。smartctl -iHAf brief -l error -l xerror /dev/sda最も重要なSMARTディスクの状態情報の簡単なレポートを出力する必要があります。

dmesg -Hまた、エラーメッセージの出力を表示したい場合があります。

おすすめ記事