[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[db6b3391] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY smartmontools-download-http "&sourceforge-dl;/smartmontools/smartmontools-&smartmontools-version;.tar.gz">
|
---|
[db6b3391] | 8 | <!ENTITY smartmontools-download-ftp " ">
|
---|
[e183e3c] | 9 | <!ENTITY smartmontools-md5sum "178d31a6ff5256c093227ab45a3f52aa">
|
---|
[406e51c9] | 10 | <!ENTITY smartmontools-size "1 MB">
|
---|
[e183e3c] | 11 | <!ENTITY smartmontools-buildsize "27 MB">
|
---|
[99bc211] | 12 | <!ENTITY smartmontools-time "0.2 SBU">
|
---|
[db6b3391] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="smartmontools" xreflabel="smartmontools-&smartmontools-version;">
|
---|
| 16 | <?dbhtml filename="smartmontools.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>smartmontools-&smartmontools-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="smartmontools">
|
---|
| 22 | <primary sortas="a-smartmontools">smartmontools</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to smartmontools</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>smartmontools</application> package contains utility
|
---|
| 30 | programs (smartctl, smartd) to control/monitor storage systems using the
|
---|
| 31 | Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.)
|
---|
[8558044] | 32 | built into most modern ATA and SCSI disks.
|
---|
[db6b3391] | 33 | </para>
|
---|
| 34 |
|
---|
[57791dd] | 35 | &lfs122_checked;
|
---|
[db6b3391] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[29244b7] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&smartmontools-download-http;"/>
|
---|
| 42 | </para>
|
---|
[db6b3391] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[29244b7] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&smartmontools-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[db6b3391] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[29244b7] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &smartmontools-md5sum;
|
---|
| 52 | </para>
|
---|
[db6b3391] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[29244b7] | 55 | <para>
|
---|
| 56 | Download size: &smartmontools-size;
|
---|
| 57 | </para>
|
---|
[db6b3391] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[29244b7] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &smartmontools-buildsize;
|
---|
| 62 | </para>
|
---|
[db6b3391] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[29244b7] | 65 | <para>
|
---|
| 66 | Estimated build time: &smartmontools-time;
|
---|
| 67 | </para>
|
---|
[db6b3391] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">smartmontools Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Optional (runtime)</bridgehead>
|
---|
| 74 | <para role="optional">
|
---|
[96e9478] | 75 | <xref role="runtime" linkend="curl"/> or
|
---|
| 76 | <xref role="runtime" linkend="lynx"/> or
|
---|
[44453b2] | 77 | <xref role="runtime" linkend="wget"/> (download tools), and
|
---|
| 78 | <xref role="runtime" linkend="gnupg2"/> (encrypted hard disks)
|
---|
[db6b3391] | 79 | </para>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of smartmontools</title>
|
---|
| 85 |
|
---|
| 86 | <para>
|
---|
[8558044] | 87 | Install <application>smartmontools</application> by running the
|
---|
[db6b3391] | 88 | following commands:
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
[6a5bb43] | 91 | <screen revision="sysv"><userinput>./configure --prefix=/usr \
|
---|
| 92 | --sysconfdir=/etc \
|
---|
| 93 | --with-initscriptdir=no \
|
---|
| 94 | --with-libsystemd=no \
|
---|
| 95 | --docdir=/usr/share/doc/smartmontools-&smartmontools-version; &&
|
---|
| 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <screen revision="systemd"><userinput>./configure --prefix=/usr \
|
---|
[db6b3391] | 99 | --sysconfdir=/etc \
|
---|
| 100 | --docdir=/usr/share/doc/smartmontools-&smartmontools-version; &&
|
---|
| 101 | make</userinput></screen>
|
---|
| 102 |
|
---|
[29244b7] | 103 | <para>
|
---|
| 104 | This package does not come with a test suite.
|
---|
| 105 | </para>
|
---|
[db6b3391] | 106 |
|
---|
| 107 | <para>
|
---|
| 108 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 112 |
|
---|
[1dd7b0ae] | 113 | </sect2>
|
---|
| 114 |
|
---|
[5a38f35] | 115 | <sect2 role="commands" revision="sysv">
|
---|
| 116 | <title>Command Explanations</title>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | <parameter>--with-initscriptdir=no</parameter>: This switch suppresses
|
---|
| 120 | the default initialization script. See below for the BLFS script.
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | <parameter>--with-libsystemd=no</parameter>: This switch disables support
|
---|
| 125 | for the sd-notify notification system provided by systemd.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
[1dd7b0ae] | 130 | <sect2 role="configuration">
|
---|
| 131 | <title>Configuring smartmontools</title>
|
---|
| 132 |
|
---|
| 133 | <sect3 id="smartmontools-config">
|
---|
| 134 | <title>Config File</title>
|
---|
| 135 | <para>
|
---|
| 136 | <filename>/etc/smartd.conf</filename>
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <indexterm zone="smartmontools smartmontools-config">
|
---|
| 140 | <primary sortas="e-etc-smartd.conf">/etc/smartd.conf</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </sect3>
|
---|
| 143 |
|
---|
[db6b3391] | 144 | <sect3>
|
---|
| 145 | <title>Configuration Information</title>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
| 148 | See the embedded comments in <filename>/etc/smartd.conf</filename>
|
---|
| 149 | for detailed instructions on customizing the
|
---|
[406e51c9] | 150 | <application>smartd</application> daemon.
|
---|
[db6b3391] | 151 | </para>
|
---|
| 152 |
|
---|
| 153 | </sect3>
|
---|
| 154 |
|
---|
[5a38f35] | 155 | <sect3 id="smartmontoools-init">
|
---|
| 156 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 157 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[db6b3391] | 158 |
|
---|
[5a38f35] | 159 | <para revision="sysv">
|
---|
[db6b3391] | 160 | If you want the <application>smartd</application> daemon to
|
---|
| 161 | start automatically when the system is booted, install the
|
---|
| 162 | <filename>/etc/rc.d/init.d/smartd</filename> init script included
|
---|
[05664c3e] | 163 | in the <xref linkend="bootscripts"/> package.
|
---|
[db6b3391] | 164 | </para>
|
---|
| 165 |
|
---|
[5a38f35] | 166 |
|
---|
| 167 | <para revision="systemd">
|
---|
| 168 | If you want the <application>smartd</application> daemon to
|
---|
| 169 | start automatically when the system is booted, enable the
|
---|
| 170 | systemd unit provided by the package by executing the
|
---|
| 171 | following command as the
|
---|
| 172 | <systemitem class="username">root</systemitem> user:
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
[db6b3391] | 175 | <indexterm zone="smartmontools smartmontoools-init">
|
---|
[05664c3e] | 176 | <primary sortas="f-smartd">smartd</primary>
|
---|
[db6b3391] | 177 | </indexterm>
|
---|
| 178 |
|
---|
[5a38f35] | 179 | <screen role="root" revision="sysv"><userinput>make install-smartd</userinput></screen>
|
---|
[db6b3391] | 180 |
|
---|
[5a38f35] | 181 | <screen role="root" revision="systemd"><userinput>systemctl enable smartd</userinput></screen>
|
---|
[db6b3391] | 182 | </sect3>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | <sect2 role="content">
|
---|
| 187 | <title>Contents</title>
|
---|
| 188 |
|
---|
| 189 | <segmentedlist>
|
---|
| 190 | <segtitle>Installed Programs</segtitle>
|
---|
| 191 | <segtitle>Installed Libraries</segtitle>
|
---|
| 192 | <segtitle>Installed Directories</segtitle>
|
---|
| 193 |
|
---|
| 194 | <seglistitem>
|
---|
| 195 | <seg>
|
---|
| 196 | smartctl, smartd, and update-smart-drivedb
|
---|
| 197 | </seg>
|
---|
| 198 |
|
---|
| 199 | <seg>
|
---|
| 200 | None
|
---|
| 201 | </seg>
|
---|
| 202 |
|
---|
| 203 | <seg>
|
---|
[406e51c9] | 204 | /usr/share/smartmontools,
|
---|
| 205 | /usr/share/doc/smartmontools-&smartmontools-version;, and
|
---|
[b417f2a] | 206 | /etc/smartd_warning.d
|
---|
[db6b3391] | 207 | </seg>
|
---|
| 208 |
|
---|
| 209 | </seglistitem>
|
---|
| 210 | </segmentedlist>
|
---|
| 211 |
|
---|
| 212 | <variablelist>
|
---|
| 213 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 214 | <?dbfo list-presentation="list"?>
|
---|
| 215 | <?dbhtml list-presentation="table"?>
|
---|
| 216 |
|
---|
| 217 | <varlistentry id="smartctl">
|
---|
| 218 | <term><command>smartctl</command></term>
|
---|
| 219 | <listitem>
|
---|
[29244b7] | 220 | <para>
|
---|
[4c24eb0a] | 221 | is the control and monitor utility for SMART Disks
|
---|
[29244b7] | 222 | </para>
|
---|
[db6b3391] | 223 | <indexterm zone="smartmontools smartctl">
|
---|
| 224 | <primary sortas="b-smartctl">smartctl</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
| 229 | <varlistentry id="smartd">
|
---|
| 230 | <term><command>smartd</command></term>
|
---|
| 231 | <listitem>
|
---|
[29244b7] | 232 | <para>
|
---|
[4c24eb0a] | 233 | is the SMART disk monitoring daemon
|
---|
[29244b7] | 234 | </para>
|
---|
[db6b3391] | 235 | <indexterm zone="smartmontools smartd">
|
---|
| 236 | <primary sortas="b-smartd">smartd</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="update-smart-drivedb">
|
---|
| 242 | <term><command>update-smart-drivedb</command></term>
|
---|
| 243 | <listitem>
|
---|
[29244b7] | 244 | <para>
|
---|
[4c24eb0a] | 245 | is the update tool for the smartmontools drive database
|
---|
[29244b7] | 246 | </para>
|
---|
[db6b3391] | 247 | <indexterm zone="smartmontools update-smart-drivedb">
|
---|
| 248 | <primary sortas="b-update-smart-drivedb">update-smart-drivedb</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | </variablelist>
|
---|
| 254 | </sect2>
|
---|
[4c24eb0a] | 255 |
|
---|
[db6b3391] | 256 | </sect1>
|
---|