The location of the plugin in the GUI is under storage and not services like most other plugins.
Btrfs/ZFS support
-
- OMV 1.0
- fulgas
-
-
Hi
I am having some problem with an empty media library in Mediabrowser Server after a reboot.
The issue is described here: openmediavault-mediabrowser plugin --- post 61391
The issue seems to be that the ZFS Volume is mounted a little to late so that when MBS starts it marks it as beeing "offline".
A library rescan or restart of the MBS service brings back all my files almost instantly --- see post 61519 same thread.
Media files I put on my systems disk are not affected ( I did that to test whether it is Volume/drive related or not).Does this sound plausible? (ZFS is Raid-Z2 with 5 x 5TB) Is there any way to speed things up or do I have to work around that by either delaying MBS startup or triggering a rescan/restart via script after X seconds?
-
-
-
I did he was part of the conversation. He uses it and it works fine for him, no issues whatsoever.
I was asked to report the issue here for now because MBS works fine otherwise - I am kinda trapped
-
You can try and move the mb service to the end, so almost every other daemon is running before mb starts.
-
Yea! That would be an idea.
Which file do I have to edit?
-
-
Ok same issue on MBS forum, I will ask there. Thx for the help.
-
I am kind of busy right now, take a look here
https://wiki.debian.org/LSBInitScripts
Also I've found out that MB starts just after zfs mount in my machine, so that might be a problem
-
I will start rename it
s99mediabrowser and hope it will suffice as a dirty fix until some real bugfix will come along. I think the more people use MBS under linux the more the problem will occur and therefore the chance for a official fix.
-
-
Nou Nou Nou, please read/investigate further, DO NOT RENAME the S99 none of them. I will paste a solution later for delaying services as It should be done properly, look on google for /etc/insserv/overrides/ folder
-
oki
-
I think mean something like this:
### BEGIN INIT INFO
# Provides: s02mediabrowser ...../init.d/mediabrowser
# Required-Start: @all / $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFOall should tell insserv to start the service at the last point, the other option until local FS are mounted (but I think that would not be enough time)
-
-
That's incorrect, I've sent you a PM.
-
Ok. This problem just appeared now, the mounting of ZFS datasets and pools is happening way way too late in the boot sequence (is the last one executed actually), affecting other services that depend on access to those shares inside those datasets (media browser plugin).
Perform the following changes at your own risk, this will enable zfs mounts at runlevel S (single user) mode, that's usually where all fs are mounted.
nano /etc/insserv.conf, at this line
$local_fs +mountall +mountall-bootclean +mountoverflowtmp +umountfs add zfs to the end like this
$local_fs +mountall +mountall-bootclean +mountoverflowtmp +umountfs zfs
then nano /etc/init.d/zfs-mount, lines
Change them to
Activate boot reordering with
insserv -v -d zfs-mountThis problem comes from the debian-zfs package which is not provided by OMV, please forward a request for change at the corresponding website. The plugin is only intended for managing pools, fs and zvol's
Reference: http://wiki.complete.org/Conve…Activating_init.d_changes
-
I was about to report the bug at Debian.
The reportbug tool says new versions are available - even in stable. Is there a "safe" way to test those if that bug is already fixed?Output reportbug tool:
for a similar-looking filename in an installed package [Y|n|q|?]? y
Finding package for 'zfs'...
Resolved as '/sbin/zfs'.
Using package 'zfsutils'.
A package named 'zfs' does not appear to be installed on your system; however,
'zfsutils' contains a file named '/sbin/zfs'. Do you want to file your report
on the package reportbug found [Y|n|q|?]? y
Getting status for zfsutils...
Checking for newer versions at madison...Your version (0.6.3-1~wheezy) of zfsutils appears to be out of date.
The following newer release(s) are available in the Debian archive:
stable: 8.1-4+squeeze1
testing: 9.0-3
unstable: 10.1~svn272500-1 -
-
Perform the following changes at your own risk, this will enable zfs mounts at runlevel S (single user) mode, that's usually where all fs are mounted.
Tested with success on my system. Big thanks for finding this. I think I'll need to collect all special things required to make zfs work as expected... -
Zfs utils are provided by zfsonlinux repo. That one you're reporting is probably the one from debian kfreebsd kernel. Which yesterday I examined and realized that has zfs mount at runlevel S, that means there aware of the problem. What I am afraid is that I see that this is not gonna get a fix upstream, so maybe will have to find someone our own solution
-
Cleaner solution, without intervening insserv.conf which I am not sure is allowed
insserv -r -f zfs-mount
nano /etc/insserv/overrides/zfs-mount
Paste the following
Code
Alles anzeigen### BEGIN INIT INFO # Provides: zvol zfs zfs-mount # Required-Start: $local_fs # Required-Stop: # Should-Start: # Should-Stop: # X-Start-After: # X-Stop-After: umountfs # Default-Start: S # Default-Stop: 0 6 # Short-Description: Import and mount ZFS pools, filesystems and volumes # Description: Run the `zfs import`, `zfs mount -a`, `zfs umount -a` or # `zfs export` command. ### END INIT INFO
update-rc.d zfs-mount defaults, reboot and this time zfs should be mounted at single user mode boot
Will have to find a way to execute this runlevel shift at postinst, as I commented before I see no upstream version being corrected. Yesterday i swapped my repos to Wheezy daily for zfsonlinux, not a single fix in the headers.
Discussion here
https://groups.google.com/a/zf…c/zfs-discuss/RBCFSdmDdSM -
-
-
OH C'mon! Put a warning on the previous steps. I already done'm and rebooted the server just to realize there is a cleaner way and then a cleanest.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!