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