[Eisfair] smartmon (3.4.8) Fehler beim Update

Peter Bäumer peter at baeumer.duckdns.org
Fr Mär 15 08:53:48 CET 2024


Glück Auf! Marcus,

Am 14.03.2024 um 18:55 schrieb Marcus Röckrath:
> Hallo Peter,
> 
> Peter Bäumer wrote:
> 
>> Installation ist auf beiden Servern ohne Probleme durch gelaufen :)
> 
> Fein, es gibt aber noch eine neue Version, da es auf Systemen mit vielen
> Platten Timingprobleme gibt.
> 
> An systemd und seinem Verhalten muss man sich bei der Umstellung von
> SysVInit auch erst gewöhnen.
> 

systemd Service Unit schreiben ist schöne Sache wenn man Zeit tot schlagen möchte....

Hab den Eindruck das der Dämon gestartet wird, sich dann aber beendet,
von den 6 HDDs bekam ich nur 5 Test E-Mails.

Starte ich den Dämon per Hand (/usr/libexec/smartmon/smartmon start) läuft er...


Bei debian sieht die System Unit so aus:

[Unit]
Description=Self Monitoring and Reporting Technology (SMART) Daemon
Documentation=man:smartd(8) man:smartd.conf(5)

# Typically physical storage devices are managed by the host physical machine
# Override it if you are using PCI/USB passthrough
ConditionVirtualization=no

[Service]
Type=notify
EnvironmentFile=-/etc/default/smartmontools
ExecStart=/usr/sbin/smartd -n $smartd_opts
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
Alias=smartd.service


Da zu gibt es noch einen Environment File /etc/default/smartmontools :

# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# This is a POSIX shell fragment

# List of devices you want to explicitly enable S.M.A.R.T. for
# Not needed (and not recommended) if the device is monitored by smartd
#enable_smart="/dev/hda /dev/hdb"

# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval=1800"


Da ist aber nicht eingerichtet.


Beim Starten vom SMART-Dämon auf dem Debian gibt es diese meldung:
... systemd[1]: smartmontools.service - Self Monitoring and Reporting Technology (SMART) Daemon was skipped because of an unmet condition check (ConditionVirtualization=no).

Bei der Einstallung ConditionVirtualization=yes in der system Unit startet der Dämon (Debian)

Die "Debian" systemd Unit scheint auch einen Eisfair durch zulaufen, ConditionVirtualization ist da auf > no < eingestellt.

Da müsste für SMARTMON_PLOT cron Job noch was geschrieben werden Timer Unit oder Cron Job,

PS.:
	loadproc ${DAEMON} -n -p ${smartd_PIDFILE} &
	das -n und & passen nicht zusammen...

	-n, --no-fork
         Do not fork into background
         (systemd 'Type=notify' is assumed if $NOTIFY_SOCKET is set)

MfG
   Peter B.





Mehr Informationen über die Mailingliste Eisfair