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