1 | [root@backup ~]# cat /etc/centos-release
|
---|
2 | CentOS Linux release 7.9.2009 (Core)
|
---|
3 |
|
---|
4 | [root@backup ~]# uname -a
|
---|
5 | Linux backup.localdomain 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
|
---|
6 |
|
---|
7 | # the drive is from 2009, so lifetime 33546 means 65536 + 33546 = 99082
|
---|
8 | # -> self-test log order is unusual:
|
---|
9 | # the first bad sector LBA is 768453424
|
---|
10 |
|
---|
11 | [root@backup ~]# /usr/local/sbin/smartctl -l selftest /dev/sdd
|
---|
12 | smartctl 7.2 2020-12-30 r5155 [x86_64-linux-3.10.0-1160.49.1.el7.x86_64] (local build)
|
---|
13 | Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
|
---|
14 |
|
---|
15 | === START OF READ SMART DATA SECTION ===
|
---|
16 | SMART Self-test log structure revision number 1
|
---|
17 | Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
|
---|
18 | # 1 Extended offline Completed: read failure 90% 33546 768453424
|
---|
19 | # 2 Short offline Completed without error 00% 8065 -
|
---|
20 | # 3 Short offline Completed without error 00% 8041 -
|
---|
21 | # 4 Short offline Completed without error 00% 8017 -
|
---|
22 | # 5 Short offline Completed without error 00% 7993 -
|
---|
23 | # 6 Short offline Completed without error 00% 7969 -
|
---|
24 | # 7 Extended offline Completed without error 00% 7948 -
|
---|
25 | # 8 Short offline Completed without error 00% 7945 -
|
---|
26 | # 9 Short offline Completed without error 00% 7921 -
|
---|
27 | #10 Short offline Completed without error 00% 7897 -
|
---|
28 | #11 Short offline Completed without error 00% 7873 -
|
---|
29 | #12 Short offline Completed without error 00% 7849 -
|
---|
30 | #13 Short offline Completed without error 00% 7825 -
|
---|
31 | #14 Short offline Completed without error 00% 7801 -
|
---|
32 | #15 Extended offline Completed without error 00% 7780 -
|
---|
33 | #16 Short offline Completed without error 00% 7777 -
|
---|
34 | #17 Short offline Completed without error 00% 7754 -
|
---|
35 | #18 Short offline Completed without error 00% 7730 -
|
---|
36 | #19 Short offline Completed without error 00% 7706 -
|
---|
37 | #20 Short offline Completed without error 00% 7682 -
|
---|
38 | #21 Short offline Completed without error 00% 7658 -
|
---|
39 |
|
---|
40 |
|
---|
41 | # in order to make another xerror log record:
|
---|
42 |
|
---|
43 | [root@backup ~]# dd if=/dev/zero of=/dev/sdd bs=512 seek=768453424 count=1
|
---|
44 | dd: error writing ‘/dev/sdd’: Input/output error
|
---|
45 | 1+0 records in
|
---|
46 | 0+0 records out
|
---|
47 | 0 bytes (0 B) copied, 2.56117 s, 0.0 kB/s
|
---|
48 |
|
---|
49 |
|
---|
50 | # show the last record from xerror log:
|
---|
51 |
|
---|
52 | [root@backup ~]# /usr/local/sbin/smartctl -i -l xerror,1 /dev/sdd
|
---|
53 | smartctl 7.2 2020-12-30 r5155 [x86_64-linux-3.10.0-1160.49.1.el7.x86_64] (local build)
|
---|
54 | Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
|
---|
55 |
|
---|
56 | === START OF INFORMATION SECTION ===
|
---|
57 | Model Family: Western Digital Caviar Black
|
---|
58 | Device Model: WDC WD6401AALS-00L3B2
|
---|
59 | Serial Number: WD-WCASY5462030
|
---|
60 | LU WWN Device Id: 5 0014ee 2ad88b13f
|
---|
61 | Firmware Version: 01.03B01
|
---|
62 | User Capacity: 640,135,028,736 bytes [640 GB]
|
---|
63 | Sector Size: 512 bytes logical/physical
|
---|
64 | Device is: In smartctl database [for details use: -P show]
|
---|
65 | ATA Version is: ATA8-ACS (minor revision not indicated)
|
---|
66 | SATA Version is: SATA 2.5, 3.0 Gb/s
|
---|
67 | Local Time is: Tue Jan 11 09:31:13 2022 +07
|
---|
68 | SMART support is: Available - device has SMART capability.
|
---|
69 | SMART support is: Enabled
|
---|
70 |
|
---|
71 | === START OF READ SMART DATA SECTION ===
|
---|
72 | SMART Extended Comprehensive Error Log Version: 1 (6 sectors)
|
---|
73 | Device Error Count: 89 (device log contains only the most recent 24 errors)
|
---|
74 | CR = Command Register
|
---|
75 | FEATR = Features Register
|
---|
76 | COUNT = Count (was: Sector Count) Register
|
---|
77 | LBA_48 = Upper bytes of LBA High/Mid/Low Registers ] ATA-8
|
---|
78 | LH = LBA High (was: Cylinder High) Register ] LBA
|
---|
79 | LM = LBA Mid (was: Cylinder Low) Register ] Register
|
---|
80 | LL = LBA Low (was: Sector Number) Register ]
|
---|
81 | DV = Device (was: Device/Head) Register
|
---|
82 | DC = Device Control Register
|
---|
83 | ER = Error register
|
---|
84 | ST = Status register
|
---|
85 | Powered_Up_Time is measured from power on, and printed as
|
---|
86 | DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
|
---|
87 | SS=sec, and sss=millisec. It "wraps" after 49.710 days.
|
---|
88 |
|
---|
89 | Error 89 [16] occurred at disk power-on lifetime: 33550 hours (1397 days + 22 hours)
|
---|
90 | When the command that caused the error occurred, the device was active or idle.
|
---|
91 |
|
---|
92 | After command completion occurred, registers were:
|
---|
93 | ER -- ST COUNT LBA_48 LH LM LL DV DC
|
---|
94 | -- -- -- == -- == == == -- -- -- -- --
|
---|
95 | 40 -- 51 00 00 00 2d ab 00 cd 30 40 00 Error: UNC at LBA = 0x2dab00cd30 = 196142484784
|
---|
96 |
|
---|
97 | Commands leading to the command that caused the error were:
|
---|
98 | CR FEATR COUNT LBA_48 LH LM LL DV DC Powered_Up_Time Command/Feature_Name
|
---|
99 | -- == -- == -- == == == -- -- -- -- -- --------------- --------------------
|
---|
100 | 60 00 08 00 40 00 00 2d cd ab 30 40 08 15d+12:24:30.054 READ FPDMA QUEUED
|
---|
101 | 61 00 08 00 38 00 00 2d cb 94 78 40 08 15d+12:24:26.015 WRITE FPDMA QUEUED
|
---|
102 | 61 00 08 00 30 00 00 2d c7 85 e0 40 08 15d+12:24:26.014 WRITE FPDMA QUEUED
|
---|
103 | 61 00 08 00 28 00 00 2d c7 84 10 40 08 15d+12:24:26.014 WRITE FPDMA QUEUED
|
---|
104 | 61 00 08 00 20 00 00 2d c7 70 08 40 08 15d+12:24:26.014 WRITE FPDMA QUEUED
|
---|
105 |
|
---|
106 |
|
---|
107 | # note that 0x2DCDAB30 <> 0x2dab00cd30
|
---|
108 | # and so 196142484784 is wrong
|
---|
109 |
|
---|
110 | [root@backup ~]# echo 'obase=16; 768453424' | bc
|
---|
111 | 2DCDAB30
|
---|
112 |
|
---|
113 |
|
---|
114 | # sources are just downloaded from https://deac-ams.dl.sourceforge.net/project/smartmontools/smartmontools/7.2/smartmontools-7.2.tar.gz
|
---|
115 | # build log:
|
---|
116 |
|
---|
117 | [tmpbuild@backup smartmontools-7.2]$ ./configure
|
---|
118 | checking for a BSD-compatible install... /bin/install -c
|
---|
119 | checking whether build environment is sane... yes
|
---|
120 | checking for a thread-safe mkdir -p... /bin/mkdir -p
|
---|
121 | checking for gawk... gawk
|
---|
122 | checking whether make sets $(MAKE)... yes
|
---|
123 | checking whether make supports nested variables... yes
|
---|
124 | checking whether to enable maintainer-specific portions of Makefiles... no
|
---|
125 | checking for g++... g++
|
---|
126 | checking whether the C++ compiler works... yes
|
---|
127 | checking for C++ compiler default output file name... a.out
|
---|
128 | checking for suffix of executables...
|
---|
129 | checking whether we are cross compiling... no
|
---|
130 | checking for suffix of object files... o
|
---|
131 | checking whether we are using the GNU C++ compiler... yes
|
---|
132 | checking whether g++ accepts -g... yes
|
---|
133 | checking whether make supports the include directive... yes (GNU style)
|
---|
134 | checking dependency style of g++... gcc3
|
---|
135 | checking for gcc... gcc
|
---|
136 | checking whether we are using the GNU C compiler... yes
|
---|
137 | checking whether gcc accepts -g... yes
|
---|
138 | checking for gcc option to accept ISO C89... none needed
|
---|
139 | checking whether gcc understands -c and -o together... yes
|
---|
140 | checking dependency style of gcc... gcc3
|
---|
141 | checking dependency style of gcc... gcc3
|
---|
142 | checking for pkg-config... /bin/pkg-config
|
---|
143 | checking pkg-config is at least version 0.9.0... yes
|
---|
144 | checking build system type... x86_64-pc-linux-gnu
|
---|
145 | checking host system type... x86_64-pc-linux-gnu
|
---|
146 | checking for nm... nm
|
---|
147 | checking whether this is a build from SVN... no
|
---|
148 | checking how to run the C++ preprocessor... g++ -E
|
---|
149 | checking for grep that handles long lines and -e... /bin/grep
|
---|
150 | checking for egrep... /bin/grep -E
|
---|
151 | checking for ANSI C header files... yes
|
---|
152 | checking for sys/types.h... yes
|
---|
153 | checking for sys/stat.h... yes
|
---|
154 | checking for stdlib.h... yes
|
---|
155 | checking for string.h... yes
|
---|
156 | checking for memory.h... yes
|
---|
157 | checking for strings.h... yes
|
---|
158 | checking for inttypes.h... yes
|
---|
159 | checking for stdint.h... yes
|
---|
160 | checking for unistd.h... yes
|
---|
161 | checking locale.h usability... yes
|
---|
162 | checking locale.h presence... yes
|
---|
163 | checking for locale.h... yes
|
---|
164 | checking byteswap.h usability... yes
|
---|
165 | checking byteswap.h presence... yes
|
---|
166 | checking for byteswap.h... yes
|
---|
167 | checking sys/sysmacros.h usability... yes
|
---|
168 | checking sys/sysmacros.h presence... yes
|
---|
169 | checking for sys/sysmacros.h... yes
|
---|
170 | checking linux/compiler.h usability... no
|
---|
171 | checking linux/compiler.h presence... no
|
---|
172 | checking for linux/compiler.h... no
|
---|
173 | checking for linux/cciss_ioctl.h... yes
|
---|
174 | checking for __int128... yes
|
---|
175 | checking for long double with more range or precision than double... yes
|
---|
176 | checking for getopt_long... yes
|
---|
177 | checking for clock_gettime... yes
|
---|
178 | checking for ftime... yes
|
---|
179 | checking for gettimeofday... yes
|
---|
180 | checking whether byte ordering is bigendian... no
|
---|
181 | checking whether g++ supports __attribute__((packed))... yes
|
---|
182 | checking cap-ng.h usability... no
|
---|
183 | checking cap-ng.h presence... no
|
---|
184 | checking for cap-ng.h... no
|
---|
185 | checking systemd/sd-daemon.h usability... no
|
---|
186 | checking systemd/sd-daemon.h presence... no
|
---|
187 | checking for systemd/sd-daemon.h... no
|
---|
188 | checking for sigaction... yes
|
---|
189 | checking for g++ option to accept C++11... -std=gnu++11
|
---|
190 | checking for regcomp... yes
|
---|
191 | checking whether os_linux.cpp uses new interface... yes
|
---|
192 | checking whether NVMe device scanning could be safely enabled... yes
|
---|
193 | checking whether g++ supports -Wformat=2... yes
|
---|
194 | checking whether g++ supports -fstack-protector-strong... yes
|
---|
195 | checking whether _FORTIFY_SOURCE is predefined... no
|
---|
196 | checking whether g++ supports _FORTIFY_SOURCE=2... yes
|
---|
197 | checking that generated files are newer than configure... done
|
---|
198 | configure: creating ./config.status
|
---|
199 | config.status: creating Makefile
|
---|
200 | config.status: creating config.h
|
---|
201 | config.status: config.h is unchanged
|
---|
202 | config.status: executing depfiles commands
|
---|
203 | checking whether make sets $(MAKE)... (cached) yes
|
---|
204 | configure:
|
---|
205 | -----------------------------------------------------------------------------
|
---|
206 | smartmontools-7.2 configuration:
|
---|
207 | host operating system: x86_64-pc-linux-gnu
|
---|
208 | C++ compiler: g++
|
---|
209 | C compiler: gcc
|
---|
210 | preprocessor flags: -D_FORTIFY_SOURCE=2
|
---|
211 | C++ compiler flags: -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong
|
---|
212 | C compiler flags: -g -O2
|
---|
213 | linker flags:
|
---|
214 | OS specific modules: os_linux.o cciss.o dev_areca.o
|
---|
215 | binary install path: /usr/local/sbin
|
---|
216 | man page install path: /usr/local/share/man
|
---|
217 | doc file install path: /usr/local/share/doc/smartmontools
|
---|
218 | examples install path: /usr/local/share/doc/smartmontools/examplescripts
|
---|
219 | drive database file: /usr/local/share/smartmontools/drivedb.h
|
---|
220 | database update script: /usr/local/sbin/update-smart-drivedb
|
---|
221 | database update branch: branches/RELEASE_7_2_DRIVEDB
|
---|
222 | download tools: curl wget lynx svn
|
---|
223 | GnuPG for verification: gpg
|
---|
224 | local drive database: /usr/local/etc/smart_drivedb.h
|
---|
225 | smartd config file: /usr/local/etc/smartd.conf
|
---|
226 | smartd warning script: /usr/local/etc/smartd_warning.sh
|
---|
227 | smartd plugin path: /usr/local/etc/smartd_warning.d
|
---|
228 | PATH within scripts: /usr/local/bin:/usr/bin:/bin
|
---|
229 | smartd initd script: [disabled]
|
---|
230 | smartd save files: [disabled]
|
---|
231 | smartd attribute logs: [disabled]
|
---|
232 | SELinux support: no
|
---|
233 | libcap-ng support: no
|
---|
234 | systemd notify support: no
|
---|
235 | NVMe DEVICESCAN: yes
|
---|
236 | -----------------------------------------------------------------------------
|
---|
237 |
|
---|
238 | configure: WARNING:
|
---|
239 | The default for the inclusion of NVME devices in smartd.conf
|
---|
240 | 'DEVICESCAN' and 'smartctl --scan' has been changed to 'yes' on
|
---|
241 | this platform. If '--without-nvme-devicescan' is still needed,
|
---|
242 | please inform smartmontools-support@listi.jpberlin.de.
|
---|
243 | Use option '--with-nvme-devicescan' to suppress this warning.
|
---|
244 |
|
---|
245 | configure: WARNING:
|
---|
246 | systemd(1) is used on this system but smartd systemd notify support will
|
---|
247 | not be available because libsystemd-dev[el] package is not installed.
|
---|
248 | Use option '--without-libsystemd' to suppress this warning.
|
---|
249 |
|
---|
250 | [tmpbuild@backup smartmontools-7.2]$ make
|
---|
251 | make all-am
|
---|
252 | make[1]: Entering directory `/home/tmpbuild/work/smartmontools-7.2'
|
---|
253 | cat ChangeLog NEWS $(SOURCES) | $(VERSION_FROM_SVN_IDS) > svnversion.h
|
---|
254 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT smartctl.o -MD -MP -MF .deps/smartctl.Tpo -c -o smartctl.o smartctl.cpp
|
---|
255 | mv -f .deps/smartctl.Tpo .deps/smartctl.Po
|
---|
256 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT atacmdnames.o -MD -MP -MF .deps/atacmdnames.Tpo -c -o atacmdnames.o atacmdnames.cpp
|
---|
257 | mv -f .deps/atacmdnames.Tpo .deps/atacmdnames.Po
|
---|
258 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT atacmds.o -MD -MP -MF .deps/atacmds.Tpo -c -o atacmds.o atacmds.cpp
|
---|
259 | mv -f .deps/atacmds.Tpo .deps/atacmds.Po
|
---|
260 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT ataidentify.o -MD -MP -MF .deps/ataidentify.Tpo -c -o ataidentify.o ataidentify.cpp
|
---|
261 | mv -f .deps/ataidentify.Tpo .deps/ataidentify.Po
|
---|
262 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT ataprint.o -MD -MP -MF .deps/ataprint.Tpo -c -o ataprint.o ataprint.cpp
|
---|
263 | mv -f .deps/ataprint.Tpo .deps/ataprint.Po
|
---|
264 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT dev_ata_cmd_set.o -MD -MP -MF .deps/dev_ata_cmd_set.Tpo -c -o dev_ata_cmd_set.o dev_ata_cmd_set.cpp
|
---|
265 | mv -f .deps/dev_ata_cmd_set.Tpo .deps/dev_ata_cmd_set.Po
|
---|
266 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT dev_intelliprop.o -MD -MP -MF .deps/dev_intelliprop.Tpo -c -o dev_intelliprop.o dev_intelliprop.cpp
|
---|
267 | mv -f .deps/dev_intelliprop.Tpo .deps/dev_intelliprop.Po
|
---|
268 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT dev_interface.o -MD -MP -MF .deps/dev_interface.Tpo -c -o dev_interface.o dev_interface.cpp
|
---|
269 | mv -f .deps/dev_interface.Tpo .deps/dev_interface.Po
|
---|
270 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT dev_jmb39x_raid.o -MD -MP -MF .deps/dev_jmb39x_raid.Tpo -c -o dev_jmb39x_raid.o dev_jmb39x_raid.cpp
|
---|
271 | mv -f .deps/dev_jmb39x_raid.Tpo .deps/dev_jmb39x_raid.Po
|
---|
272 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT json.o -MD -MP -MF .deps/json.Tpo -c -o json.o json.cpp
|
---|
273 | mv -f .deps/json.Tpo .deps/json.Po
|
---|
274 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT knowndrives.o -MD -MP -MF .deps/knowndrives.Tpo -c -o knowndrives.o knowndrives.cpp
|
---|
275 | mv -f .deps/knowndrives.Tpo .deps/knowndrives.Po
|
---|
276 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT nvmecmds.o -MD -MP -MF .deps/nvmecmds.Tpo -c -o nvmecmds.o nvmecmds.cpp
|
---|
277 | mv -f .deps/nvmecmds.Tpo .deps/nvmecmds.Po
|
---|
278 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT nvmeprint.o -MD -MP -MF .deps/nvmeprint.Tpo -c -o nvmeprint.o nvmeprint.cpp
|
---|
279 | mv -f .deps/nvmeprint.Tpo .deps/nvmeprint.Po
|
---|
280 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT scsicmds.o -MD -MP -MF .deps/scsicmds.Tpo -c -o scsicmds.o scsicmds.cpp
|
---|
281 | mv -f .deps/scsicmds.Tpo .deps/scsicmds.Po
|
---|
282 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT scsiata.o -MD -MP -MF .deps/scsiata.Tpo -c -o scsiata.o scsiata.cpp
|
---|
283 | mv -f .deps/scsiata.Tpo .deps/scsiata.Po
|
---|
284 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT scsinvme.o -MD -MP -MF .deps/scsinvme.Tpo -c -o scsinvme.o scsinvme.cpp
|
---|
285 | mv -f .deps/scsinvme.Tpo .deps/scsinvme.Po
|
---|
286 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT scsiprint.o -MD -MP -MF .deps/scsiprint.Tpo -c -o scsiprint.o scsiprint.cpp
|
---|
287 | mv -f .deps/scsiprint.Tpo .deps/scsiprint.Po
|
---|
288 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT utility.o -MD -MP -MF .deps/utility.Tpo -c -o utility.o utility.cpp
|
---|
289 | mv -f .deps/utility.Tpo .deps/utility.Po
|
---|
290 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT os_linux.o -MD -MP -MF .deps/os_linux.Tpo -c -o os_linux.o os_linux.cpp
|
---|
291 | mv -f .deps/os_linux.Tpo .deps/os_linux.Po
|
---|
292 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT cciss.o -MD -MP -MF .deps/cciss.Tpo -c -o cciss.o cciss.cpp
|
---|
293 | mv -f .deps/cciss.Tpo .deps/cciss.Po
|
---|
294 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT dev_areca.o -MD -MP -MF .deps/dev_areca.Tpo -c -o dev_areca.o dev_areca.cpp
|
---|
295 | mv -f .deps/dev_areca.Tpo .deps/dev_areca.Po
|
---|
296 | g++ -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -o smartctl smartctl.o atacmdnames.o atacmds.o ataidentify.o ataprint.o dev_ata_cmd_set.o dev_intelliprop.o dev_interface.o dev_jmb39x_raid.o json.o knowndrives.o nvmecmds.o nvmeprint.o scsicmds.o scsiata.o scsinvme.o scsiprint.o utility.o os_linux.o cciss.o dev_areca.o
|
---|
297 | g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"' -D_FORTIFY_SOURCE=2 -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -MT smartd.o -MD -MP -MF .deps/smartd.Tpo -c -o smartd.o smartd.cpp
|
---|
298 | mv -f .deps/smartd.Tpo .deps/smartd.Po
|
---|
299 | g++ -g -O2 -Wall -W -Wformat=2 -fstack-protector-strong -o smartd smartd.o atacmdnames.o atacmds.o dev_ata_cmd_set.o dev_intelliprop.o dev_interface.o dev_jmb39x_raid.o knowndrives.o nvmecmds.o scsicmds.o scsiata.o scsinvme.o utility.o os_linux.o cciss.o dev_areca.o
|
---|
300 | /bin/sh ./config.status --file=update-smart-drivedb
|
---|
301 | config.status: creating update-smart-drivedb
|
---|
302 | chmod +x update-smart-drivedb
|
---|
303 | /bin/sh ./config.status --file=smartd_warning.sh
|
---|
304 | config.status: creating smartd_warning.sh
|
---|
305 | chmod +x smartd_warning.sh
|
---|
306 | $(MAN_FILTER) < ./smartd.conf.5.in > smartd.conf.5
|
---|
307 | $(MAN_FILTER) < ./smartctl.8.in > smartctl.8
|
---|
308 | $(MAN_FILTER) < ./smartd.8.in > smartd.8
|
---|
309 | $(MAN_FILTER) < ./update-smart-drivedb.8.in > update-smart-drivedb.8
|
---|
310 | make[1]: Leaving directory `/home/tmpbuild/work/smartmontools-7.2'
|
---|
311 |
|
---|
312 |
|
---|
313 | # install by root (locale is ru_RU.UTF-8):
|
---|
314 |
|
---|
315 | [root@backup smartmontools-7.2]# make install
|
---|
316 | make[1]: Вход в каталог `/home/tmpbuild/work/smartmontools-7.2'
|
---|
317 | /bin/mkdir -p '/usr/local/sbin'
|
---|
318 | /bin/install -c smartctl smartd '/usr/local/sbin'
|
---|
319 | /bin/mkdir -p '/usr/local/sbin'
|
---|
320 | /bin/install -c update-smart-drivedb '/usr/local/sbin'
|
---|
321 | /bin/mkdir -p '/usr/local/etc'
|
---|
322 | /bin/install -c -m 644 './smartd.conf' '/usr/local/etc/smartd.conf'
|
---|
323 | /bin/mkdir -p '/usr/local/etc/smartd_warning.d'
|
---|
324 | /bin/mkdir -p '/usr/local/share/doc/smartmontools'
|
---|
325 | /bin/install -c -m 644 AUTHORS ChangeLog ChangeLog-6.0-7.0 COPYING INSTALL NEWS README TODO smartd.conf '/usr/local/share/doc/smartmontools'
|
---|
326 | /bin/mkdir -p '/usr/local/share/smartmontools'
|
---|
327 | /bin/install -c -m 644 drivedb.h '/usr/local/share/smartmontools'
|
---|
328 | /bin/mkdir -p '/usr/local/share/doc/smartmontools/examplescripts'
|
---|
329 | /bin/install -c -m 644 examplescripts/README '/usr/local/share/doc/smartmontools/examplescripts'
|
---|
330 | /bin/mkdir -p '/usr/local/share/doc/smartmontools/examplescripts'
|
---|
331 | /bin/install -c examplescripts/Example1 examplescripts/Example2 examplescripts/Example3 examplescripts/Example4 examplescripts/Example5 examplescripts/Example6 examplescripts/Example7 examplescripts/Example8 '/usr/local/share/doc/smartmontools/examplescripts'
|
---|
332 | /bin/mkdir -p '/usr/local/share/man/man5'
|
---|
333 | /bin/install -c -m 644 smartd.conf.5 '/usr/local/share/man/man5'
|
---|
334 | /bin/mkdir -p '/usr/local/share/man/man8'
|
---|
335 | /bin/install -c -m 644 smartctl.8 smartd.8 update-smart-drivedb.8 '/usr/local/share/man/man8'
|
---|
336 | /bin/mkdir -p '/usr/local/etc'
|
---|
337 | /bin/install -c smartd_warning.sh '/usr/local/etc'
|
---|
338 | make[1]: Выход из каталога `/home/tmpbuild/work/smartmontools-7.2'
|
---|
339 |
|
---|
340 |
|
---|