XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Backing up to NFS share on ZFS

    Scheduled Pinned Locked Moved Xen Orchestra
    9 Posts 5 Posters 1.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IndyJI Offline
      IndyJ
      last edited by

      I'm testing XO. I have an NFS server with ZFS (compression + deduplication enabled).

      Would backing up to this nfs share cause problems for backups & restores?

      H 1 Reply Last reply Reply Quote 0
      • H Offline
        HeMaN @IndyJ
        last edited by

        IndyJ have the same nfs on zfs setup here (minus deduplication) running on a truenas box.
        xcp-ng using the nfs share for backups is working fine for me

        1 Reply Last reply Reply Quote 1
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          Yeah dedup could cost a lot. Maybe it's better to enable it for a backup storage for XO backups, not for your VMs.

          1 Reply Last reply Reply Quote 1
          • IndyJI Offline
            IndyJ
            last edited by

            Not being a ZFS expert here is an oddity: I have two old servers I use for backups. One is NFS with XFS filesystem (testing XO backups). The second is NFS with ZFS.

            I copied my data from the server with XFS to the one using ZFS via rsync: A 17 Terabyte NFS/XFS share used only approximately 7 Terabytes on the ZFS server.

            However If I backup data via XO to the NFS share on the ZFS system I don't seem to save space compared to backing up to NFS on the XFS filesystem.

            I'm using lz4 compression & Dedupe on the ZFS system..

            I ForzaF 2 Replies Last reply Reply Quote 0
            • I Offline
              iLix @IndyJ
              last edited by

              IndyJ

              What does zpool list show from the cli? Looking for dedup-rate on the dataset that holds the backups.

              1 Reply Last reply Reply Quote 1
              • ForzaF Offline
                Forza @IndyJ
                last edited by Forza

                IndyJ Probably when you use rsync, the files are transferred with larger blocks with few fsyncs. Perhaps when XO does it it is 4k transfers with fsync between each, which limits compressability a lot. Just a thought.

                1 Reply Last reply Reply Quote 1
                • IndyJI Offline
                  IndyJ
                  last edited by

                  Thanks for the tips.
                  When I try to restore an individual file from the server using ZFS compression & dedupe XOA gives me an error: "Error while scanning disk"

                  I'm wondering if the compression or dedupe is the likely cause. My money is on the Deduplication. Any thoughts on this?

                  IndyJI 1 Reply Last reply Reply Quote 0
                  • IndyJI Offline
                    IndyJ @IndyJ
                    last edited by

                    IndyJ So I went to the logs and pasted the command directly into the shell. while the vhd file does exist the mount point does not.

                    The command assumes a temporary directory within /tmp that is not getting created by the script.

                    If I create the directory and paste the command into the shell the vhd does mount.

                    IndyJI 1 Reply Last reply Reply Quote 0
                    • IndyJI Offline
                      IndyJ @IndyJ
                      last edited by

                      IndyJ The file restore issue was due to installing XO on FreeBSD (fine for VM restores, not file extraction).

                      I then installed XO on Ubuntu 20, and this worked for restoring files from Linux VMs but not Windows VMs.
                      Then I installed on CentOS 8 and had the same problem as Ubuntu.

                      I then installed on Fedora 34 and everthing works fine.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post