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

    Moving VDIs - Am I doing it correctly

    Scheduled Pinned Locked Moved Management
    9 Posts 5 Posters 187 Views 4 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
      buldamoosh
      last edited by

      I'm in the process of moving all of my data from my old NAS (QNAP HDD) to my new NAS (TrueNAS all Flash). The issue that I'm encountering is when I migrate the VDI it complains about CBT being enabled. The way that I have gotten around this is by "Forgetting" the snapshot associated with that VDI. Is this the best way to accomplish my task?
      What is the best way to make sure that I still have a valid backup for all of my VMs while they are being migrated? I don't have 100% confidence in my new NAS (YET.)

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

        Ping @florent

        1 Reply Last reply Reply Quote 0
        • B Offline
          buldamoosh
          last edited by

          I'm really waiting for an answer for the "best" way to accomplish my migration. Any help is greatly appreciated.

          dthenotD 1 Reply Last reply Reply Quote 0
          • M Offline
            manilx @buldamoosh
            last edited by

            @buldamoosh You must delete snapshots before migrating VM or disk. This is normal. Just did the same 2 days ago.

            A snapshot is not a backup so your question "still have a valid backup for all of my VMs while they are being migrated" is not an issue of having the snapshot or not. You just have to make a backup before migration, then you have a full backup if something goes wrong.

            1 Reply Last reply Reply Quote 0
            • G Offline
              Greg_E
              last edited by

              I have never deleted snapshots before migrating disk from one NFS to a different NFS, this might be different shares on the same physical NAS or shares between two physical NAS.

              dthenotD 1 Reply Last reply Reply Quote 0
              • dthenotD Offline
                dthenot Vates 🪐 XCP-ng Team @Greg_E
                last edited by

                @Greg_E No, it's because CBT is special, you don't need to remove backup because they will be collected by the GC either way.
                CBT need to be disabled before moving a VDI (and if needed re-enabled on the new VDI following migration).
                CBT Metadata VDI won't be automatically removed though.

                I think XO automatically disable CBT before moving a VDI, but it does not automatically remove the CBT Metadata VDI when not needed anymore.

                1 Reply Last reply Reply Quote 0
                • dthenotD Offline
                  dthenot Vates 🪐 XCP-ng Team @buldamoosh
                  last edited by

                  @buldamoosh You just need to disable CBT on the VDI you want to move.
                  Do you not use XO to migrate VDI? it should be doing itself from what I understood.

                  Otherwise, you can just disable CBT on the VDI with : xe vdi-disable-cbt uuid=<VDI UUID> before migrating the VDI.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    buldamoosh
                    last edited by

                    CBT is disabled by default when I initiate the migrate however, I cannot disable CBT on the snapshot. I hit the forget link and it removed the snapshot link to the VDI. The next backup, everything is set back to normal. Not sure if this makes sense or I'm interpreting things correctly. Thanks to everyone for their input.

                    dthenotD 1 Reply Last reply Reply Quote 0
                    • dthenotD Offline
                      dthenot Vates 🪐 XCP-ng Team @buldamoosh
                      last edited by

                      @buldamoosh Oh yeah, you can't disable CBT on a snapshot. It is inherited from the VDI it is the snapshot of.
                      You can vdi-destroy the snapshot instead of forgetting them 🙂
                      But yeah, it is "normal" that the snapshot are not removed by the migration.

                      CBT will be enabled by XO if you have the NBD+CBT enabled on your backup job.

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