如何在 smartmontool 上新增排除警報

如何在 smartmontool 上新增排除警報

我遇到了問題,希望得到你的幫助。開始從 Debian 10 伺服器上的 smart 取得通知:

Device: /dev/nvme1, Critical Warning (0x04): Reliability

發現此警報是由於下一個屬性引起的:

Percentage Used:  107%

我還查到了資料,其他指標是否正常並不重要,就我而言,都是正常的:

Available Spare: 100%
Available Spare Threshold: 10%

因此,考慮到訊息來自兩個驅動器,沒有理由更改 NVME 驅動器。我發現很難添加這些訊息以忽略使用/etc/smartd.conf

NVME模型SAMSUNG MZVLB512HBJQ-00000,我發現Percentage Used屬性ID是5 /etc/smartd.conf

DEVICESCAN  -d nvme -I 5

但在測試時再次收到警報:

~ smartd -c  /etc/smartd.conf -q onecheck
...
Device: /dev/nvme0, opened
Device: /dev/nvme0, SAMSUNG MZVLB512HBJQ-00000,
Device: /dev/nvme1, opened
Device: /dev/nvme1, SAMSUNG MZVLB512HBJQ-00000,
Device: /dev/nvme0, opened NVMe device
Device: /dev/nvme0, Critical Warning (0x04): Reliability
Device: /dev/nvme1, opened NVMe device
Device: /dev/nvme1, Critical Warning (0x04): Reliability
Started with '-q onecheck' option. All devices sucessfully checked once.
smartd is exiting (exit status 0)

也許有人遇到過如何為 nvme 驅動器添加忽略此類警報?先感謝您。

相關內容