smartd、長いテスト、短いテスト、ログ

smartd、長いテスト、短いテスト、ログ

週に 1 回 smartd 長期テストを実行し、日曜日に小規模テストを実行し、30 分または 1 時間ごとに小規模テストを実行するよう smartd に指示する方法はありますか?良い習慣が何であるかはわかりませんが、今はそれがすべてです。 /に十分なスペースがあるので、/var/log/smartのようなものを使用して、出力を.jsonまたは読み取り可能なファイルに入れることができます。

$ df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda7       641G   36G  573G   6% /

私はsmartmontools 7.0を実行しており、次のことがわかります。

$ sudo smartctl --version
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.3.0-3-amd64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

smartctl comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License; either
version 2, or (at your option) any later version.
See http://www.gnu.org for further details.

smartmontools release 7.0 dated 2018-12-30 at 14:47:55 UTC

これはから来たものですhttps://tracker.debian.org/pkg/smartmontools

マニュアルページでは、jsonのサポートを実験的な機能として見ていますが、それ以外は何もありません。

~$ man smartctl | grep json
       -j, --json[=cgiosuv]
              'json.KEY1[INDEX2].KEY3 = VALUE;'.

もっと学ぶことを楽しみにしています。 /var/log/smartにディレクトリを作成できますが、メッセージが/var/log/smartに送信されるようにするにはどうすればよいですか?

もう一つのポイントは、ユーザースペース/home/shirishにいくつかのスペースが必要ですか、または/およびスワップに約60 GBがあれば十分ですか、それとも/homeにも作成する必要がありますか?

$ free -h 
              total        used        free      shared  buff/cache   available
Mem:           23Gi       3.9Gi        11Gi       282Mi       7.7Gi        18Gi
Swap:          59Gi          0B        59Gi

ベストアンサー1

おすすめ記事