Smartmontools/ru: Difference between revisions

Unabomberlive (talk | contribs)
Created page with "Он включает в себя программы '''smartd''' и '''smartctl'''. Smartd может быть включён на системах NixOS с помощью модуля {{Nixos:option|services.smartd}}."
Tags: Mobile edit Mobile web edit
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:smartmontools}}
{{DISPLAYTITLE:smartmontools}}
<languages/>
'''smartmontools''' это пакет, который предоставляет инструменты для мониторинга дисков, поддерживающих систему [[wikipedia:Self-Monitoring, Analysis and Reporting Technology|S.M.A.R.T.]] для мониторинга состояни жёсткого диска.
Он включает в себя программы '''smartd''' и '''smartctl'''. Smartd может быть включён на системах NixOS с помощью модуля {{Nixos:option|services.smartd}}.
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
'''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.
== Locating devices ==
</div>
</div>
Он включает в себя программы '''smartd''' и '''smartctl'''. Smartd может быть включён на системах NixOS с помощью модуля {{Nixos:option|services.smartd}}.
 
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
</div>
 
<syntaxhighlight lang="bash">
ls /dev/disk/by-id/
</syntaxhighlight>
 
<span id="Example"></span>
<span id="Example"></span>
== Пример ==
== Пример ==
<div lang="en" dir="ltr" class="mw-content-ltr">
 
{{file|/etc/nixos/configuration.nix|nix|<nowiki>{
  services.smartd = {
    enable = true;
    devices = [
      {
        device = "/dev/disk/by-id/ata-WDC-XXXXXX-XXXXXX"; # FIXME: Change this to your actual disk
      }
    ];
  };
}
</nowiki>}}
 
<div class="mw-translate-fuzzy">
{{Template:file:nixos|<nowiki>{
{{Template:file:nixos|<nowiki>{
   services.smartd = {
   services.smartd = {
Line 12: Line 38:
     devices = [
     devices = [
       {
       {
         device = "/dev/sda"; # FIXME: Change this to your actual disk; use lsblk to find the appropriate value
         device = "/dev/sda"; # FIXME: Измените `/dev/sda` на настоящее имя вашего диска; используйте lsblk чтобы найти the правильное имя
       }
       }
     ];
     ];
Line 19: Line 45:
</nowiki>}}
</nowiki>}}
</div>
</div>
[[Category:Hardware]]
[[Category:Software]]