ZoL Snapshots / Replication help

Discussion in 'Linux Admins, Storage and Virtualization' started by nitrobass24, Jun 24, 2019.

  1. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    1,081
    Likes Received:
    125
    Hi all - I recently moved my docker volumes over to a SSD Mirrored VDEV and am trying to sort out my backup strategy.

    My thought here is to use ZFS Snapshots/Replication to backup to a different ZFS Pool on the same system.
    I use Crashplan to backup the backup to the cloud.

    So I am using Napp-it on Ubuntu 19.04 and was just going to setup an auto snap job, but I need to run a pre/post script to stop all my containers and then start them again once the snap is completed.

    Is there a way to do that via Napp-it or should i just setup a cron job?
     
    #1
  2. Rand__

    Rand__ Well-Known Member

    Joined:
    Mar 6, 2014
    Messages:
    3,342
    Likes Received:
    460
    Not related to your question, sorry, - but how is Napp-It working on Linux? Any issues?
     
    #2
  3. zxv

    zxv The more I C, the less I see.

    Joined:
    Sep 10, 2017
    Messages:
    152
    Likes Received:
    46
    #3
    nitrobass24 likes this.
  4. gea

    gea Well-Known Member

    Joined:
    Dec 31, 2010
    Messages:
    2,119
    Likes Received:
    683
    Napp-it autosnap supports pre/post scripts, mainly to add hot restorable ESXi snaps. If you enable pre/post scripts when you create a snap job, a shell script /var/web-gui/_log/jobs/jobid.pre and /var/web-gui/_log/jobs/jobid.post is executed prior or post a snap job (must create them manually)

    That said, I have never used this on Linux as my OS of choice is OmniOS/OI and Solaris.
     
    #4
    nitrobass24 likes this.
  5. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    1,081
    Likes Received:
    125
    ZFS is working well.

    I tend to get some errors with Napp-it after a few hours and I have to restart it. I haven’t really spent any time trying to troubleshoot it though. Seems to be permissions related based on a cursory view but odd that it works for a while.

    Not a big deal since I do not need the UI running all the time.

    Edit: I almost forgot but the one issue I did have is Napp-it did not see any of my NVMe devices, so I created my pool on the CLI. Pool shows up in Napp-it fine after it was created.
     
    #5
  6. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    1,081
    Likes Received:
    125
    This looks interesting I’ll definitely check it out.
     
    #6
  7. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    1,081
    Likes Received:
    125
    Thanks I didn’t realize that it could be used for anything other than ESXi. Might be the cleanest option.
     
    #7
Similar Threads: Snapshots Replication
Forum Title Date
Linux Admins, Storage and Virtualization ZFS Snapshots Send/Recv & Compression May 10, 2017

Share This Page