Migrating Ubuntu+ZFS to F29+ZFS
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2019
    Location
    F29
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Migrating Ubuntu+ZFS to F29+ZFS

    Hi All,

    I have a server for a small business that I use, mostly for backups. It is currently running Ubuntu 18.10 with ZFS installed, and Samba 4.8.4 for automatic Time Machine backups for a handful of our Macs.

    Needless to say, I have had constant issues with the stability of the server. Impressed with F29, I am now looking to migrate over.

    I did install the OS and the ZFS drives separate (1 drive for OS, 3 drives in ZFS raidz, two hot spares). Is this as simple as wipe the drive with the OS, install F29 + ZFS, and update grub? What are some things to look out for + good practices for this kind of migration?

    Thanks for the help!

  2. #2
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    7,156
    Mentioned
    6 Post(s)
    Tagged
    1 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    Quote Originally Posted by f1yankees
    Hi All,

    I have a server for a small business that I use, mostly for backups. It is currently running Ubuntu 18.10 with ZFS installed, and Samba 4.8.4 for automatic Time Machine backups for a handful of our Macs.

    Needless to say, I have had constant issues with the stability of the server. Impressed with F29, I am now looking to migrate over.

    I did install the OS and the ZFS drives separate (1 drive for OS, 3 drives in ZFS raidz, two hot spares). Is this as simple as wipe the drive with the OS, install F29 + ZFS, and update grub? What are some things to look out for + good practices for this kind of migration?

    Thanks for the help!
    Is this as simple as wipe the drive with the OS, install F29 + ZFS, and update grub? It may work like that but for small business use (where stability and long term support matter more) wouldn't it be better to go with CentOS 7, ZFS support is available?

    That said, if the server is not going to be internet connected it shouldn't matter if you use Fedora and do not upgrade it each 6-12 months to avoid it being end of life and unpatched.

  3. #3
    Join Date
    Feb 2019
    Location
    F29
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    Just wanted to post back.

    I took the leap last night and made the switch. Replaced the main hard drive with another and installed Fedora 29 from USB.

    Two things to watch out for if you are coming from the apt world:

    1) F29 kernel is not yet compatible with ZFS 0.7.12, so you will need to rollback the kernel to 4.9.15 and hold kernel updates in dnf’s conf file

    https://github.com/zfsonlinux/zfs/issues/8388

    2) With SELinux you will need to set a bunch of boolean flags to make Samba work. See Step 3

    https://www.tecmint.com/setup-samba-...ndows-clients/

    3) Ubuntu tends to put all users into the group "users" whereas my F29 install put my user (ex. "bob") into a group of the same name (also "bob") so I needed to re-run chown on the ZFS shares to fix ownership.
    Last edited by f1yankees; 19th February 2019 at 08:08 PM.

  4. #4
    Join Date
    Dec 2012
    Location
    santa barbara, CA
    Posts
    1,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    ZFS has bit my a** so many times, specially when letting it "RAID" your drives. OMG , in fact, I know that the original downloader site Megadownloads (EDIT: Rapidshare, the swiss guys) lost all their stuff due to ZFS.
    Back then we had 45 Sun Galaxy servers some massive with 48 disks, and were testing some weird odd cr4p called "Clustra" (which Oracle later purchased lol, poor sobs), and believe you me we sweated the bullet on all that cr4p, until I went dictatorial and forced the purchase of heavy raid cards, which solved our connundrums. Since then, no more ZFS for me, at least when doing RAID. I trust linux-raid blindly compared to ZFS raid.
    Last edited by bobx001; 19th February 2019 at 09:48 PM.
    "monsters John ... monsters from the ID..."
    "ma vule teva maar gul nol naya"

  5. #5
    Join Date
    Feb 2019
    Location
    F29
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    FYI if anybody is following.

    Following ZFS for linux releasing version 0.7.13 there is now support for kernel 4.20+

    You can remove the exclusion and allow Fedora to update. Afterwards, if you run DKMS status you will see the following:
    Code:
    spl, 0.7.13, 4.19.15-300.fc29.x86_64, x86_64: installed (WARNING! Diff between built and installed module!)
    spl, 0.7.13, 4.20.13-200.fc29.x86_64, x86_64: installed
    zfs, 0.7.13, 4.19.15-300.fc29.x86_64, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
    zfs, 0.7.13, 4.20.13-200.fc29.x86_64, x86_64: installed
    run the following command to remove the older modules:
    Code:
    sudo dkms remove spl/0.7.13 -k 4.19.15-300.fc29.x86_64
    sudo dkms remove zfs/0.7.13 -k 4.19.15-300.fc29.x86_64
    you should be good to go afterwards

    In the future if something breaks, here is some guidance for handling ZFS + kernel versions:
    https://icesquare.com/wordpress/cent...ng-the-kernel/

    Fedora 29 + Samba 4.9.4 + ZFS have all been working well with Time Machine thus far. A big improvement and way less headache. Hopefully it keeps working well for us!
    Last edited by f1yankees; 11th March 2019 at 11:48 PM.

  6. #6
    Join Date
    Feb 2019
    Location
    F29
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    Upgraded to F30 this morning without issue.

    Upon upgrade completion, ZFS was not loaded but easily fixed:
    modprobe zfs
    sudo zpool import -d /dev
    sudo pool import -f tank
    Currently running F30, Kernel 5.0.9, ZOL 0.7.13

  7. #7
    Join Date
    Jul 2018
    Location
    krupka
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    IMO ZFS on Solaris is rock solid but ZFS on Linux is not. Too bad, because i think it’s one of the best filesystems out there.

  8. #8
    Join Date
    Feb 2019
    Location
    F29
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    agree 100%. Although, so far I have found it works fairly well under Fedora/cent/RHEL. I thought it worked terribly under Ubuntu and Debian, hence why I came over here We will see how 0.8 turns out, once released.

  9. #9
    Join Date
    Feb 2019
    Location
    F29
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Migrating Ubuntu+ZFS to F29+ZFS

    ZOL for F30 is now released. Since the rpm-gpg should already be installed:
    Code:
    sudo dnf update
    Allow zfs to update with the new F30 repo. Likely, you will not have zfs working. If not, continue with:

    Code:
    sudo dnf reinstall dkms zfs
    Then, check DKMS for unused binaries and remove

    Code:
    dkms status
    sudo dkms remove spl/0.7.13 -k 4.19.15-300.fc29.x86_64
    sudo dkms remove zfs/0.7.13 -k 4.19.15-300.fc29.x86_64
    You should now see the necessary modules for F30 for the kernel you are using. If not, then dnf did not recompile the DKMS module right and you will need to manually reinstall.
    Code:
    sudo dkms install spl/0.7.13
    sudo dkms install zfs/0.7.13

    Code:
    sudo modprobe zfs
    sudo reboot
    The last reboot is optional if your pool is loaded.
    Last edited by f1yankees; 10th May 2019 at 11:45 PM.

Similar Threads

  1. Migrating Linux distro from Debian/Ubuntu to Fedora
    By fatman2921 in forum Fedora Spins & Remixes
    Replies: 4
    Last Post: 16th December 2013, 10:31 PM
  2. Several questions after migrating from Ubuntu.
    By OreoKing in forum Using Fedora
    Replies: 7
    Last Post: 26th July 2010, 05:24 AM
  3. Replies: 5
    Last Post: 5th January 2009, 12:26 PM
  4. Migrating From Ubuntu to Fedora -- Yum Help
    By brentrulez in forum Using Fedora
    Replies: 9
    Last Post: 1st April 2007, 03:53 AM
  5. Newbie Migrating from Ubuntu, firefox installation
    By caravel1 in forum Using Fedora
    Replies: 3
    Last Post: 23rd October 2006, 11:57 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •