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