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