Moving VDIs - Am I doing it correctly
-
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.) -
Ping @florent
-
I'm really waiting for an answer for the "best" way to accomplish my migration. Any help is greatly appreciated.
-
@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.
-
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.
-
@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.
-
@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. -
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.
-
@buldamoosh Oh yeah, you can't disable CBT on a snapshot. It is inherited from the VDI it is the snapshot of.
You canvdi-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.