S.M.A.R.T Error

  • It appears there maybe a bug in OMV. Whenever I tried to enable S.M.A.R.T in the OMV Control Panel while S.M.A.R.T notifications are enabled, I get the error below. I can enable S.M.A.R.T while the notifications are not enable, but I find this counter-productive as I would like to receive notifications from S.M.A.R.T. Can anyone help with this at all please? Has anyone come across this before?


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color smartmontools 2>&1' with exit code '1': debian:

    ----------

    ID: configure_default_smartmontools

    Function: file.managed

    Name: /etc/default/smartmontools

    Result: True

    Comment: File /etc/default/smartmontools is in the correct state

    Started: 09:09:16.010672

    Duration: 26.168 ms

    Changes:

    ----------

    ID: divert_default_smartmontools

    Function: omv_dpkg.divert_add

    Name: /etc/default/smartmontools

    Result: True

    Comment: Leaving 'local diversion of /etc/default/smartmontools to /etc/default/smartmontools.distrib'

    Started: 09:09:16.037274

    Duration: 8.884 ms

    Changes:

    ----------

    ID: configure_smartd_conf

    Function: file.managed

    Name: /etc/smartd.conf

    Result: True

    Comment: File /etc/smartd.conf is in the correct state

    Started: 09:09:16.046469

    Duration: 71.822 ms

    Changes:

    ----------

    ID: divert_smartd_conf

    Function: omv_dpkg.divert_add

    Name: /etc/smartd.conf

    Result: True

    Comment: Leaving 'local diversion of /etc/smartd.conf to /etc/smartd.conf.distrib'

    Started: 09:09:16.118410

    Duration: 10.308 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/usb-WD_Elements_25A3_4341303645344A4B-0:0

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/usb-WD_Elements_25A3_4341303645344A4B-0:0'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:16.130790

    Duration: 1245.38 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/usb-WD_Elements_25A3_31454A455647454E-0:0

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/usb-WD_Elements_25A3_31454A455647454E-0:0'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.376473

    Duration: 35.666 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/usb-WD_Elements_2620_57583231444139414B33455A-0:0

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/usb-WD_Elements_2620_57583231444139414B33455A-0:0'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.412496

    Duration: 29.113 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/ata-ST2000LM005_HN-M201AAD_H3743H46AA5AK3

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST2000LM005_HN-M201AAD_H3743H46AA5AK3'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.441946

    Duration: 39.739 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/ata-ST1000LM010-9YH146_Z1011P6D

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST1000LM010-9YH146_Z1011P6D'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.482022

    Duration: 23.73 ms

    Changes:

    ----------

    ID: start_smartmontools_service

    Function: service.running

    Name: smartmontools

    Result: False

    Comment: Service smartmontools is already enabled, and is dead

    Started: 09:09:17.506725

    Duration: 73.628 ms

    Changes:


    Summary for debian

    ------------

    Succeeded: 9

    Failed: 1

    ------------

    Total states run: 10

    Total run time: 1.564 s


    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color smartmontools 2>&1' with exit code '1': debian:

    ----------

    ID: configure_default_smartmontools

    Function: file.managed

    Name: /etc/default/smartmontools

    Result: True

    Comment: File /etc/default/smartmontools is in the correct state

    Started: 09:09:16.010672

    Duration: 26.168 ms

    Changes:

    ----------

    ID: divert_default_smartmontools

    Function: omv_dpkg.divert_add

    Name: /etc/default/smartmontools

    Result: True

    Comment: Leaving 'local diversion of /etc/default/smartmontools to /etc/default/smartmontools.distrib'

    Started: 09:09:16.037274

    Duration: 8.884 ms

    Changes:

    ----------

    ID: configure_smartd_conf

    Function: file.managed

    Name: /etc/smartd.conf

    Result: True

    Comment: File /etc/smartd.conf is in the correct state

    Started: 09:09:16.046469

    Duration: 71.822 ms

    Changes:

    ----------

    ID: divert_smartd_conf

    Function: omv_dpkg.divert_add

    Name: /etc/smartd.conf

    Result: True

    Comment: Leaving 'local diversion of /etc/smartd.conf to /etc/smartd.conf.distrib'

    Started: 09:09:16.118410

    Duration: 10.308 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/usb-WD_Elements_25A3_4341303645344A4B-0:0

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/usb-WD_Elements_25A3_4341303645344A4B-0:0'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:16.130790

    Duration: 1245.38 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/usb-WD_Elements_25A3_31454A455647454E-0:0

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/usb-WD_Elements_25A3_31454A455647454E-0:0'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.376473

    Duration: 35.666 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/usb-WD_Elements_2620_57583231444139414B33455A-0:0

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/usb-WD_Elements_2620_57583231444139414B33455A-0:0'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.412496

    Duration: 29.113 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/ata-ST2000LM005_HN-M201AAD_H3743H46AA5AK3

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST2000LM005_HN-M201AAD_H3743H46AA5AK3'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.441946

    Duration: 39.739 ms

    Changes:

    ----------

    ID: enable_smart_on_/dev/disk/by-id/ata-ST1000LM010-9YH146_Z1011P6D

    Function: cmd.run

    Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST1000LM010-9YH146_Z1011P6D'

    Result: True

    Comment: onlyif condition is false

    Started: 09:09:17.482022

    Duration: 23.73 ms

    Changes:

    ----------

    ID: start_smartmontools_service

    Function: service.running

    Name: smartmontools

    Result: False

    Comment: Service smartmontools is already enabled, and is dead

    Started: 09:09:17.506725

    Duration: 73.628 ms

    Changes:


    Summary for debian

    ------------

    Succeeded: 9

    Failed: 1

    ------------

    Total states run: 10

    Total run time: 1.564 s in /usr/share/php/openmediavault/system/process.inc:197

    Stack trace:

    #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()

    #1 /usr/share/openmediavault/engined/rpc/config.inc(170): OMV\Engine\Module\ServiceAbstract->deploy()

    #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)

    #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusRW...', '/tmp/bgoutput5T...')

    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))

    #7 /usr/share/openmediavault/engined/rpc/config.inc(192): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)

    #8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)

    #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)

    #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)

    #12 {main}

    • Official Post

    What is the output of systemctl status smartmontools. Are there any helpful information in the journal? Maybe run journalctl -f while applying the config changes.

  • Not seeing much wrong when I run journatctl -f:


    Jul 29 11:19:43 OMVNAS systemd[911336]: Listening on Podman API Socket.

    Jul 29 11:19:43 OMVNAS systemd[911336]: Listening on D-Bus User Message Bus Socket.

    Jul 29 11:19:43 OMVNAS systemd[911336]: Reached target Sockets.

    Jul 29 11:19:43 OMVNAS systemd[911336]: Reached target Basic System.

    Jul 29 11:19:43 OMVNAS systemd[1]: Started User Manager for UID 1000.

    Jul 29 11:19:43 OMVNAS systemd[911336]: Reached target Main User Target.

    Jul 29 11:19:43 OMVNAS systemd[911336]: Startup finished in 692ms.

    Jul 29 11:19:43 OMVNAS systemd[1]: Started Session 3728 of user user.

    Jul 29 11:19:55 OMVNAS sudo[911375]: user: TTY=pts/0 ; PWD=/ ; USER=root ; COMMAND=/usr/bin/journalctl -f

    Jul 29 11:19:55 OMVNAS sudo[911375]: pam_unix(sudo:session): session opened for user root(uid=0) by user(uid=1000)

    Jul 29 11:20:51 OMVNAS systemd[1]: Started /bin/systemctl start smartmontools.service.

    Jul 29 11:20:51 OMVNAS systemd[1]: Condition check resulted in Self Monitoring and Reporting Technology (SMART) Daemon being skipped.

    Jul 29 11:20:51 OMVNAS systemd[1]: run-r11ad609f453149608876594ecbfd1fd4.scope: Succeeded.


    But the status of smartmonttools states condition failed:


    ● smartmontools.service - Self Monitoring and Reporting Technology (SMART) Daemon

    Loaded: loaded (/lib/systemd/system/smartmontools.service; enabled; vendor preset: enabled)

    Active: inactive (dead)

    Condition: start condition failed at Fri 2022-07-29 11:21:44 BST; 38s ago

    └─ ConditionVirtualization=no was not met

    Docs: man:smartd(8)

    man:smartd.conf(5)

  • OK I probably have to make an overriding file in /etc/systemd/system that does not have the ConditionVirtualization line as there are physical USB HDD that are passed through to my VM that I wish to monitor. Thanks for your help.

  • votdev

    Added the Label resolved
  • votdev

    Added the Label OMV 6.x

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!