Does anyone have a good outline or can point me to a video where best practices of ZFS and VM Snapshoting is discussed? From what I understand ZFS is at block level and if it is taking a snapshot of VM data it might not work at the application level. Then also XCPng Snapshots unless stopped might run into same thing. Sooooo just need to understand how the two work together, best practices to make sure you’re good etc.
Having TrueNAS snapshot the NFS dataset where your VM’s are stored will allow for full rollback to the point of the snapshot for all VM’s stored in that dataset but will offer no awareness to XCP-ng that they exist. ZFS snapshots don’t have a performance penalty but too many XCP-ng snapshots of a VM can degrade performance.
Neither will help with data in flight at the time of the snapshot so things like database transactions may not be in a clean state for the rollback. You can do in the XCP-ng backup and “Offline” backup which will bring the VM down for the backup briefly to insure all data is in a stopped state.
1 Like