OpenMediaVault-3.0.89
在执行应用升级
1 2 |
$ sudo apt-get update $ sudo apt-get upgrade |
重启无法自动挂载磁盘,查看系统日志,看到如下内容:
1 2 3 4 5 6 |
Oct 13 22:53:54 openmediavault systemd[1]: systemd-fsck@dev-disk-by\x2duuid-7909fba8\x2dcc50\x2d430f\x2d986f\x2d9db4ba7caa3c.service: Job systemd-fsck@dev-disk-by\x2duuid-7909fba8\x2dcc50\x2d430f\x2d986f\x2d9db4ba7caa3c.service/start failed with result 'dependency'. Oct 13 22:53:54 openmediavault systemd[1]: dev-disk-by\x2duuid-7909fba8\x2dcc50\x2d430f\x2d986f\x2d9db4ba7caa3c.device: Job dev-disk-by\x2duuid-7909fba8\x2dcc50\x2d430f\x2d986f\x2d9db4ba7caa3c.device/start failed with result 'timeout'. Oct 13 22:54:25 openmediavault monit[1551]: 'collectd' process is not running Oct 13 22:54:25 openmediavault monit[1551]: 'collectd' trying to restart Oct 13 22:54:25 openmediavault monit[1551]: 'collectd' start: '/bin/systemctl start collectd' Oct 13 22:54:55 openmediavault monit[1551]: 'collectd' failed to start (exit status 0) -- no output |
这个原因是由于collectd
的升级导致了无法使用systemd
来启动。而Openmediavaule
加载硬盘的时候依赖collectd
模块,这个模块的启动问题导致全部磁盘都无法加载。
目前的做法是升级到最新的OpenMediaVault-4.0
,参考OpenMediaVault系统升级。
但是升级后会遇到如下错误:
1 |
Oct 14 18:01:10 openmediavault collectd[1081]: rrdcached plugin: Failed to connect to RRDCacheD at unix:/var/run/rrdcached.sock: Unable to connect to rrdcached: No such file or directory (status=2) |
以及
1 2 3 4 |
Oct 14 18:19:28 openmediavault monit[1053]: 'omv-engined' process is not running Oct 14 18:19:28 openmediavault monit[1053]: 'omv-engined' trying to restart Oct 14 18:19:28 openmediavault monit[1053]: 'omv-engined' start: '/bin/systemctl start openmediavault-engined' Oct 14 18:19:59 openmediavault monit[1053]: 'omv-engined' failed to start (exit status 1) -- '/bin/systemctl start openmediavault-engined': Failed to start openmediavault-engined.service: Unit openmediavault-engined.service is masked. |
修复方法为:
1 2 3 4 5 6 7 8 9 |
$ omv-mkconf collectd $ omv-mkconf rrdcached $ omv-mkconf monit $ sudo systemctl unmask openmediavault-engined.service $ sudo reboot |