How do I get ZFS in OMV? - openmediavault (2024)

How do I get ZFS in OMV? - openmediavault (3)

    • 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)

          1. From the Navigation menu select System, Plugins and in the search bar enter omvextra and then hit the Reload circle
          2. Select the plugin named openmediavault-omvextrasorg
          3. In the upper left select the downward arrow, Install
          4. Ensure that the plugin installs without error.

          Setting Up ZFS & Shares

          Then after the you have installed your drives,

          1. At the Navigation menu select Storage, Disks
          2. Select your data disk(s) **NOT your system disk**
          3. Select Wipe from the upper left menu (looks like pathetic eraser)
          4. Once you've wiped all the disks you are planning to use select Storage,ZFS, Pools
          5. 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.
          6. Let ZFS do its thing.
          7. Then select Storage, Shared Folders, +
          8. Add your shares by selecting the ZFS pool and naming the shared folders
          9. 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 folders

          I 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

            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.

            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}

            Alles anzeigen
            • 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
                        • Offizieller Beitrag

                        Zitat von The.Narrator

                        Thanks! this it what I was looking for

                        You are welcome. How do I get ZFS in OMV? - openmediavault (20)

                        I think we have a marketing problem. Nobody ever finds the documentation. How do I get ZFS in OMV? - openmediavault (21)

                        • 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? How do I get ZFS in OMV? - openmediavault (23)

                        • 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
                        How do I get ZFS in OMV? - openmediavault (2024)

                        References

                        Top Articles
                        10 Best Palm Springs Area Restaurants for a Satisfying Midday Lunch Break
                        Tamilblasters. Com
                        Spasa Parish
                        Rentals for rent in Maastricht
                        159R Bus Schedule Pdf
                        Sallisaw Bin Store
                        Black Adam Showtimes Near Maya Cinemas Delano
                        Espn Transfer Portal Basketball
                        Pollen Levels Richmond
                        11 Best Sites Like The Chive For Funny Pictures and Memes
                        Things to do in Wichita Falls on weekends 12-15 September
                        Craigslist Pets Huntsville Alabama
                        What's the Difference Between Halal and Haram Meat & Food?
                        R/Skinwalker
                        Rugged Gentleman Barber Shop Martinsburg Wv
                        Jennifer Lenzini Leaving Ktiv
                        Justified - Streams, Episodenguide und News zur Serie
                        Craigslist Apartment Los Angeles
                        Epay. Medstarhealth.org
                        Olde Kegg Bar & Grill Portage Menu
                        Cubilabras
                        Half Inning In Which The Home Team Bats Crossword
                        Amazing Lash Bay Colony
                        Juego Friv Poki
                        Dirt Devil Ud70181 Parts Diagram
                        Truist Bank Open Saturday
                        Water Leaks in Your Car When It Rains? Common Causes & Fixes
                        What’s Closing at Disney World? A Complete Guide
                        New from Simply So Good - Cherry Apricot Slab Pie
                        Drys Pharmacy
                        Ohio State Football Wiki
                        FirstLight Power to Acquire Leading Canadian Renewable Operator and Developer Hydromega Services Inc. - FirstLight
                        Webmail.unt.edu
                        Tri-State Dog Racing Results
                        Trade Chart Dave Richard
                        Lincoln Financial Field Section 110
                        Free Stuff Craigslist Roanoke Va
                        Stellaris Resolution
                        Wi Dept Of Regulation & Licensing
                        Pick N Pull Near Me [Locator Map + Guide + FAQ]
                        Horseheads Schooltool
                        Crystal Westbrooks Nipple
                        Ice Hockey Dboard
                        Über 60 Prozent Rabatt auf E-Bikes: Aldi reduziert sämtliche Pedelecs stark im Preis - nur noch für kurze Zeit
                        Wie blocke ich einen Bot aus Boardman/USA - sellerforum.de
                        Craigslist Pets Inland Empire
                        Infinity Pool Showtimes Near Maya Cinemas Bakersfield
                        Hooda Math—Games, Features, and Benefits — Mashup Math
                        How To Use Price Chopper Points At Quiktrip
                        Maria Butina Bikini
                        Busted Newspaper Zapata Tx
                        Latest Posts
                        Article information

                        Author: Sen. Emmett Berge

                        Last Updated:

                        Views: 5530

                        Rating: 5 / 5 (80 voted)

                        Reviews: 95% of readers found this page helpful

                        Author information

                        Name: Sen. Emmett Berge

                        Birthday: 1993-06-17

                        Address: 787 Elvis Divide, Port Brice, OH 24507-6802

                        Phone: +9779049645255

                        Job: Senior Healthcare Specialist

                        Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

                        Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.