So the ZFS Plugin was updatet today and erverything works fine with a fresh installed and updatet omv 4.1.7 with 4.16.0.bpo.1. Massive thanks to subzero79 and ryecoaaron for updating the plugin and helping a novice like me
ZFS device(s) not listed in devices dropdown
-
-
So the ZFS Plugin was updatet today and erverything works fine with a fresh installed and updatet omv 4.1.7 with 4.16.0.bpo.1. Massive thanks to subzero79 and ryecoaaron for updating the plugin and helping a novice like me
Nice.
I have just updated the plugin here too, and can confirm that I now see ZFS pools in the dropdown. Go to the ZFS tab first and accept the config changes, then to the shared folders - and they are there! Nice work @ryecoaaron and @subzero79
@Blabla Your fix is here
1. Enable OMV-Extras Testing in OMV Extras tab
2. apt update
3. apt upgrade - during upgrade select 'N' to any config file changes (to keep yours)
4. Visit ZFS tab and accept changes (yellow banner)You may need to export pools, then import here. You probably won't get a save config changes prompt if you need to (I am guessing).
5. Disable OMV-Extras testing if desired.
6. Go enjoy your pools in the dropdown
-
On my test VM, I did have to import my pools (with force checkbox checked) but after that, everything is working very well even after multiple reboots.
-
Have added comment
Edit: So can this be marked off as solved now? Solution is: Enable OMV extras Testing, Update to latest version, export/import pools via GUI. Disable Testing afterward if desired.
-
Hi,
No change for me with the plugin update… even after an export/import run of my pool.
After I entered the ZFS plugin tab, the mount point vanished from config.xml file.
Code
Alles anzeigenroot@home-server:/etc/openmediavault# diff config.xml config.sav 895a896,905 > <mntent> > <uuid>864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f</uuid> > <fsname>StoragePool</fsname> > <dir>/StoragePool</dir> > <type>zfs</type> > <opts>rw,relatime,xattr,noacl</opts> > <freq>0</freq> > <passno>0</passno> > <hidden>1</hidden> > </mntent>
If I put the correct entry back, everything go back to normal… -
No change for me with the plugin update… even after an export/import run of my pool.
After I entered the ZFS plugin tab, the mount point vanished from config.xml file.
It must not have written the mntent uuid to the custom zfs property. Can you look in the properties for omvzfsplugin:uuid to see if it is there?
-
Nop !
Code
Alles anzeigenroot@home-server:/etc/openmediavault# zfs get all StoragePool NAME PROPERTY VALUE SOURCE StoragePool type filesystem - StoragePool creation jeu. avril 5 22:21 2018 - StoragePool used 5,20T - StoragePool available 2,94T - StoragePool referenced 5,14T - StoragePool compressratio 1.00x - StoragePool mounted yes - StoragePool quota none default StoragePool reservation none default StoragePool recordsize 128K default StoragePool mountpoint /StoragePool default StoragePool sharenfs off default StoragePool checksum on default StoragePool compression off default StoragePool atime off local StoragePool devices on default StoragePool exec on default StoragePool setuid on default StoragePool readonly off default StoragePool zoned off default StoragePool snapdir hidden default StoragePool aclinherit restricted default StoragePool createtxg 1 - StoragePool canmount on default StoragePool xattr on default StoragePool copies 1 default StoragePool version 5 - StoragePool utf8only off - StoragePool normalization none - StoragePool casesensitivity sensitive - StoragePool vscan off default StoragePool nbmand off default StoragePool sharesmb off default StoragePool refquota none default StoragePool refreservation none default StoragePool guid 6902097770564906903 - StoragePool primarycache all default StoragePool secondarycache all default StoragePool usedbysnapshots 60,7G - StoragePool usedbydataset 5,14T - StoragePool usedbychildren 245M - StoragePool usedbyrefreservation 0B - StoragePool logbias latency default StoragePool dedup off default StoragePool mlslabel none default StoragePool sync standard default StoragePool dnodesize legacy default StoragePool refcompressratio 1.00x - StoragePool written 687K - StoragePool logicalused 5,17T - StoragePool logicalreferenced 5,11T - StoragePool volmode default default StoragePool filesystem_limit none default StoragePool snapshot_limit none default StoragePool filesystem_count none default StoragePool snapshot_count none default StoragePool snapdev hidden default StoragePool acltype off default StoragePool context none default StoragePool fscontext none default StoragePool defcontext none default StoragePool rootcontext none default StoragePool relatime off default StoragePool redundant_metadata all default StoragePool overlay off default
-
It must not have written the mntent uuid to the custom zfs property. Can you look in the properties for omvzfsplugin:uuid to see if it is there?
Out of interest, where is this located?Edit: Just checked another box with OMV and it fixes it on that too.
-
Pay attention to the upgrade output log of the plugin. Should insert the object uuid into dataset, and get some messages. Also sf updates their reference in case of export/import. So you can try that.
Also be aware I am gonna disable export button in case of sf reference after this. -
the property shows at the end of each dataset including the root pool.
-
Just tried to set the property manually… but no effect. Do I need to reboot or something ?
Coderoot@home-server:/etc/openmediavault# zfs set omvzfsplugin:uuid=864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f StoragePool root@home-server:/etc/openmediavault# zfs get -s local all StoragePool NAME PROPERTY VALUE SOURCE StoragePool atime off local StoragePool omvzfsplugin:uuid 864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f local
-
If sf are n/a clicking on another node in Omv, and going back to zfs should section should fix them. Are you sure you upgraded the plugin?
-
-
Try to export the pool then import.
-
Already done… and nothing. Strange??? Maybe the property added to the pool/fs isn't enough?
I'm thinking of removing the plugin as I want to update to kernel 4.16 and ZFS 0.7.9 too… I don't think it will remove ZFS DKMS but the fact is that I probably have to delete samba shares. And what about share folders ? Are they going to be deleted too ?
-
Well is suppose to fix the n/a sf. But as long as they have keep record of the mntent uuid in the datasets. See once you import it will look for sf with the old uuid mntent ref change them to new one and update the property.
-
Just tried again, and importing the pool doesn't add the mntent entry in config.xml, and doesn't add the property. I don't understand why...
-
And if you create a dataset? Does it add to the db ?
-
seems like you’re not using datasets below the pool ?
A commit before mine introduced a bug where the root pool will not get added to the mntent db, i corrected that.
Just check in terminal the pacakage is correctly installed. Otherwise reinstall the plugin. The fix was in the backend so no cache needs to be cleared just engined restarted but the package install does that. -
No, just created the pool with the plugin the first time I use it.
Here is the log :
Code
Alles anzeigen# apt-get install --reinstall openmediavault-zfs Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets suivants seront mis à jour : openmediavault-zfs 1 mis à jour, 0 nouvellement installés, 0 à enlever et 11 non mis à jour. Il est nécessaire de prendre 55,5 ko dans les archives. Après cette opération, 5 120 o d'espace disque supplémentaires seront utilisés. Réception de:1 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch/main amd64 openmediavault-zfs amd64 4.0.3 [55,5 kB] 55,5 ko réceptionnés en 0s (186 ko/s) Lecture des fichiers de modifications (« changelog »)... Terminé (Lecture de la base de données... 72758 fichiers et répertoires déjà installés.) Préparation du dépaquetage de .../openmediavault-zfs_4.0.3_amd64.deb ... Dépaquetage de openmediavault-zfs (4.0.3) sur (4.0.2-1) ... Paramétrage de openmediavault-zfs (4.0.3) ... + . /etc/default/openmediavault ++ OMV_CONFIG_FILE=/etc/openmediavault/config.xml ++ OMV_CONFIG_TEMPLATE_FILE=/usr/share/openmediavault/templates/config.xml ++ OMV_PRODUCTINFO_FILE=/usr/share/openmediavault/productinfo.xml ++ OMV_SCRIPTS_DIR=/usr/share/openmediavault/scripts ++ OMV_DATAMODELS_DIR=/usr/share/openmediavault/datamodels ++ OMV_I18N_LOCALE_DIR=/usr/share/openmediavault/locale ++ OMV_MOUNT_DIR=/srv ++ OMV_SHAREDFOLDERS_DIR=/sharedfolders ++ OMV_NFSD_EXPORT_DIR=/export ++ OMV_CACHE_DIR=/var/cache/openmediavault ++ OMV_LOG_DIR=/var/log/openmediavault ++ OMV_SSL_CERTIFICATE_DIR=/etc/ssl ++ OMV_SSL_CERTIFICATE_PREFIX=openmediavault- ++ OMV_SSH_KEYS_DIR=/etc/ssh ++ OMV_SSH_KEY_PREFIX=openmediavault- ++ OMV_DPKGARCHIVE_DIR=/var/cache/openmediavault/archives ++ OMV_DOCUMENTROOT_DIR=/var/www/openmediavault ++ OMV_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d ++ OMV_CONFIGIMPORT_SCRIPTS_DIR=/usr/share/openmediavault/configimport ++ OMV_MKCONF_SCRIPTS_DIR=/usr/share/openmediavault/mkconf ++ OMV_ENGINED_DIR=/usr/share/openmediavault/engined ++ OMV_ENGINED_SO_ADDRESS=/var/lib/openmediavault/engined.sock ++ OMV_ENGINED_SO_OWNERGROUP_NAME=openmediavault-engined ++ OMV_ENGINED_SO_SNDTIMEO=10 ++ OMV_ENGINED_SO_RCVTIMEO=180 ++ OMV_ENGINED_DIRTY_MODULES_FILE=/var/lib/openmediavault/dirtymodules.json ++ OMV_INITSYSTEM_SCRIPTS_DIR=/usr/share/openmediavault/initsystem ++ OMV_INITSYSTEM_FILE=/var/lib/openmediavault/initsystem.req ++ OMV_USERMGMT_DEFAULT_GROUP=users ++ OMV_RRDGRAPH_DIR=/var/lib/openmediavault/rrd ++ OMV_RRDGRAPH_ERROR_IMAGE=/usr/share/openmediavault/icons/rrd_graph_error_64.png ++ OMV_WEBGUI_FILE_OWNERGROUP_NAME=openmediavault-webgui ++ OMV_CONFIGOBJECT_NEW_UUID=fa4b1c66-ef79-11e5-87a0-0002b3a176b4 ++ OMV_DEBUG_SCRIPT=NO ++ OMV_DEBUG_PHP=NO ++ OMV_DEBUG_EXTJS=NO ++ OMV_RSNAPSHOT_CONFS_DIR=/var/lib/openmediavault/rsnapshot.d ++ OMV_RSNAPSHOT_CRONSCRIPT=/var/lib/openmediavault/cron.d/rsnapshot ++ OMV_USBBACKUP_SCRIPTS_DIR=/var/lib/openmediavault/usbbackup.d ++ OMV_APT_USE_KERNEL_BACKPORTS=YES + . /usr/share/openmediavault/scripts/helper-functions ++ . /etc/default/openmediavault +++ OMV_CONFIG_FILE=/etc/openmediavault/config.xml +++ OMV_CONFIG_TEMPLATE_FILE=/usr/share/openmediavault/templates/config.xml +++ OMV_PRODUCTINFO_FILE=/usr/share/openmediavault/productinfo.xml +++ OMV_SCRIPTS_DIR=/usr/share/openmediavault/scripts +++ OMV_DATAMODELS_DIR=/usr/share/openmediavault/datamodels +++ OMV_I18N_LOCALE_DIR=/usr/share/openmediavault/locale +++ OMV_MOUNT_DIR=/srv +++ OMV_SHAREDFOLDERS_DIR=/sharedfolders +++ OMV_NFSD_EXPORT_DIR=/export +++ OMV_CACHE_DIR=/var/cache/openmediavault +++ OMV_LOG_DIR=/var/log/openmediavault +++ OMV_SSL_CERTIFICATE_DIR=/etc/ssl +++ OMV_SSL_CERTIFICATE_PREFIX=openmediavault- +++ OMV_SSH_KEYS_DIR=/etc/ssh +++ OMV_SSH_KEY_PREFIX=openmediavault- +++ OMV_DPKGARCHIVE_DIR=/var/cache/openmediavault/archives +++ OMV_DOCUMENTROOT_DIR=/var/www/openmediavault +++ OMV_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d +++ OMV_CONFIGIMPORT_SCRIPTS_DIR=/usr/share/openmediavault/configimport +++ OMV_MKCONF_SCRIPTS_DIR=/usr/share/openmediavault/mkconf +++ OMV_ENGINED_DIR=/usr/share/openmediavault/engined +++ OMV_ENGINED_SO_ADDRESS=/var/lib/openmediavault/engined.sock +++ OMV_ENGINED_SO_OWNERGROUP_NAME=openmediavault-engined +++ OMV_ENGINED_SO_SNDTIMEO=10 +++ OMV_ENGINED_SO_RCVTIMEO=180 +++ OMV_ENGINED_DIRTY_MODULES_FILE=/var/lib/openmediavault/dirtymodules.json +++ OMV_INITSYSTEM_SCRIPTS_DIR=/usr/share/openmediavault/initsystem +++ OMV_INITSYSTEM_FILE=/var/lib/openmediavault/initsystem.req +++ OMV_USERMGMT_DEFAULT_GROUP=users +++ OMV_RRDGRAPH_DIR=/var/lib/openmediavault/rrd +++ OMV_RRDGRAPH_ERROR_IMAGE=/usr/share/openmediavault/icons/rrd_graph_error_64.png +++ OMV_WEBGUI_FILE_OWNERGROUP_NAME=openmediavault-webgui +++ OMV_CONFIGOBJECT_NEW_UUID=fa4b1c66-ef79-11e5-87a0-0002b3a176b4 +++ OMV_DEBUG_SCRIPT=NO +++ OMV_DEBUG_PHP=NO +++ OMV_DEBUG_EXTJS=NO +++ OMV_RSNAPSHOT_CONFS_DIR=/var/lib/openmediavault/rsnapshot.d +++ OMV_RSNAPSHOT_CRONSCRIPT=/var/lib/openmediavault/cron.d/rsnapshot +++ OMV_USBBACKUP_SCRIPTS_DIR=/var/lib/openmediavault/usbbackup.d +++ OMV_APT_USE_KERNEL_BACKPORTS=YES ++ OMV_XMLSTARLET_GET_SHAREDFOLDER_PATH='-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v concat(//system/fstab/mntent[uuid=current()/mntentref]/dir,'\''/'\'',reldirpath) -b' ++ OMV_XMLSTARLET_GET_SHAREDFOLDER_NAME='-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v name -b' ++ OMV_XMLSTARLET_GET_SHAREDFOLDER_MOUNT_DIR='-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v concat(//system/fstab/mntent[uuid=current()/mntentref]/dir,'\''/'\'',reldirpath) -b' + case "$1" in + SERVICE_XPATH_NAME=zfs + SERVICE_XPATH=/config/services/zfs ++ omv_uuid ++ uuid -v 4 + object='<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338</uuid>' + object='<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338</uuid><id>zfs</id>' + object='<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338</uuid><id>zfs</id><enable>0</enable>' + omv_config_add_node_data /config/system/notification/notifications notification '<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338</uuid><id>zfs</id><enable>0</enable>' + local xpath name data tmpdata tmpfile + xpath=/config/system/notification/notifications + name=notification + data='<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338</uuid><id>zfs</id><enable>0</enable>' ++ tempfile + tmpfile=/tmp/filenM2EW3 ++ mktemp --dry-run XXXXXXXXXXXX + tmpdata=OSzhmq4e9DdM + xmlstarlet edit -P -s /config/system/notification/notifications -t elem -n notification -v OSzhmq4e9DdM /etc/openmediavault/config.xml + tee /tmp/filenM2EW3 ++ omv_quotemeta '<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338</uuid><id>zfs</id><enable>0</enable>' ++ echo -n '<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338</uuid><id>zfs</id><enable>0</enable>' ++ sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g' + sed -i 's/OSzhmq4e9DdM/<uuid>b763cb41-1ceb-49d8-871a-a6204fb23338<\/uuid><id>zfs<\/id><enable>0<\/enable>/' /tmp/filenM2EW3 + cat /tmp/filenM2EW3 + rm -f -- /tmp/filenM2EW3 + rm -f /etc/insserv/overrides/zfs-mount + /sbin/modprobe zfs + dpkg --compare-versions 4.0.2-1 lt-nl 4.0.3 + modinfo zfs + modprobe -n --first-time zfs ++ omv-confdbadm read conf.system.filesystem.mountpoint ++ jq -r '.[]|select(.type=="zfs")' + zfsMntent_entries='{ "type": "zfs", "fsname": "StoragePool", "passno": 0, "uuid": "864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f", "dir": "/StoragePool", "hidden": true, "opts": "rw,relatime,xattr,noacl", "freq": 0 }' + zfsMntent_uuid=($(echo "$zfsMntent_entries" | jq -r '.uuid')) ++ echo '{ "type": "zfs", "fsname": "StoragePool", "passno": 0, "uuid": "864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f", "dir": "/StoragePool", "hidden": true, "opts": "rw,relatime,xattr,noacl", "freq": 0 }' ++ jq -r .uuid + zfsMntent_fsname=($(echo "$zfsMntent_entries" | jq -r '.fsname')) ++ echo '{ "type": "zfs", "fsname": "StoragePool", "passno": 0, "uuid": "864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f", "dir": "/StoragePool", "hidden": true, "opts": "rw,relatime,xattr,noacl", "freq": 0 }' ++ jq -r .fsname + j=0 + echo 864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f 864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f + for fsname in ${zfsMntent_fsname[@]} + get_dataset_status StoragePool + zfs list StoragePool + echo 'Adding omvzfsplugin:uuid property to StoragePool dataset' Adding omvzfsplugin:uuid property to StoragePool dataset + zfs set omvzfsplugin:uuid=864e8b70-edf9-48fb-a2fc-7fe7dbab1c2f StoragePool + let ++j + echo zfs + dpkg-trigger update-fixperms + dpkg-trigger update-locale + exit 0 Traitement des actions différées (« triggers ») pour openmediavault (4.1.7) ... Updating locale files ... Updating file permissions ... Purging internal cache ... Restarting engine daemon ...
Seems to have work
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!