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

    Is backing up a VM by SR possible?

    Scheduled Pinned Locked Moved Backup
    3 Posts 2 Posters 153 Views 1 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.
    • M Offline
      mjr99
      last edited by

      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!

      tjkreidlT 1 Reply Last reply Reply Quote 0
      • tjkreidlT Offline
        tjkreidl Ambassador @mjr99
        last edited by

        @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-cli

        What 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.

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

          @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.

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