Anacron weekly Message

  • Hey guys,


    Can anybody tell me what this message is for?


    /etc/cron.weekly/openmediavault-update-smart-drivedb:Updating smartmontools drive database .../usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB


    Thanks!

  • IIRC it is correct. The drivedb is updated weekly, can't find the commit on SF at the moment.


    Edit: http://sourceforge.net/p/openmediavault/code/1667/

  • Solution:


    Datenbank aktualisierenSeit smartmontools Version 5.40 kann diese Datenbank mit dem Kommando update-smart-drivedb aktualisiert werden.[1] Das folgende Beispiel zeigt die Aktualisierung der Datenbank eines Systems mit Ubuntu 12.04:


    user@ubuntu-12-04:~$ sudo update-smart-drivedb
    /usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB
    In vielen Fällen wird das Laufwerk dann richtig von den Smartmontools erkannt und die SMART Werte richtig interpretiert.


    update-smart-drivedb verwendet veralteten Download-LinkAufgrund von Änderungen in der Infrastruktur von Sourceforge stimmt seit mindestens Anfang August 2013 der ursprüngliche Download-Link in update-smart-drivedb nicht mehr.[2][3]


    Es erscheint dabei folgende Fehlermeldung:


    $ sudo update-smart-drivedb
    /usr/share/smartmontools/drivedb.h.error: rejected by /usr/sbin/smartctl, probably no longer compatible
    Durch Änderung der URL in /usr/sbin/update-smart-drivedb kann das Problem behoben werden:


    # ViewVC repository browser
    ## MANUALLY UPDATED: commented orginial URL and inserted URL from script of smartmontools v6.2 package.
    ## SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'
    SRCEXPR='http://sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw'


    Mit dem Linux Kommandozeilen-Werzeug sed kann das Ersetzen des Links aus einem Aufruf heraus erfolgen:


    sed -i "/^SRCEXPR/{s#=.*#='http://sourceforge.net/p/smartmontools/code/HEAD/tree/\$location/smartmontools/drivedb.h?format=raw'#}" $(which update-smart-drivedb)

    Asus Z97M-Plus / Intel Core i5 / 16 GB RAM / System: 120 GB Intel SSD / RAID 1 - 2 x 4 TB Seagate ST4000VN000 / USB Backup HDD - Seagate Backup Plus Desktop STCA4000200


    OMV - Arrakis 4.1.22.1
    Kernel 4.19.0.0 bpo4 - amd64
    PHP 7.0.33-0+deb9u1

  • the solution is to run this:

    Code
    sed -i "/^SRCEXPR/{s#=.*#='http://sourceforge.net/p/smartmontools/code/HEAD/tree/\$location/smartmontools/drivedb.h?format=raw'#}" $(which update-smart-drivedb)


    in root terminal

  • Dear All,


    I tried to run

    Code
    sed -i "/^SRCEXPR/{s#=.*#='http://sourceforge.net/p/smartmontools/code/HEAD/tree/\$location/smartmontools/drivedb.h?format=raw'#}" $(which update-smart-drivedb)


    in root terminal on my NAS, but I still receive weekly update email from my NAS.


    Do you have some idea where is the problem? I mean: why I can't stop receive emails from NAS?


    Thank you for your reply
    Regards

  • Code
    sed -i "/^SRCEXPR/{s#=.*#='https://sourceforge.net/p/smartmontools/code/HEAD/tree/\$location/smartmontools/drivedb.h?format=raw'#}" $(which update-smart-drivedb)

    I know this is a long time ago.For me, paste of https helped...

    [LibreELEC @ 2x RPi3, CoreELEC @ S12 Octa Core]

    [ NAS OMV 5.xx (Usul) @ NanoPI M4 ]

    [ Nextcloud 18.0.4 @ ODROID C2 ]

    [ Motioneye @ RPi4]

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!