]>
Commit | Line | Data |
---|---|---|
1 | Disk Health Monitoring | |
2 | ---------------------- | |
3 | include::attributes.txt[] | |
4 | ||
5 | Altough a robust and redundant storage is recommended, | |
6 | it can be very helpful to monitor the health of your local disks. | |
7 | ||
8 | Starting with {pve} 4.3, the package smartmontools footnote:[smartmontools homepage https://www.smartmontools.org] | |
9 | is installed and required. This is a set of tools to monitor and control | |
10 | the S.M.A.R.T. system for local hard disks. | |
11 | ||
12 | You can get the status of a disk by issuing the following command: | |
13 | ---- | |
14 | # smartctl -a /dev/sdX | |
15 | ---- | |
16 | ||
17 | where /dev/sdX is the path to one of your local disks. | |
18 | ||
19 | If the output says: | |
20 | ||
21 | ---- | |
22 | SMART support is: Disabled | |
23 | ---- | |
24 | ||
25 | you can enable it with the command: | |
26 | ||
27 | ---- | |
28 | # smartctl -s on /dev/sdX | |
29 | ---- | |
30 | ||
31 | For more information on how to use smartctl, please see `man smartctl`. | |
32 | ||
33 | By default, smartmontools daemon smartd is active and enabled, and scans | |
34 | the disks under /dev/sdX and /dev/hdX every 30 minutes for errors and warnings, and sends an | |
35 | e-mail to root if it detects a problem. | |
36 | ||
37 | For more information about how to configure smartd, please see `man smartd` and | |
38 | `man smartd.conf`. | |
39 | ||
40 | If you use your hard disks with a hardware raid controller, there are most likely tools | |
41 | to monitor the disks in the raid array and the array itself. For more information about this, | |
42 | please refer to the vendor of your raid controller. |