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

    CBT: the thread to centralize your feedback

    Scheduled Pinned Locked Moved Backup
    439 Posts 37 Posters 386.6k Views 29 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.
    • A Online
      Andrew Top contributor @olivierlambert
      last edited by

      @olivierlambert Having a strange failure now (XO and XOA the same). I'm trying to migrate a VDI (only) to a new SR (same pool) after it has been backed up with CBT enabled. The VM is off (cold). XO disables CBT and requests the migration but the migrate fails and it tries again repeatedly endlessly. If I delete the snapshots then it moves.

      R 1 Reply Last reply Reply Quote 0
      • A Online
        Andrew Top contributor @Delgado
        last edited by

        @Delgado Full/CR/Delta backups should work as long as CBT is left enabled on the guest VDI and other backup jobs don't disable it.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          Delgado @Andrew
          last edited by

          @Andrew interesting thanks. I didn't disable nbd + cbt in the delta job or cbt on the disks. I just set up another job as a normal full backup mode.

          1 Reply Last reply Reply Quote 0
          • R Offline
            rtjdamen @Andrew
            last edited by

            @Andrew hi Andrew, when u migrate a vdi CBT has to be disabled, XO will take care off this. I think the snapshot has to be removed as well. Looks like the code for this is not functional yet.

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

              Thanks for the feedback, @florent is back on Tuesday 🙂

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                rtjdamen @olivierlambert
                last edited by

                @olivierlambert, I first want to compliment the work that has been done. As a first release, it already seems very stable. I have shared some logs with support to investigate the data_destroy issue and some minor error messages that appeared. We managed to migrate all our backup jobs to CBT over the weekend. It was challenging to coalesce all the snapshots, but it has been completed. The difference in coalesce speed is significant, which is a great improvement for XOA backups. I will monitor the backups and observe how they evolve in the coming weeks.

                Please let us know if you need any additional input or if there are any updates regarding the data_destroy issue.

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

                  Thanks for the feedback @rtjdamen

                  We will do a full sweep with the feedback in this thread and continue to monitor the situation. Also, we switched our own production on it, so if there's issue we will also be on the first seat 😛

                  1 Reply Last reply Reply Quote 0
                  • robytR Offline
                    robyt
                    last edited by robyt

                    A little question: in my environment i've big problem with SR migration.
                    i've opened a ticket and the answer is:
                    There is currently a problem with NBD backup where the VDI are not correctly disconnected from the Dom0.
                    The team is investigating but for now if you want to avoid more being accumulated, it is advised to disable NBD backups.

                    I've disabled NBD and for small SR work fine, for big SR i can't try (three days estimated for migration..)

                    This problem is resolved?
                    Or i can't use CBT?

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

                      It depends on the SR you are using. If it's XOSTOR or not. On XOSTOR, NBD is causing some challenges. But if it's a regular SR, the issue should be fixed since we are enforcing removal of VDI attached to the control domain.

                      robytR 1 Reply Last reply Reply Quote 0
                      • robytR Offline
                        robyt @olivierlambert
                        last edited by

                        @olivierlambert no xostor, sr is on fiber channel san (two san with some volumes, HDD or SSD)
                        may i try the reactivation of both?

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

                          Without more context, I would say "yes" 🙂 CBT will reduce the amount to coalesce. Try to keep NBD "Number of NBD connection per disk" at 1 to be on the safe side.

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            rtjdamen
                            last edited by rtjdamen

                            @olivierlambert @florent regarding the error

                            error
                            {"code":"VDI_IN_USE","params":["OpaqueRef:fbd3bedd-ea60-4984-afca-9b2ec1b7b885","data_destroy"],"call":{"method":"VDI.data_destroy","params":["OpaqueRef:fbd3bedd-ea60-4984-afca-9b2ec1b7b885"]}}
                            vdiRef
                            "OpaqueRef:fbd3bedd-ea60-4984-afca-9b2ec1b7b885"
                            

                            As a test i did the command on this snapshot manually over ssh

                            xe vdi-data-destroy uuid=
                            

                            This seems to purge the snapshot data correct, so i believe this issue is temporary and maybe a retry itself during the backupjob does resolve it. We see it not so ofter but enough to investigate it more deeper.

                            Inside the Knowledgebase from xenserver i found this

                            VDI_IN_USE:
                            
                            The VDI snapshot is currently in use by another operation.
                            
                            Check that the VDI snapshot is not being accessed by another client or operation. Check that the VDI is not attached to a VM.
                            
                            If the VDI snapshot is connected to a VM snapshot by a VBD, you receive this error. Before you can run VDI.data_destroy on this VDI snapshot, you must remove the VM snapshot. Use VM.destroy to remove the VM snapshot.
                            

                            I believe the vdi.destroy is not yet finished complete before the data-destroy is issued, resulting in the vdi in use error.

                            1 Reply Last reply Reply Quote 0
                            • robytR Offline
                              robyt
                              last edited by

                              Hi, why this difference?
                              63eadf76-9d0f-4503-9c0d-db213a16be06-immagine.png
                              The backup joband the VM are the same

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

                                While my backups (NBD, Delta) have been running now fine and garbage collection fnishes I just noticed that I have multiple snapshots referring to the backup on all VM's:
                                ScreenShot 2024-07-10 at 10.23.11.png
                                Deleted all but the last and will see how it goes.

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

                                  @manilx Have you enabled CBT+data removal? Otherwise you'll continue to see snapshots (but yeah, the old ones should be removed at some point)

                                  M 2 Replies Last reply Reply Quote 0
                                  • M Offline
                                    manilx @olivierlambert
                                    last edited by

                                    @olivierlambert No, I haven't. Will do now.

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

                                      @manilx P.S. It wasn't clear to me that I had to turn this on. I just left everything as it was after updating XO..... (Was always using NBT before):

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

                                        @olivierlambert The next backup has run and now there a no snapshots at all (even the last one I left was removed). Is this how this is supposed to be? Totally confused.

                                        I get this: ScreenShot 2024-07-10 at 12.59.42.png.
                                        OK. But if I want the "old" way to have the snapshots, they accumulate as we have seen...... ??

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

                                          1. That's thanks to CBT
                                          2. The old way can be used again, just disable the data removal toggle. And yes, it shouldn't accumulate more than 1 snap per schedule.
                                          M 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            manilx @olivierlambert
                                            last edited by

                                            @olivierlambert Understood. Then it's up to @florent to fix this snapshot accumulation.
                                            Thx

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