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