drserver:checkdiskinformationoncentos7
no way to compare when less than two revisions
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| — | drserver:checkdiskinformationoncentos7 [2018/10/29 11:23] (当前版本) – 创建 liujia | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== 在 CentOS 7 里用 smartctl 和 hdparm 对硬盘进行基本测试 ====== | ||
| + | 新租服务器,想对硬盘的健康情况和读写速度进行基本测试,如使用 CentOS 7系统,可使用smartctl 和 hdparm 的命令。 | ||
| + | |||
| + | 过程: | ||
| + | |||
| + | 1.yum -y install smartmontools hdparm # 安装相应的软件 | ||
| + | |||
| + | 2.smartctl --test=short /dev/sda # 假如硬盘设备名称是 / | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | 3.smartctl -l selftest /dev/sda # 几分钟后,查看测试结果,如本例,关键信息是 Completed without error,无错误 | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | 4.smartctl -H /dev/sda # 查看整体健康情况,关键信息是 SMART overall-health self-assessment test result: PASSED,测试通过 | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | 5.hdparm -Tt /dev/sda # 测试读取速度,本例是 125.98 MB/sec | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | 6.dd if=/ | ||
| + | |||
| + | 7.echo 3 > / | ||
| + | |||
| + | 8.dd if=tempfile of=/ | ||
| + | |||
| + | 9.dd if=tempfile of=/ | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | 参考: | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
drserver/checkdiskinformationoncentos7.txt · 最后更改: 2018/10/29 11:23 由 liujia
