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