Verzweiflung / smartd Syntax

CoMo

Commander
Registriert
Dez. 2015
Beiträge
2.971
Hallo,

ich versuche jetzt tatsächlich schon seit Stunden, smartd richtig zu konfigurieren. Ziel soll sein:

1x pro Woche ein Short Test, 1x pro Monat ein Long Test.

Das habe ich nun konfiguriert:

Code:
/dev/sda -d sat -a -o on -S on -s (S/../../1/04|L/../01/./03) -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sdb -d sat -a -o on -S on -s (S/../../1/04|L/../02/./03) -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sdc -d sat -a -o on -S on -s (S/../../2/04|L/../03/./03) -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sdd -d sat -a -o on -S on -s (S/../../2/04|L/../04/./03) -m root -M exec /usr/share/smartmontools/smartd-runner

Bin ich da nun auf dem richtigen Weg? Den Unterschied zwischen .. und . habe ich bis jetzt nicht verstanden.

sda und sdb sind HDDs, die anderen beiden SSD's.

Passt das nun so? Irgendwelche Hinweise / Tipps dazu?

Bitte keine KI-Antworten. ChatGPT, Bard und DeepSeek sind sich völlig uneinig, wie die Syntax korrekt ist und geben sogar während des Gesprächs widersprüchliche Antworten.
 
Also gemini findet das passt so mit ein paar kleinen Verbesserungen, die aber nicht nötig sind damit es funktioniert.

;)
 
CoMo schrieb:
Code:
/dev/sda -d sat -a -o on -S on -s (S/../../1/04|L/../01/./03) -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sdb -d sat -a -o on -S on -s (S/../../1/04|L/../02/./03) -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sdc -d sat -a -o on -S on -s (S/../../2/04|L/../03/./03) -m root -M exec /usr/share/smartmontools/smartd-runner
/dev/sdd -d sat -a -o on -S on -s (S/../../2/04|L/../04/./03) -m root -M exec /usr/share/smartmontools/smartd-runner

Bin ich da nun auf dem richtigen Weg? Den Unterschied zwischen .. und . habe ich bis jetzt nicht verstanden.

Ja, sieht gut aus, aus meiner Sicht.
man smartd.conf schrieb:
-s REGEXP [...] if all 12 characters of the string T/MM/DD/d/HH match [...]
MM is the month of the year, expressed with two decimal digits.[...] Do not use a single decimal digit or the match will always fail!
DD is the day of the month, expressed with two decimal digits.[...] Do not use a single decimal digit or the match will always fail!
d is the day of the week, expressed with one decimal digit.
HH is the hour of the day, written with two decimal digits,[...] Do not use a single decimal digit or the match will always fail!

Inwiefern der Unterschied zwischen ".." und "." dort nicht klar wird, ist mir gerade unverständlich, aber die Argumente für -s sollten so passen. Entspricht auch den Beispielen, die in der Anleitung noch stehen.
Ich habe das aber noch nie genutzt, und auch nicht ausprobiert.

Edith:
Dass -M exec eigentlich ein Kommando/Skript für den Mailversand ist, hast Du gesehen? Käme jetzt drauf an, was das da ist in /usr/share/..., bei mir gibt es das nicht, also nochmal prüfen.


CoMo schrieb:
Bitte keine KI-Antworten.

|Moppel| schrieb:
Also gemini findet [...]

Hmjo. Lesen ist schwer. Und Verstehen erst!

HTH,
xpad
 
Zuletzt bearbeitet:
  • Gefällt mir
Reaktionen: CoMo
Ich könnte dir ja eine Meinung von CoPilot mit Verbesserungsvorschlägen geben, aber die willst du ja nicht.
 
Zurück
Oben