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

    Unable to export reliable backups

    Scheduled Pinned Locked Moved Xen Orchestra
    15 Posts 3 Posters 1.2k 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.
    • B Offline
      bsodmike @olivierlambert
      last edited by

      @olivierlambert The delta backup finally shows an error:

      Duration: 18 minutes
      Error: VDI_IO_ERROR(Device I/O errors)
      
      DanpD 1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team @bsodmike
        last edited by

        @bsodmike Seems like you are still having issues with your FreeNAS setup. Do you have a different (non-FreeNAS) storage device that you can use for testing?

        I noticed that your host0 is missing some patches. Probably best to address that, too. Have you tried doing a CR backup between the two hosts?

        B 3 Replies Last reply Reply Quote 0
        • B Offline
          bsodmike @Danp
          last edited by

          @danp Hi Dan, I am easily able to export to FreeNAS via xe vm-export. The only issue I'm facing right now is getting XOA to run backups to NFS (or even CIFS) shares.

          Right now, I do not have any other hosts to backup to, but I fail to see the FreeNAS host I'm using as the failure point given above. Thoughts?

          1 Reply Last reply Reply Quote 0
          • B Offline
            bsodmike @Danp
            last edited by

            @danp Also FYI, XOA failing backups (to the NFS share mentioned above) should not create smaller files and go "green" marking the backup as successful.

            These are all failed attempts on host0.

            Screenshot 2020-12-20 at 22.45.20.png

            DanpD 1 Reply Last reply Reply Quote 0
            • DanpD Offline
              Danp Pro Support Team @bsodmike
              last edited by

              @bsodmike Are you using XOA (the pre-built appliance) or XO from sources?

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                bsodmike @Danp
                last edited by

                @danp I tried both actually, but right now I've switched to install via source using https://github.com/ronivay/XenOrchestraInstallerUpdater

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bsodmike @Danp
                  last edited by

                  @danp Here's an example that I just ran of a manual export to a NFS share that I setup on the host,

                  [23:22 xcpng-host0-mgmt xcpng-manual-export]# xe vm-export vm=docker1 filename=/mnt/xcpng_data/xcpng-manual-export/docker1_`date +"%d%m%Y"`.xva
                  Export succeeded
                  [23:28 xcpng-host0-mgmt xcpng-manual-export]# pwd
                  /mnt/xcpng_data/xcpng-manual-export
                  [23:29 xcpng-host0-mgmt xcpng-manual-export]# ls -lah
                  total 8.7G
                  drwxr-xr-x 2 1001 1005   3 Dec 20 23:23 .
                  drwxrwx--- 9 1004 1005  12 Dec 20 23:16 ..
                  -rw------- 1 root 1005 36G Dec 20 23:28 docker1_20122020.xva
                  [23:29 xcpng-host0-mgmt xcpng-manual-export]# mount -t nfs
                  freenas-primary.intranet:/mnt/big-primary/xcpng_data on /mnt/xcpng_data type nfs (rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,acdirmin=0,acdirmax=0,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.0.0.149,mountvers=3,mountport=727,mountproto=tcp,local_lock=none,addr=10.0.0.149)
                  
                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Obviously there's something wrong in the setup. Basic backups or even delta issues like this would have trigger QA before a release, not talking about the 3000+ active users.

                    Now the question is: what's wrong exactly? Hard to tell, but I have suspicions on your storage itself. VDI_IO_ERROR(Device I/O errors) is related to XCP-ng issue on export/import.

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      bsodmike @olivierlambert
                      last edited by bsodmike

                      @olivierlambert That makes sense. FYI I only got the VDI error when attempting delta backup via XO. xe vm-export has not provided any errors.

                      Just right now I was able to export a 35Gig XVA file, reimport using xe vm-import and the VM boots just fine.

                      All over the SAME NFS share that doesn't work with XOA. Hmm...

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

                        Check dmesg in both host and XO VM to see if you can spot anything.

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          bsodmike @olivierlambert
                          last edited by

                          @olivierlambert I have a fedora workstation, which I could use to serve an NFS share. Hmm, I could try this to isolate the Freenas share?

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

                            That would be interesting. This won't rule out everything but at least we might notice something different.

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