0

Has anybody every successfully used NAUBackups for xenserver 6.5 and had their backups go to a SAN storage repository?

I see the default script backs up to an NFS share but I am trying to avoid NFS as backup location. I only want backups to our SAN.

Here's what I'm looking for:

  • SAN backup location, not NFS
  • NAUBackup
1

Since the backup location is just a path that you pass to NAUBackup, you can point it to wherever you have mounted your SAN storage and let it store the backups there.

I assume you're using the SAN already as SR for the XenServer, so you can just re-use it for backup as well or just create another SR just for the backups. We did it that way and just pointed NAUBackup to the mounted SR:

backup_dir=/var/run/sr-mount/afacf395-5036-4bb2-b379-cbb84c7b4b85

I know, that's not the perfect solution and a bit hacky, but it served us quite well for some time now.

11
  • 1
    Without having used iSCSI on Linux or with XenServer before: AFAIK the connected LUN should show up as additional block device under /dev/sd*. I would guess, that XenServer doesn't do much magic here and does the same. Can you find the SR there? – micxer Sep 2 '15 at 21:45
  • 1
    Sounds about the right direction. You should be able to see where it was mounted by Xen. Of course the cleaner version would be to have a separate mount point on another LUN to have more control of how much space your backups occupy. – micxer Sep 4 '15 at 7:38
  • 1
    I actually came across this patch which solved my issues: github.com/codedmind/VmBackup/commit/… – jrd1989 Sep 18 '15 at 16:24
  • 1
    NAUbackup just employs the regular xe vm-snapshot command. If you have a look at the XenServer Administration Guide (support.citrix.com/servlet/KbServlet/download/38321-102-714737/…), you will find information at chapter 8.10 and especially 8.10.3 & 8.10.5 how to snapshot with memory. This however won't work with creating a template (that discards the memory information) and I'm not sure it works with vm-export either. Altogether it might be possible, but you need to change NAUbackup yourself to what yo asked for. – micxer Sep 24 '15 at 21:47
  • 1
    We only use the vm-snapshot variant and it works well for us so I can't tell you exactly what's the difference. I only noticed there is a new version because of your comment. If you are curious, please refer to the manual of XenServer. – micxer Apr 4 '16 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.