Is backing up a VM by SR possible?
-
I’m building out backups and doing it by SR.
I have 4 NFS SR’s and I have built 4 backup jobs to match those SR’s.
We are planning to use it like backup tiers:
NFS-1 = high priority vm’s
NFS-2 = med priority
NFS-3 = lower
NFS-4 = nobody cares lol…..or only backup weekly or only keep 30 days…stuff like that.Is there a way to target the backup job to the SR? I know we can tag vm’s but if a coworker moves a vm to a different SR and forgets to change the tag it could get messy over time.
Thanks!
-
@mjr99 AFAIK, you'd have to run a script to determine what VMs are resident on which SRs and then handle that output accordingly to create a backup procedure.
You can check what SRs are in use for a VM with CLI commands like the ones discussed here:
https://support.citrix.com/article/CTX217612/how-to-find-the-disk-associated-to-a-vm-from-xenserver-cliWhat happens if you have a VM with its storage on more than one SR? I guess you could prioritize what backup it belongs to, but
would not want that VM in more than one list. Again, something that could be handled via scripting. -
@tjkreidl Gotcha and thanks!. In our scenario we wouldn't have a VM on more than one SR but I understand that some people would.