Smartmontools: Difference between revisions

DoggoBit (talk | contribs)
No edit summary
Ardenet (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:smartmontools}}
{{DISPLAYTITLE:smartmontools}}
<languages/>
<translate>
<translate>
<!--T:1-->
<!--T:1-->
'''smartmontools''' is a package which provides tools for monitoring drives which support the [[wikipedia:Self-Monitoring, Analysis and Reporting Technology|S.M.A.R.T.]] system for monitoring hard drive health.
'''smartmontools''' is a package which provides tools for monitoring drives which support the [[wikipedia:Self-Monitoring, Analysis and Reporting Technology|S.M.A.R.T.]] system for monitoring hard drive health.
</translate>
 
<translate>
<!--T:2-->
<!--T:2-->
It includes the '''smartd''' and '''smartctl''' programs. smartd can be enabled on NixOS systems with the {{Nixos:option|services.smartd}} module.
It includes the '''smartd''' and '''smartctl''' programs. smartd can be enabled on NixOS systems with the {{Nixos:option|services.smartd}} module.
== Locating devices == <!--T:5-->
<!--T:6-->
It is important to use persistent methods of identification for disks, as device nodes are arbitrary and subject to change. The following command will print a list of storage devices, as well as partitions contained on them. When configuring smartd, you should use entries that are '''not''' suffixed with "-partX", as they refer to whole disks.
</translate>
</translate>
<translate>
 
== Locating devices ==
<syntaxhighlight lang="bash">
It is important to use persistent methods of identification for disks, as device nodes are arbitrary and subject to change. The following command will print a list of storage devices, as well as partitions contained on them. When configuring smartd, you should use entries that are '''not''' suffixed with "-partX", as they refer to whole disks. <syntaxhighlight lang="bash">
ls /dev/disk/by-id/
ls /dev/disk/by-id/
</syntaxhighlight>
</syntaxhighlight>


<translate>
== Example == <!--T:3-->
== Example == <!--T:3-->
</translate>
</translate>
<translate>
 
<!--T:4-->
{{file|/etc/nixos/configuration.nix|nix|<nowiki>{
{{file|/etc/nixos/configuration.nix|nix|<nowiki>{
   services.smartd = {
   services.smartd = {
Line 30: Line 33:
}
}
</nowiki>}}
</nowiki>}}
</translate>


<translate>
<!--T:4-->
[[Category:Hardware]]
[[Category:Hardware]]
[[Category:Applications]]
[[Category:Applications]]
</translate>