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