1 |
Michael wrote: |
2 |
> On Monday, 2 November 2020 05:08:14 GMT Dale wrote: |
3 |
>> Howdy, |
4 |
>> |
5 |
>> I did a KDE update so I switched to boot runlevel and back to default. |
6 |
>> I noticed that a service didn't start and it was smartd. Not exactly |
7 |
>> critical but it does monitor my hard drives. When I try to restart it, |
8 |
>> I get this using the -v option. |
9 |
>> |
10 |
>> |
11 |
>> root@fireball / # /etc/init.d/smartd start -v |
12 |
>> * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh |
13 |
>> /etc/init.d/smartd start |
14 |
>> * Starting smartd ... |
15 |
>> * start-stop-daemon: fopen `/run/smartd.pid': No such file or directory |
16 |
>> * Detaching to start `/usr/sbin/smartd' ... |
17 |
>> * start-stop-daemon: failed to start `/usr/sbin/smartd' |
18 |
>> * Failed to start |
19 |
>> smartd |
20 |
>> |
21 |
>> [ !! ] |
22 |
>> * ERROR: smartd failed to start |
23 |
>> root@fireball / # |
24 |
>> |
25 |
>> |
26 |
>> I've tried re-emerging the smartmontools package, I've tried the zap |
27 |
>> option as well, in case my recent power supply blow up left some cruft |
28 |
>> behind. I also googled but can't find this problem. It seems tho that |
29 |
>> the pid file should maybe be in /var instead of /run. I'm not sure if |
30 |
>> it was moved recently or what. |
31 |
>> |
32 |
>> Anyone know how to fix this? Or run into this before? |
33 |
>> |
34 |
>> Thanks. |
35 |
>> |
36 |
>> Dale |
37 |
>> |
38 |
>> :-) :-) |
39 |
> The pid file hasn't moved here on a stable system: |
40 |
> |
41 |
> $ ls -la /run/smartd.pid |
42 |
> -rw------- 1 root root 5 Nov 2 08:22 /run/smartd.pid |
43 |
> |
44 |
> This is what syslog reveals: |
45 |
> |
46 |
> ... smartd[3669]: smartd has fork()ed into background mode. New PID=3669. |
47 |
> ... smartd[3669]: file /run/smartd.pid written containing PID 3669 |
48 |
> |
49 |
> What do you see in your syslog as you try to start it? |
50 |
|
51 |
|
52 |
It has this. |
53 |
|
54 |
|
55 |
Nov 2 09:38:28 fireball smartd[20975]: smartd 7.1 2019-12-30 r5022 |
56 |
[x86_64-linux-5.6.7-gentoo] (local build) |
57 |
Nov 2 09:38:28 fireball smartd[20975]: Copyright (C) 2002-19, Bruce |
58 |
Allen, Christian Franke, www.smartmontools.org |
59 |
Nov 2 09:38:28 fireball smartd[20975]: Opened configuration file |
60 |
/etc/smartd.conf |
61 |
Nov 2 09:38:28 fireball smartd[20975]: Configuration file |
62 |
/etc/smartd.conf parsed. |
63 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sda [SAT], opened |
64 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sda [SAT], WDC |
65 |
WD1600AAJS-00YZCA0, S/N:WD-WCAYU4389620, WWN:5-0014ee-1ad79c1b3, |
66 |
FW:01.03B01, 160 GB |
67 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sda [SAT], found in |
68 |
smartd database: Western Digital Caviar Blue Serial ATA |
69 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sda [SAT], enabled |
70 |
SMART Attribute Autosave. |
71 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sda [SAT], enabled |
72 |
SMART Automatic Offline Testing. |
73 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sda [SAT], is SMART |
74 |
capable. Adding to "monitor" list. |
75 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdc [SAT], opened |
76 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdc [SAT], WDC |
77 |
WD60EZRZ-00GZ5B1, S/N:WD-WXJ1H26HUAL2, WWN:5-0014ee-2633c4309, |
78 |
FW:80.00A80, 6.00 TB |
79 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdc [SAT], found in |
80 |
smartd database: Western Digital Blue |
81 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdc [SAT], enabled |
82 |
SMART Attribute Autosave. |
83 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdc [SAT], enabled |
84 |
SMART Automatic Offline Testing. |
85 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdc [SAT], is SMART |
86 |
capable. Adding to "monitor" list. |
87 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sde [SAT], opened |
88 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sde [SAT], SAMSUNG |
89 |
HD753LJ, S/N:S1PWJ1KS305193, WWN:5-0024e9-001308c31, FW:1AA01117, 750 GB |
90 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sde [SAT], found in |
91 |
smartd database: SAMSUNG SpinPoint F1 DT |
92 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sde [SAT], enabled |
93 |
SMART Attribute Autosave. |
94 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sde [SAT], enabled |
95 |
SMART Automatic Offline Testing. |
96 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sde [SAT], is SMART |
97 |
capable. Adding to "monitor" list. |
98 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdf [SAT], opened |
99 |
Nov 2 09:38:28 fireball smartd[20975]: Device: /dev/sdf [SAT], not ATA, |
100 |
no IDENTIFY DEVICE Structure |
101 |
Nov 2 09:38:28 fireball smartd[20975]: Unable to register ATA device |
102 |
/dev/sdf [SAT] at line 91 of file /etc/smartd.conf |
103 |
Nov 2 09:38:28 fireball smartd[20975]: Unable to register device |
104 |
/dev/sdf [SAT] (no Directive -d removable). Exiting. |
105 |
Nov 2 09:38:28 fireball /etc/init.d/smartd[20974]: start-stop-daemon: |
106 |
failed to start `/usr/sbin/smartd' |
107 |
Nov 2 09:38:28 fireball /etc/init.d/smartd[20950]: ERROR: smartd failed |
108 |
to start |
109 |
root@fireball / # |
110 |
|
111 |
|
112 |
|
113 |
It appears it doesn't like that sdf is no longer there. I commented out |
114 |
that line in the conf file and now it starts. Since I do move drives on |
115 |
rare occasions, is there a way to make it just recognize a drive that is |
116 |
there but ignore any that have been removed? After all, things are hot |
117 |
plugable nowadays. I might add, I have a sdk that is a external drive. |
118 |
Actually, two drives share sdk since they are never connected at the |
119 |
same time. Even tho I sometimes test it manually, I would like it to |
120 |
notify me if it receives some sort of a SMART error. |
121 |
|
122 |
This is the relevant conf part, leaving out the commented out lines for |
123 |
sure. |
124 |
|
125 |
|
126 |
/dev/sda -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root |
127 |
/dev/sdb -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root |
128 |
/dev/sdc -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root |
129 |
/dev/sdd -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root |
130 |
/dev/sde -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root |
131 |
#/dev/sdf -a -d sat -o on -S on -s (S/../.././12|L/../../6/12) -m root |
132 |
|
133 |
|
134 |
All other lines appear to be commented out except that. I notice it has |
135 |
-d on all those even tho the logs say it doesn't. Something missing? |
136 |
Maybe there is a better setting for all this?? |
137 |
|
138 |
Thanks much. |
139 |
|
140 |
Dale |
141 |
|
142 |
:-) :-) |