- OMV 6.x
- gelöst
- Flare
- 1. April 2023
1. offizieller Beitrag
- 1. April 2023
I'm not seeing ZFS as a RAID option, what's the current way to add it so I can run RAIDZ2?
I did find some solutions on Google, but I'm concerned they might be outdated now.
- 1. April 2023
- Offizieller Beitrag
Zitat von Flare
I'm not seeing ZFS as a RAID option, what's the current way to add it so I can run RAIDZ2?
You have to install omv-extras and the openmediavault-zfs plugin.
In Storage>pools Press +Addpool and in the Pool type field select RAID-Z2
- 1. April 2023
see my signature.
Thema
[HOWTO] Instal ZFS-Plugin & use ZFS on OMV
2016.11.09 actualization: please read this post first before to install: Error trying to install ZFS-Plugin
2018.09.08 actualization: Good video of HOW to Install from @Technodadlife.
2023.04.01 actualization: from a @ShamusLit :RE: How do I get ZFS in OMV?
2023.09.01 actualization: Always install kernell-plugin & PROXMOX KERNEL, prior to install ZFS-plugin.
Well This post is intendent to show how to start to work with ZFS & ZFS Plugin in OMV, Is usefull for beginers & Users that come from BSD (…
raulfg3
- 1. April 2023
While I understand that raulfg3 was trying to be brief and helpful, his primary link refers to OMV 1 so it was not relevant for me to follow it. Flare I just went through this yesterday and here is what I did. I am using OMV 6 so I am assuming you are doing the same. Here goes:
Install OMV Extras (and ZFS)
- From the Navigation menu select System, Plugins and in the search bar enter omvextra and then hit the Reload circle
- Select the plugin named openmediavault-omvextrasorg
- In the upper left select the downward arrow, Install
- Ensure that the plugin installs without error.
Setting Up ZFS & Shares
Then after the you have installed your drives,
- At the Navigation menu select Storage, Disks
- Select your data disk(s) **NOT your system disk**
- Select Wipe from the upper left menu (looks like pathetic eraser)
- Once you've wiped all the disks you are planning to use select Storage,ZFS, Pools
- Enter the pool data and select the drives you want to use. (Be cautious about naming your pool, I used an underscore [which apparently is allowed] in a pool name and got an endless string of errors in later config attempts. Also you should read about ZFS RAID alternatives to ensure you understand what devices are required and what type of RAID you need. It's too long to explain here.
- Let ZFS do its thing.
- Then select Storage, Shared Folders, +
- Add your shares by selecting the ZFS pool and naming the shared folders
- You will then need to link any services you plan to use to your shares.
It may take a few minutes before these shares appear in your network.
Hope that helps,
- 1. April 2023
- Offizieller Beitrag
Zitat von ShamusLit
Let ZFS do its thing.
Then select Storage, Shared Folders, +
Add your shares by selecting the ZFS pool and naming the shared foldersI miss creating ZFS filesystems in that script. You should not create shared folders directly on top of the pool.
A helpful link here that clarifies this concept. https://pthree.org/2012/12/17/…t-x-creating-filesystems/
It is an old publication but it is still applicable and a reference resource on many websites. It even appears in the official OpenZFS documentation in this section. https://openzfs.org/wiki/Syste…ion#General_documentation
- 1. April 2023
The ZFS plugin has installed, but isn't working.
I'm told to run "/sbin/modprobe zfs" to attempt fixing it, but the output says "Module ZFS not found in directory /lib/modules/5.16.0-0.bpo.4-amd64"
Edit: I'm also getting a recurring error message stating the following:
Zitat
Alles anzeigenFailed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; zfs list -p -H -t all -o name,type 2>&1' with exit code '1': The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.
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=; zfs list -p -H -t all -o name,type 2>&1' with exit code '1': The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them. in /usr/share/php/openmediavault/system/process.inc:197
Stack trace:
#0 /usr/share/omvzfs/Utils.php(441): OMV\System\Process->execute(Array, 1)
#1 /usr/share/omvzfs/Utils.php(253): OMVModuleZFSUtil::exec('zfs list -p -H ...', Array, 1)
#2 /usr/share/openmediavault/engined/rpc/zfs.inc(245): OMVModuleZFSUtil::getZFSFlatArray()
#3 [internal function]: OMVRpcServiceZFS->listPools(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('listPools', Array, Array)
#6 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Zfs', 'listPools', Array, Array, 1)
#7 {main}
- 1. April 2023
Zitat von Flare
The ZFS plugin has installed, but isn't working.
I'm told to run "/sbin/modprobe zfs" to attempt fixing it, but the output says "Module ZFS not found in directory /lib/modules/5.16.0-0.bpo.4-amd64"
Edit: I'm also getting a recurring error message stating the following:
do you install previosly Promox kernel as is recomended?
- 1. April 2023
Zitat von raulfg3
do you install previosly Promox kernel as is recomended?
I missed that, but it seems to have solved the problem.
Thank you!
- 3. April 2023
Zitat von chente
should not create shared folders directly on top of the pool.
chente , I did not know that! Is it documented somewhere in OMV? Also if that is the case then why would OMV offer the Pool as an option for shared Folders? Seems counterintuitive to me.
So if I go to Storage, Filesystems, + and then create a new filesystem on top of the Pool how would I do that inside OMV? It's not clear to me how that can be done since when you go to Select A Device only the actual disks show up as options.
I read through your first reference and could not find anything that seemed to be relevant to the OMV GUI. Perhaps you might point it out. The second reference has a number of dead links on subjects that might be relevant e.g. "ZFS Best Practices Guide".
Perhaps you could suggest a step 6.2 that would improve my process above?
Zitat
raulfg3 install previosly Promox kernel
raulfg3 how would one do that in OMV? Using the plugin reference in this post showed a plugin titled "openmediavault-kernel 6.0.2" but that plugin does not appear in my plugins.
What does appear is a plugin titled "openmediavault-kernel" but I assume that is not correct as when I run it I get a resounding failure. Or do I need to back out all of my ZFS work to get this plugin to install?
What is the correct plugin to use? Could you suggest a step 5 (Install OMV Extras (and ZFS))for the above install guide?
- 3. April 2023
- Offizieller Beitrag
Zitat von ShamusLit
I did not know that! Is it documented somewhere in OMV? Also if that is the case then why would OMV offer the Pool as an option for shared Folders? Seems counterintuitive to me.
I don't know if this appears anywhere, it is possible that some guide mentions it, I have not read them all.
In any case, before using ZFS it is logical to learn how it works. In the same way that someone who uses mergerfs should take a look at the trapexit website. It is not something specific to OMV. OMV integrates software from other sources that must be looked at from time to time.
Zitat von ShamusLit
So if I go to Storage, Filesystems, + and then create a new filesystem on top of the Pool how would I do that inside OMV? It's not clear to me how that can be done since when you go to Select A Device only the actual disks show up as options.
Regarding how to create a filesystem, that is the way. In Storage>ZFS>pools> Select the pool. Click on +Add filesystem. Fill in the data according to your preferences and accept.
At this point you can decide if you want that filesystem to have compression or not, etc.
So that filesystem already appears in Storage>Filesystems as one more file system. Check it.
Now you can go to shared folders and create a folder in that filesystem. Name it the same and just be careful that the path is /
- 3. April 2023
ShamusLit As I recall from yesterday (I was sleepy at the time) I ran "apt-get-update" and "apt-get upgrade" as Root in the CLI, then Proxmox and ZFS were able to install properly.
You may need to uninstall the old ZFS attempt first, I did that as a precaution.
- 3. April 2023
- Offizieller Beitrag
Zitat von Flare
You may need to uninstall the old ZFS attempt first, I did that as a precaution.
Does it work for you now?
- 3. April 2023
Zitat von chente
Does it work for you now?
It installed without errors, and seems to be stable with 4 drives in RAIDZ2 so far.
chente
Hat das Label gelöst hinzugefügt.
chente
Hat das Label OMV 6.x hinzugefügt.
- 6. Oktober 2023
Zitat von raulfg3
do you install previosly Promox kernel as is recomended?
Hi! I'm going to be setting up ZFS Mirror on two 8TB drives and was wondering about this step, how would I go about doing this on OMV6?
- 6. Oktober 2023
- Offizieller Beitrag
Zitat von The.Narrator
Hi! I'm going to be setting up ZFS Mirror on two 8TB drives and was wondering about this step, how would I go about doing this on OMV6?
If you mean the proxmox kernel follow this documentation. https://wiki.omv-extras.org/do…=omv6:omv6_plugins:kernel
- 6. Oktober 2023
Zitat von chente
If you mean the proxmox kernel follow this documentation. https://wiki.omv-extras.org/do…=omv6:omv6_plugins:kernel
Thanks! this it what I was looking for
- 6. Oktober 2023
- Offizieller Beitrag
Zitat von The.Narrator
Thanks! this it what I was looking for
You are welcome.
I think we have a marketing problem. Nobody ever finds the documentation.
- 6. Oktober 2023
- Offizieller Beitrag
Zitat von chente
I think we have a marketing problem. Nobody ever finds the documentation.
ryecoaaron
Maybe put a screenshot of the wiki in the omv-extras tab?
- 6. Oktober 2023
Hi Guys,
sorry to wake up this thread again.
I installed the OMV Extras without installing the proxmox kernel first.
Now I am not able to install the proxmox kernel as OMV always responds with the following error:
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=; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-missing --allow-unauthenticated --reinstall install 'openmediavault-kernel' 2>&1' with exit code '100': E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
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=; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-missing --allow-unauthenticated --reinstall install 'openmediavault-kernel' 2>&1' with exit code '100': E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:250
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): Engined\Rpc\PluginMgmt->Engined\Rpc\{closure}('/tmp/bgstatus5b...', '/tmp/bgoutputJU...')
#1 /usr/share/openmediavault/engined/rpc/pluginmgmt.inc(253): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: Engined\Rpc\PluginMgmt->install(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('install', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Plugin', 'install', Array, Array, 1)
#6 {main}
- 6. Oktober 2023
- Offizieller Beitrag
Zitat von Jowblob
dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Try what the error says
dpkg --configure -a
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!
Benutzerkonto erstellenAnmelden
Ähnliche Themen
Is there a guide to in place upgrade?
- Adrian E
- Updates/Upgrades
Error installing ZFS plugin
- newbie
- Plugins
Proxmox Kernel
- mannebk
- General
OMV6 + Proxmox kernel + ZFS - update error
- Graffy
- Updates/Upgrades
latest update fails compiling zfs module (kernel 5.18)
- Tupsi
- Updates/Upgrades