smartd, 긴 테스트, 짧은 테스트 및 로그

smartd, 긴 테스트, 짧은 테스트 및 로그

일주일에 한 번 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에 약간의 공간이 필요합니까, 아니면 / 및 스왑에 약 60GB가 있으면 충분합니까, 아니면 /home에도 생성해야합니까?

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

관련 정보