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 382 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post