Installing zfs the (relatively) easy way - openmediavault (2024)

Installing zfs the (relatively) easy way - openmediavault (3)

  • christiscarborough
  • 3. März 2014
    • 3. März 2014

      CAVEATS: OMV does not have integrated support for ZFS, and it's likely you will have to manage ZFS disks manually from the command line, at least until the ZFS plugin is completed. ZFS is also complex, and you need to be aware of its system requirements before using. Reading http://zfsonlinux.org/faq.html is a really good idea.

      YOU HAVE BEEN WARNED.

      Having said all that, I've just installed ZFS on OMV 0.5.37. The instructions on the forum seem to be a little out of date, so I thought it might be useful to document how I did it here.

      1) Install the OMV-extras plugin
      http://omv-extras.org/simple/i…install-omv-extras-plugin

      2) Install the 3.2 backport kernel from the OMV-extras section of the web interface.

      3) Log in via the command line or ssh

      4) As root, run

      Code

      apt-get install build-essential

      ZFS requires a build environment on the server since it builds its own modules for the specific kernels on your system - in my case it didn't build any for the 2.6 kernel, so I suspect the 3.2 backports kernel is a necessary pre-requisite.

      5) Follow these instructions to build and install the zfs modules

      http://zfsonlinux.org/debian.html

      This package claims to be for wheezy, but seems to work fine on squeeze/OMV.

      6) Edit /etc/default/zfs

      You may need to edit this file to enable mount on boot /dismount on shutdown, since zfs-mountall doesn't seem to have been installed.

      That's it! I'm awaiting the arrival of new disks to confirm this setup has worked properly, but the zfs commands seem to run successfully without complaining about missing kernel modules.

      ETA: Disks have arrived, are installed, and I have a working OMV setup based on ZFS. See my post below for a hack to allow OMV to use ZFS filesystems as OMV shared folders.

      • 3. März 2014

        Suggestions for improvement / notification of problems from more experienced zfs users than myself very welcome.

        • 4. März 2014

          Your way of installing ZFS is the same way I did it but you have to be aware of the fact that you will not be able to see the ZFS pools, datasets, and volumes from OMV since the needed Linux disk tools which is required for OMV to be able to see ZFS filesystems is first available in Wheezy. OMV and Linux disk tools requires disks to be available in /dev/by-xx which is only populated if the disks produces UUID and the tools for that in Squeeze is not able to do that for ZFS filesystems. ZFS disks are using GPT partition scheme which is not supported in Sqeeze.

          • 5. März 2014

            The way I got around this was to create a stub ext4 file system on a small USB flash disk. This filesystem contains only symbolic links to the ZFS filesystems in the pool, which are then imported into OMV as shared folders. It is a bit of a hack, and when OMV fully supports ZFS, I'll be delighted to retire it, but it works for now.

            Zitat von "christiscarborough"

            The way I got around this was to create a stub ext4 file system on a small USB flash disk. This filesystem contains only symbolic links to the ZFS filesystems in the pool, which are then imported into OMV as shared folders. It is a bit of a hack, and when OMV fully supports ZFS, I'll be delighted to retire it, but it works for now.

            I tried to shrink the root "/" a little bit (using gparted after installation), and then create another small partition (e.g., /dev/sda4) for the same purpose.
            I first mount /dev/sda4 to say /tank, then remove the "lost-found" from /dev/sda4, and finally manually mount the zfs pool to the same path /tank.
            It seems ok too.

            now on my test machine:

            Code

            bruin@omv:~$ /sbin/blkid/dev/sda1: LABEL="root" UUID="5cac462c-6692-45bf-9de2-3f7e425104a4" TYPE="ext4" /dev/sda3: LABEL="backup" UUID="81a55061-e905-4fd5-9076-f13488cafd47" TYPE="ext4" /dev/sda5: LABEL="swap" UUID="a76cea18-fb07-4f68-b36e-4f5ba78aa7f9" TYPE="swap" /dev/sda4: UUID="bd44dbb4-c83f-4539-a7ff-65111a48d312" TYPE="ext2" /dev/sdb1: TYPE="zfs" /dev/sdb2: TYPE="zfs" /dev/sdb3: TYPE="zfs" /dev/sdb4: TYPE="zfs" bruin@omv:~$ df -haFilesystem Size Used Avail Use% Mounted on/dev/sda1 49G 3.0G 43G 7% /tmpfs 3.9G 0 3.9G 0% /lib/init/rwproc 0 0 0 - /procsysfs 0 0 0 - /sysudev 10M 228K 9.8M 3% /devtmpfs 3.9G 0 3.9G 0% /dev/shmdevpts 0 0 0 - /dev/ptstmpfs 3.9G 4.0K 3.9G 1% /tmp/dev/sda4 624G 128K 624G 1% /tanktank 624G 128K 624G 1% /tankbruin@omv:~$ bruin@omv:~$ uname -aLinux omv 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.54-2~bpo60+1 x86_64 GNU/Linux

            Alles anzeigen

            As you can see, actually I also created another partition intended for backing up the root '/' partition (using ghost, probably).

            • 7. April 2014

              It's worth noting that you can use the zfs-auto-snapshot scripts from github with this setup, although there does not seem to be a package available for them. I have installed them manually in the cron.* directories.

              • 1. Mai 2014

                Zitat von "bruin"

                I tried to shrink the root "/" a little bit (using gparted after installation), and then create another small partition (e.g., /dev/sda4) for the same purpose.
                I first mount /dev/sda4 to say /tank, then remove the "lost-found" from /dev/sda4, and finally manually mount the zfs pool to the same path /tank.
                It seems ok too.

                In case anybody tries to reproduce this...

                I tried to do the same thing you did, and while it shows up nicely in the File Systems tab, it was not usable yet as it was not recognized as a volume. I had to add an entry to the <fstab> section of the /etc/openmediavault/config.xml file:

                Code

                <mntent><uuid>xxxx-xxxxx-xxxx</uuid><fsname>/dev/sda4</fsname><dir>/tank</dir><type>ext4</type><opts></opts><freq>0</freq><passno>0</passno></mntent>

                Using that it seems to work fine. Thanks for your idea! (And thanks to for the mntent info!)

                • 1. Mai 2014

                  Zitat von "christiscarborough"

                  CAVEATS: OMV does not have integrated support for ZFS, and it's likely you will have to manage ZFS disks manually from the command line, at least until the ZFS plugin is completed. ZFS is also complex, and you need to be aware of its system requirements before using. Reading http://zfsonlinux.org/faq.html is a really good idea.

                  YOU HAVE BEEN WARNED.

                  Having said all that, I've just installed ZFS on OMV 0.5.37. The instructions on the forum seem to be a little out of date, so I thought it might be useful to document how I did it here.

                  Just having gone through the process with OMV 0.6 git (to get wheezy): it works, but with a little more pain. The main reason is that for 0.6 backports now is 3.12. Unfortunately the current zfs version (0.6.2) doesn't support 3.12, so you need to build zfs git. To do that you need to clone spl and zfs from https://github.com/zfsonlinux and build spl, install it, and then build and install zfs. The basic instructions from http://zfsonlinux.org/generic-deb.html almost work, just also install the autoconf and libtool packages and run ./autogen.sh in both spl and zfs and you should be fine.

                  Hope it helps!

                  • 1. Mai 2014

                    Which version of the kernel is supported? AFAIK there are more than just the 3.12 kernel in the wheezy-backports.

                    Greetings
                    David

                  Jetzt mitmachen!

                  Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!

                  Benutzerkonto erstellenAnmelden

                  Installing zfs the (relatively) easy way - openmediavault (2024)

                  References

                  Top Articles
                  Backpage Li
                  Unintelligible Message On A Warning Sign Crossword
                  Trevor Goodwin Obituary St Cloud
                  Uti Hvacr
                  Google Sites Classroom 6X
                  Mr Tire Prince Frederick Md 20678
                  Emmalangevin Fanhouse Leak
                  Words From Cactusi
                  Slapstick Sound Effect Crossword
                  Espn Expert Picks Week 2
                  Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
                  Nestle Paystub
                  Mawal Gameroom Download
                  Sams Gas Price Fairview Heights Il
                  Best Fare Finder Avanti
                  Luna Lola: The Moon Wolf book by Park Kara
                  Best Suv In 2010
                  Buy Swap Sell Dirt Late Model
                  Jet Ski Rental Conneaut Lake Pa
                  Panic! At The Disco - Spotify Top Songs
                  Brazos Valley Busted Newspaper
                  2013 Ford Fusion Serpentine Belt Diagram
                  Www.paystubportal.com/7-11 Login
                  Lexus Credit Card Login
                  Villano Antillano Desnuda
                  Dhs Clio Rd Flint Mi Phone Number
                  Lindy Kendra Scott Obituary
                  Helpers Needed At Once Bug Fables
                  Elanco Rebates.com 2022
                  Taktube Irani
                  Emily Katherine Correro
                  404-459-1280
                  Steven Batash Md Pc Photos
                  Ark Unlock All Skins Command
                  Atlantic Broadband Email Login Pronto
                  Andhra Jyothi Telugu News Paper
                  Sams La Habra Gas Price
                  Mcgiftcardmall.con
                  Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
                  Winco Money Order Hours
                  Spectrum Outage in Genoa City, Wisconsin
                  Dee Dee Blanchard Crime Scene Photos
                  “To be able to” and “to be allowed to” – Ersatzformen von “can” | sofatutor.com
                  Gym Assistant Manager Salary
                  Mega Millions Lottery - Winning Numbers & Results
                  Take Me To The Closest Ups
                  Canonnier Beachcomber Golf Resort & Spa (Pointe aux Canonniers): Alle Infos zum Hotel
                  Unpleasant Realities Nyt
                  Powah: Automating the Energizing Orb - EnigmaticaModpacks/Enigmatica6 GitHub Wiki
                  Strange World Showtimes Near Century Federal Way
                  Pauline Frommer's Paris 2007 (Pauline Frommer Guides) - SILO.PUB
                  Latest Posts
                  Article information

                  Author: Mr. See Jast

                  Last Updated:

                  Views: 5520

                  Rating: 4.4 / 5 (75 voted)

                  Reviews: 90% of readers found this page helpful

                  Author information

                  Name: Mr. See Jast

                  Birthday: 1999-07-30

                  Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

                  Phone: +5023589614038

                  Job: Chief Executive

                  Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

                  Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.