Skip to content

Commit 885df10

Browse files
committed
ops/storage: SMART self-test
1 parent fde9576 commit 885df10

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/ops/storage/raid.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,8 @@ Smart data section 则展示了硬盘的 SMART 信息。其中**自检信息**
11851185
No Self-tests have been logged
11861186
```
11871187

1188+
SMART 还支持让磁盘自检,对应的参数为 `smartctl -t`,可以选择不同的测试参数(例如 short、long 等),详情可参考 [`smartctl(8)`][smartctl.8] 的 "SMART RUN/ABORT OFFLINE TEST AND SELF-TEST OPTIONS" 部分。
1189+
11881190
安装 smartmontools 之后,可以启用 smartd 服务(smartd.service 或 smartmontools.service)。
11891191
该服务会每隔一段时间检查硬盘的 SMART 信息,并在发现问题时发送邮件通知管理员(在正确配置的情况下)。
11901192
默认 Debian 提供的 `/etc/smartd.conf` 的有效内容如下:

includes/man.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Do not link to a "generic" man page for these commands -->
7171
[mount.8]: https://man7.org/linux/man-pages/man8/mount.8.html
7272
[sg_unmap.8]: https://linux.die.net/man/8/sg_unmap
7373
[sg_write_same.8]: https://linux.die.net/man/8/sg_write_same
74+
[smartctl.8]: https://linux.die.net/man/8/smartctl
7475
[sshd.8]: https://linux.die.net/man/8/sshd
7576
[systemd-logind.8]: https://www.freedesktop.org/software/systemd/man/latest/systemd-logind.html
7677
[useradd.8]: https://manpages.debian.org/stable/passwd/useradd.8.en.html

0 commit comments

Comments
 (0)