Probably. Uninstall all of the zfs packages and reinstall.
Yes that did it! Thanks for your help!
Probably. Uninstall all of the zfs packages and reinstall.
Yes that did it! Thanks for your help!
hm same result.
Update:
https://github.com/zfsonlinux/zfs/issues/5816 looks like I'm having the same issues
thanks for your reply. I think I found the problem
I tried to update the Plugin with "apt-get install openmediavault-zfs"
But this gave me a bunch of errors (see below). Nevertheless the GUI is up and running again. Should I worry about thos erros?
root@GRE-OMV:~# apt-get install openmediavault-zfs
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
debian-zfs ifenslave-2.6 libbind9-80 libclass-isa-perl libdns88 libdumbnet1 libffi5 libgd2-noxpm libgssglue1 libicu48 libisc84 libisccc80 libisccfg82 libjpeg8 liblwres80
libpango1.0-0 libparted0debian1 librtmp0 libswitch-perl libsystemd-login0 php-json-schema python3.2 python3.2-minimal ttf-dejavu-core
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden installiert:
libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed zfsutils-linux
Vorgeschlagene Pakete:
zfs-initramfs zfs-dracut
Die folgenden NEUEN Pakete werden installiert:
libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed zfsutils-linux
Die folgenden Pakete werden aktualisiert (Upgrade):
openmediavault-zfs
1 aktualisiert, 6 neu installiert, 0 zu entfernen und 23 nicht aktualisiert.
Es müssen noch 0 B von 1.056 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 5.002 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Vormals nicht ausgewähltes Paket libuutil1linux wird gewählt.
(Lese Datenbank ... 77074 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libuutil1linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Entpacken von libuutil1linux (0.6.5.9-2~bpo8+1) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libuutil1linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
Versuch, »/lib/libuutil.so.1.0.1« zu überschreiben, welches auch in Paket libuutil1 0.6.5.7-8-wheezy ist
Vormals nicht ausgewähltes Paket libnvpair1linux wird gewählt.
Vorbereitung zum Entpacken von .../libnvpair1linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Entpacken von libnvpair1linux (0.6.5.9-2~bpo8+1) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libnvpair1linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
Versuch, »/lib/libnvpair.so.1.0.1« zu überschreiben, welches auch in Paket libnvpair1 0.6.5.7-8-wheezy ist
Vormals nicht ausgewähltes Paket libzpool2linux wird gewählt.
Vorbereitung zum Entpacken von .../libzpool2linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Entpacken von libzpool2linux (0.6.5.9-2~bpo8+1) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libzpool2linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
Versuch, »/lib/libzpool.so.2.0.0« zu überschreiben, welches auch in Paket libzpool2 0.6.5.7-8-wheezy ist
dpkg-deb: Fehler: Unterprozess einfügen wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet
Vormals nicht ausgewähltes Paket libzfs2linux wird gewählt.
Vorbereitung zum Entpacken von .../libzfs2linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Entpacken von libzfs2linux (0.6.5.9-2~bpo8+1) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libzfs2linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
Versuch, »/lib/libzfs.so.2.0.0« zu überschreiben, welches auch in Paket libzfs2 0.6.5.7-8-wheezy ist
dpkg-deb: Fehler: Unterprozess einfügen wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet
Vormals nicht ausgewähltes Paket zfsutils-linux wird gewählt.
Vorbereitung zum Entpacken von .../zfsutils-linux_0.6.5.9-2~bpo8+1_amd64.deb ...
Entpacken von zfsutils-linux (0.6.5.9-2~bpo8+1) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/zfsutils-linux_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
Versuch, »/sbin/mount.zfs« zu überschreiben, welches auch in Paket zfsutils 0.6.5.7-8-wheezy ist
dpkg-deb: Fehler: Unterprozess einfügen wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet
Vormals nicht ausgewähltes Paket zfs-zed wird gewählt.
Vorbereitung zum Entpacken von .../zfs-zed_0.6.5.9-2~bpo8+1_amd64.deb ...
Entpacken von zfs-zed (0.6.5.9-2~bpo8+1) ...
dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/zfs-zed_0.6.5.9-2~bpo8+1_amd64.deb (--unpack):
Versuch, »/lib/systemd/system/zfs-zed.service« zu überschreiben, welches auch in Paket zfsutils 0.6.5.7-8-wheezy ist
Vorbereitung zum Entpacken von .../openmediavault-zfs_3.0.10_amd64.deb ...
Entpacken von openmediavault-zfs (3.0.10) über (2.1.0) ...
Trigger für openmediavault (3.0.64) werden verarbeitet ...
Restarting engine daemon ...
Fehler traten auf beim Bearbeiten von:
/var/cache/apt/archives/libuutil1linux_0.6.5.9-2~bpo8+1_amd64.deb
/var/cache/apt/archives/libnvpair1linux_0.6.5.9-2~bpo8+1_amd64.deb
/var/cache/apt/archives/libzpool2linux_0.6.5.9-2~bpo8+1_amd64.deb
/var/cache/apt/archives/libzfs2linux_0.6.5.9-2~bpo8+1_amd64.deb
/var/cache/apt/archives/zfsutils-linux_0.6.5.9-2~bpo8+1_amd64.deb
/var/cache/apt/archives/zfs-zed_0.6.5.9-2~bpo8+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alles anzeigen
Realy noone got an idea what to do?
Thanks for your help ryecoaaron but still wasnt able to complete the upgrade. I started over (OMV is running as a VM, a reverted to a clean snapshot).
Here is the protocol of the upgrade process:
1. I started with removing problematic components
2. omv-release-upgrade which gave me the following errors:
dpkg: dependency problems prevent configuration of openmediavault:
openmediavault depends on postfix; however:
Package postfix is not configured yet.
openmediavault depends on bsd-mailx; however:
Package bsd-mailx is not configured yet.
dpkg: error processing package openmediavault (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault-omvextrasorg:
openmediavault-omvextrasorg depends on openmediavault (>= 3.0.47); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-omvextrasorg (--configure):
dependency problems - leaving unconfigured
Alles anzeigen
3. reboot
4. as suggested: apt-get install postfix bsd-mailx
5. omv-initsystem terminated with an error:
ERROR: '/var/lib/rrdcached/db//localhost/df-zfs_root-fs_documents/df_complex-free.rrd' is not an RRD file
run-parts: /usr/share/openmediavault/initsystem/99rrd exited with return code 1
The webui is back online but i can't login:
Any ideas?
thanks for your reply. But "-f install" gave me a bunch of errors:
apt-get -f install
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
ifenslave-2.6 libbind9-80 libclass-isa-perl libdns88 libffi5 libgd2-noxpm libgssglue1 libicu48 libisc84 libisccc80 libisccfg82 libjpeg8 liblwres80
libpango1.0-0 libparted0debian1 librtmp0 libswitch-perl libsystemd-login0 php-json-schema python3.2 python3.2-minimal ttf-dejavu-core
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
4 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
postfix (2.11.3-1) wird eingerichtet ...
Postfix configuration was untouched. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
Running newaliases
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
bsd-mailx (8.1.2-0.20141216cvs-2) wird eingerichtet ...
openmediavault (3.0.63) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/apt/apt.conf.d/99openmediavault-apt-hooks wird installiert ...
Neue Version der Konfigurationsdatei /etc/apt/apt.conf.d/99openmediavault-mkaptidx wird installiert ...
Neue Version der Konfigurationsdatei /etc/apt/post-invoke.d/10install-cleanup wird installiert ...
Neue Version der Konfigurationsdatei /etc/bash_completion.d/omv-mkconf wird installiert ...
Neue Version der Konfigurationsdatei /etc/cron.daily/openmediavault-cron-apt wird installiert ...
Neue Version der Konfigurationsdatei /etc/cron.daily/openmediavault-flush-mailq wird installiert ...
Neue Version der Konfigurationsdatei /etc/cron.daily/openmediavault-mdadm wird installiert ...
Neue Version der Konfigurationsdatei /etc/cron.daily/openmediavault-pending_config_changes wird installiert ...
Neue Version der Konfigurationsdatei /etc/cron.weekly/openmediavault-update-smart-drivedb wird installiert ...
Neue Version der Konfigurationsdatei /etc/default/openmediavault wird installiert ...
Neue Version der Konfigurationsdatei /etc/network/if-post-down.d/openmediavault-issue wird installiert ...
Neue Version der Konfigurationsdatei /etc/network/if-up.d/openmediavault-issue wird installiert ...
Neue Version der Konfigurationsdatei /etc/openmediavault/php.ini wird installiert ...
Neue Version der Konfigurationsdatei /etc/pam.d/openmediavault wird installiert ...
Neue Version der Konfigurationsdatei /etc/pam.d/openmediavault-webgui wird installiert ...
Neue Version der Konfigurationsdatei /etc/php5/fpm/pool.d/openmediavault-webgui.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/udev/rules.d/99-openmediavault-md-raid.rules wird installiert ...
Neue Version der Konfigurationsdatei /etc/udev/rules.d/99-openmediavault-nonrot.rules wird installiert ...
Neue Version der Konfigurationsdatei /etc/udev/rules.d/99-openmediavault-scheduler.rules wird installiert ...
Updating configuration database ...
Running migration conf_3.0.9
Running migration conf_3.0.11
Running migration conf_3.0.12
Running migration conf_3.0.15
Running migration conf_3.0.23
Running migration conf_3.0.37
Running migration conf_3.0.38
Updating configuration ...
Failed to get D-Bus connection: Unbekannter Fehler -1
Failed to get D-Bus connection: Unbekannter Fehler -1
Clearing symlinks in /etc/ssl/certs...done.
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Failed to get D-Bus connection: Unbekannter Fehler -1
Failed to get D-Bus connection: Unbekannter Fehler -1
Failed to get D-Bus connection: Unbekannter Fehler -1
Failed to get D-Bus connection: Unbekannter Fehler -1
Failed to get D-Bus connection: Unbekannter Fehler -1
Trigger für openmediavault (3.0.63) werden verarbeitet ...
Restarting engine daemon ...
Updating locale files ...
Updating file permissions ...
Purging internal cache ...
Trigger für initramfs-tools (0.120+deb8u2) werden verarbeitet ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
openmediavault-omvextrasorg (3.4.21) wird eingerichtet ...
Initialize configuration
OK
OK
OK
OK
OK
OK
OK
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
Found linux image: /boot/vmlinuz-3.16.0-0.bpo.4-amd64
Found initrd image: /boot/initrd.img-3.16.0-0.bpo.4-amd64
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
done
Trigger für libc-bin (2.19-18+deb8u7) werden verarbeitet ...
Trigger für openmediavault (3.0.63) werden verarbeitet ...
Updating locale files ...
Updating file permissions ...
Purging internal cache ...
Restarting engine daemon ...
Action failed -- Other action already in progress -- please try again later
Failed to get D-Bus connection: Unbekannter Fehler -1
dpkg: Fehler beim Bearbeiten des Paketes openmediavault (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
openmediavault
Creating index of upgradeable packages ...
Creating index of openmediavault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alles anzeigen
ah ok got that wrong. Thanks for the hint. Now the upgrade starts but I got stuck at this point:
dpkg: dependency problems prevent configuration of openmediavault:
openmediavault depends on postfix; however:
Package postfix is not configured yet.
openmediavault depends on bsd-mailx; however:
Package bsd-mailx is not configured yet.
dpkg: error processing package openmediavault (--configure):
dependency problems - leaving unconfigured
....
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
Errors were encountered while processing:
postfix
bsd-mailx
openmediavault
openmediavault-omvextrasorg
Creating index of upgradeable packages ...
Creating index of openmediavault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alles anzeigen
Is there a way to fix this manually ?
I'm talking about the zfs on linux packagerepository. I did the following
omv-release-upgrade
....
Get:34 http://mirror.1und1.de jessie-updates/contrib Translation-en [14 B]
Get:35 http://mirror.1und1.de jessie-updates/main Translation-en [12.6 kB]
Get:36 http://mirror.1und1.de jessie-updates/non-free Translation-en [496 B]
Get:37 http://mirror.1und1.de jessie-updates/main amd64 Packages [15.5 kB]
Get:38 http://mirror.1und1.de jessie-updates/non-free amd64 Packages [516 B]
Err http://archive.zfsonlinux.org jessie/main amd64 Packages
404 Not Found
Ign http://archive.zfsonlinux.org jessie/main Translation-en
Ign http://archive.zfsonlinux.org jessie/main Translation-de
Ign http://archive.zfsonlinux.org jessie/main Translation-de_DE
Ign https://dl.bintray.com jessie/main Translation-en
Ign https://dl.bintray.com jessie/main Translation-de
Ign https://dl.bintray.com jessie/main Translation-de_DE
Ign https://dl.bintray.com jessie/main Translation-en
Ign https://dl.bintray.com jessie/main Translation-de
Ign https://dl.bintray.com jessie/main Translation-de_DE
Fetched 21.4 MB in 7s (2981 kB/s)
W: Failed to fetch http://archive.zfsonlinux.org/debian/dists/jessie/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Alles anzeigen
My plan was to deinstall the zfs plugin, upgrade omv and to reinstall the zfs plugin afterwards. But this didn't work either. Any suggestions?
Hi,
zfs on linux support for debian wheezy has been discontinued (http://list.zfsonlinux.org/pip…2016-December/026742.html). So I have to upgrade to OMV 3.x.
Because of the none existent zfs repository apt-get throws an error and omv-release-upgrade fails.
Anyone knows how to performe the following steps:
1) clean deinstall of zfs plugin
2) upgrade omv
3) reinstall zfs plugin
I tryied to deinstall the plugin via web interfaces without success. I looks like there are some leftovers...
Thanks in advance!
Update:
Setting up the deamon was easier than expected. For everyone who is interested in this feature, here is a small howto:
1. If not already done setup postfix (easiest way is to use the OMV webgui System->Notifications). After entering all needed information hit the "Send Test mail" button to make sure you recieve email notifications from your box.
2. edit the ZFS Event Daemon (ZED) config file: nano /etc/zfs/zed.d/zed.rc
Actualy you only have to remove some comments and supply the recievers email address:
##
# zed.rc
#
# This file should be owned by root and permissioned 0600.
##
##
# Absolute path to the debug output file.
#
# ZED_DEBUG_LOG="/tmp/zed.debug.log"
##
# Email address of the zpool administrator for receipt of notifications;
# multiple addresses can be specified if they are delimited by whitespace.
# Email will only be sent if ZED_EMAIL_ADDR is defined.
# Disabled by default; uncomment to enable.
#
ZED_EMAIL_ADDR="MY-ADDRESS@domain.net"
##
# Name or path of executable responsible for sending notifications via email;
# the mail program must be capable of reading a message body from stdin.
# Email will only be sent if ZED_EMAIL_ADDR is defined.
#
ZED_EMAIL_PROG="mail"
##
# Command-line options for ZED_EMAIL_PROG.
# The string @ADDRESS@ will be replaced with the recipient email address(es).
# The string @SUBJECT@ will be replaced with the notification subject;
# this should be protected with quotes to prevent word-splitting.
# Email will only be sent if ZED_EMAIL_ADDR is defined.
#
ZED_EMAIL_OPTS="-s '@SUBJECT@' @ADDRESS@"
##
# Default directory for zed lock files.
#
ZED_LOCKDIR="/var/lock"
##
# Minimum number of seconds between notifications for a similar event.
#
ZED_NOTIFY_INTERVAL_SECS=3600
##
# Notification verbosity.
# If set to 0, suppress notification if the pool is healthy.
# If set to 1, send notification regardless of pool health.
#
ZED_NOTIFY_VERBOSE=1
##
# Pushbullet access token.
# This grants full access to your account -- protect it accordingly!
# <https://www.pushbullet.com/get-started>
# <https://www.pushbullet.com/account>
# Disabled by default; uncomment to enable.
#
#ZED_PUSHBULLET_ACCESS_TOKEN=""
##
# Pushbullet channel tag for push notification feeds that can be subscribed to.
# <https://www.pushbullet.com/my-channel>
# If not defined, push notifications will instead be sent to all devices
# associated with the account specified by the access token.
# Disabled by default; uncomment to enable.
#
#ZED_PUSHBULLET_CHANNEL_TAG=""
##
# Default directory for zed state files.
#
ZED_RUNDIR="/var/run"
##
# Replace a device with a hot spare after N checksum errors are detected.
# Disabled by default; uncomment to enable.
#
#ZED_SPARE_ON_CHECKSUM_ERRORS=10
##
# Replace a device with a hot spare after N I/O errors are detected.
# Disabled by default; uncomment to enable.
#
#ZED_SPARE_ON_IO_ERRORS=1
##
# The syslog priority (e.g., specified as a "facility.level" pair).
#
ZED_SYSLOG_PRIORITY="daemon.notice"
##
# The syslog tag for marking zed events.
#
ZED_SYSLOG_TAG="zed"
Alles anzeigen
3. restart ZED
4. to test the daemon we will corrupt some data on the first partition of one of the drives which are part of the pool
(CAUTION: create a test pool for this!! don't run this commands on your production pool!!!!)
if aren't able to create a test pool just skip this step. scrubbing of a healthy pool will still create a "scrub finished message"
5. scrub the pool
6. check the status of the pool by running
pool: zfs_test_pool
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-9P
scan: scrub repaired 0 in 0h0m with 0 errors on Sat Jul 23 23:59:33 2016
config:
NAME STATE READ WRITE CKSUM
zfs_test_pool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
xen-vbd-832 ONLINE 0 0 0
xen-vbd-5632 ONLINE 0 0 8
errors: No known data errors
Alles anzeigen
Now you should have two new mails with status updates in your inbox
Hi,
I'm curious if someone managed to setup the ZFS Event Daemon. It would be a nice to have feature for the ZFS plugin.
For more information what the ZED is you can check out this blog post: http://louwrentius.com/the-zfs-event-daemon-on-linux.html
Best regards Monchi
unintentionally, yes!
thanks for the hint. I'll do a reinstall with the 64bit version!
2.2.5 (Stone burner)
Hi,
i just reinstalled my system. After installation of updates and the backport kernel I want to install the zfs plugin.
In omv-extras the zfs-repo isn't listed anymore:
Is the zfs plugin discontinued?
line 2:can't find /z1_p01 in /etc/fstab or /etc/mtab' in /usr/share/openmediavault/engined/module/fstab.inc:90
thanks for the hin!
shame on me
Hi all,
I've delete one of my ZFSs pools. Now OMV trys to mount this non existing pool everytime I try to apply changes to my zfs configuration (via WebUi).
I get the following error message:
Error #6000:
exception 'OMVException' with message 'Failed to mount 'z1_p01': mount: can't find /z1_p01 in /etc/fstab or /etc/mtab' in /usr/share/openmediavault/engined/module/fstab.inc:90
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleFsTab->startService()
#1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
#4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
#5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
#8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
#9 {main}
Alles anzeigen
The deletion of the pool created some left overs. Can anyone point me to the configuration file where I can fix this problem manually?
Best regards
Monchi
ok samba backports ships with four init scripts but the default samba starts the other three as clearly states in it content.
what you did will leave you with no netbios daemon, the Windows announce thing.
You can try and revert what you did and add the runlevels manually to init.d/samba
I've added the following informations to the /etc/init.d/samba script:
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
after that the error is gone. Thank you very much!
in /etc/init.d/ there is second script which seems to start the samba service. It's called smbd:
#!/bin/sh
### BEGIN INIT INFO
# Provides: smbd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Should-Start: slapd cups
# Should-Stop: slapd cups
# Short-Description: start Samba SMB/CIFS daemon (smbd)
### END INIT INFO
PIDDIR=/var/run/samba
SMBDPID=$PIDDIR/smbd.pid
# clear conflicting settings from the environment
unset TMPDIR
# See if the daemons are there
test -x /usr/sbin/smbd || exit 0
. /lib/lsb/init-functions
case $1 in
start)
if init_is_upstart; then
exit 1
fi
SERVER_ROLE=`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`
if [ "$SERVER_ROLE" = "active directory domain controller" ]; then
exit 0
fi
log_daemon_msg "Starting SMB/CIFS daemon" smbd
# Make sure we have our PIDDIR, even if it's on a tmpfs
install -o root -g root -m 755 -d $PIDDIR
if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/smbd -- -D; then
log_end_msg 1
exit 1
fi
log_end_msg 0
;;
stop)
if init_is_upstart; then
exit 0
fi
log_daemon_msg "Stopping SMB/CIFS daemon" smbd
start-stop-daemon --stop --quiet --pidfile $SMBDPID
# Wait a little and remove stale PID file
sleep 1
if [ -f $SMBDPID ] && ! ps h `cat $SMBDPID` > /dev/null
then
# Stale PID file, remove it (should be removed by
# smbd itself IMHO).
rm -f $SMBDPID
fi
log_end_msg 0
;;
reload)
log_daemon_msg "Reloading /etc/samba/smb.conf" smbd
start-stop-daemon --stop --quiet --signal HUP --pidfile $SMBDPID
log_end_msg 0
;;
restart|force-reload)
if init_is_upstart; then
exit 1
fi
$0 stop
sleep 1
$0 start
;;
status)
status_of_proc -p $SMBDPID /usr/sbin/smbd smbd
exit $?
;;
*)
echo "Usage: /etc/init.d/smbd {start|stop|reload|restart|force-reload|status}"
exit 1
;;
esac
exit 0
Alles anzeigen
My guess it that the samba script is a leftover from the old version und the smbd is the current version.
Samba version installed:
EDIT: a quick an dirty fix is to copy the content from smbd to samba file but i would prefere a clean solution. any ideas?
Hi ryecoaaron,
thanks for the reply but this still doesn't fix the problem.
Executing update-rc.d samba enable throws the same error:
update-rc.d: using dependency based boot sequencing
update-rc.d: error: samba Default-Start contains no runlevels, aborting.
This is the current start script:
#!/bin/sh
### BEGIN INIT INFO
# Provides: samba
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: ensure Samba daemons are started (nmbd and smbd)
### END INIT INFO
set -e
# start nmbd, smbd and samba-ad-dc unconditionally
# the init scripts themselves check if they are needed or not
case $1 in
start)
/etc/init.d/nmbd start
/etc/init.d/smbd start
/etc/init.d/samba-ad-dc start
;;
stop)
/etc/init.d/samba-ad-dc stop
/etc/init.d/smbd stop
/etc/init.d/nmbd stop
;;
reload)
/etc/init.d/smbd reload
;;
restart|force-reload)
/etc/init.d/nmbd "$1"
/etc/init.d/smbd "$1"
/etc/init.d/samba-ad-dc "$1"
;;
status)
status=0
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null || true`
SERVER_ROLE=`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1 || true`
if [ "$SERVER_ROLE" != "active directory domain controller" ]; then
if [ "$NMBD_DISABLED" != "Yes" ]; then
/etc/init.d/nmbd status || status=$?
fi
/etc/init.d/smbd status || status=$?
else
/etc/init.d/samba-ad-dc status || status=$?
fi
exit $status
;;
*)
echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload|status}"
exit 1
;;
esac
Alles anzeigen
Hi,
ich upgrade from OMV 1.X to OMV 2.X.
After that I cant change any options in the smb/cifs configuration. When i try to apply the changes I get the following error:
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'export LANG=C; update-rc.d 'samba' disable 2>&1': update-rc.d: error: samba Default-Start contains no runlevels, aborting.
update-rc.d: using dependency based boot sequencing' in /usr/share/php/openmediavault/initscript.inc:90
Stack trace:
#0 /usr/share/php/openmediavault/initscript.inc(56): OMVSysVInitScript->update(true)
#1 /usr/share/openmediavault/engined/module/samba.inc(64): OMVSysVInitScript->exec()
#2 /usr/share/openmediavault/engined/rpc/config.inc(164): OMVModuleSamba->stopService()
#3 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#5 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
#6 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
#7 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#8 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#9 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
#10 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
#11 {main}
Alles anzeigen
I think there is something wrong with the startup script. Anyone got an idea how to fix this? If you need any futher log files please let me know.
Regards Monchi!