Hey all, sorry if this has been covered before but I couldn't find any threads on this. I am currently doing a 2 stage backup of my TrueNAS scale server that backs up to another zfs server and also to a synology NAS. The synology is obviously not running ZFS so what I do is mount the snapshots and then rsync all the data over. Obviously it doesn't backup any of the zfs specific dataset info but all the files should be there, and more importantly immediately accessible in case both other zfs servers die.
This is the process I follow:
tank/VMs
tank/VMs/Windows-abcdef
tank/VMs/Windows-123456
The top level dataset (tank/VMs) mounts fine into the temporary directory but the VMs (Windows-#####) won't mount and result in an error when trying to mount:
# sudo mount -t zfs -o ro tank/VMs/Windows-t1qg1o@auto-2023-01-31_02-05 /mnt/tmp
unable to fetch ZFS version for filesystem 'tank/VMs/Windows-t1qg1o@auto-2023-01-31_02-05'
So maybe this is because it's a windows VM and the data isn't actually a zfs dataset, but some other kind? I tried mounting other ways but it still doesn't seem to work. Basically I just want to be able to dynamically figure out how to mount it so the files are accessible and back all those up over rsync to the synology.
Maybe I am overcomplicating this? They backup/replicate fine to the other zfs server so that one is ok, but is there a better way to backup those VMs using rsync to a non-zfs server?
Thanks!
This is the process I follow:
- Stop any VMs that are running
- Take a recursive snapshot of the datasets in the pool
- Replicate the snapshots to the other zfs server
- Load the snapshots from #1 to a temp mount point and rsync everything over to the synology (offsite backup)
- Restart any VMs that were running
tank/VMs
tank/VMs/Windows-abcdef
tank/VMs/Windows-123456
The top level dataset (tank/VMs) mounts fine into the temporary directory but the VMs (Windows-#####) won't mount and result in an error when trying to mount:
# sudo mount -t zfs -o ro tank/VMs/Windows-t1qg1o@auto-2023-01-31_02-05 /mnt/tmp
unable to fetch ZFS version for filesystem 'tank/VMs/Windows-t1qg1o@auto-2023-01-31_02-05'
So maybe this is because it's a windows VM and the data isn't actually a zfs dataset, but some other kind? I tried mounting other ways but it still doesn't seem to work. Basically I just want to be able to dynamically figure out how to mount it so the files are accessible and back all those up over rsync to the synology.
Maybe I am overcomplicating this? They backup/replicate fine to the other zfs server so that one is ok, but is there a better way to backup those VMs using rsync to a non-zfs server?
Thanks!