Shutting down Proxmox with an Unraid VM containing backups


Recommended Posts

I'm currently running Unraid in a Proxmox VM and it works flawlessly. Was a bit of a hassle to get working and not having a PCI SATA card to pass through, just individual drives will prove an absolute nightmare if a drive fails, but... that's not my issue.

 

I have a share setup on Unraid where Proxmox saves it's backups. So, Unraid runs in a VM in Proxmox and Proxmox has a CIFS share on Unraid for backups. Works fine, except for one thing. Whenever I shutdown or reboot the machine, it takes forever. Turns out... it's waiting for the share to unmount. Which obviously takes forever: the Unraid VM has already shutdown!

 

All in all, this makes a shutdown of my Proxmox machine take around 10 minutes, if not more. Does anyone perhaps have an elegant solution?

Link to comment
  • 1 month later...

Right, for anyone who has a similar issue... the solution (for me) where snippets.

 

I made a snippet that unmounts and disables the share in the "pre-stop" phase (and because it'll only enter that phase if you shut the VM down from within Proxmox, not from within the VM itself, I do it again in "post-stop" just to be sure), and it enables and mounts the share again in the post-start phase.

 

Solved the massive delays, but it's not perfect. It doesn't always see the mount, so sometimes I'm left with a share in Proxmox that it can't use. Simply disabling and re-enabling fixes that. Not entirely sure how to fix that yet, I'm guessing it happens because the snippet runs because the VM has started, but Unraid hasn't completely booted yet, so the share isn't available yet.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.