Proxmox cannot use SMB share with caching


Recommended Posts

Hello,

I'm trying to use an Unraid SMB share as a storage for ISOs, backups, etc. The issue is I cannot set a cache drive to the share. It will immediately kick an error out in Proxmox saying it cannot find the SMB share, even though it can list it.

 

Here is a view of Proxmox showing details about the SMB share but unable to write to it
image.thumb.png.b5f87a3b4c2735af8a67ae50d7b68d84.png

 

INFO: starting new backup job: vzdump 100 --prune-backups 'keep-last=2,keep-weekly=1' --all 0 --node PVE-SOL --storage UNRAID-SMB --mailnotification always --notes-template '{{guestname}}' --mode snapshot --compress zstd
ERROR: Backup of VM 100 failed - unable to create temporary directory '/mnt/pve/UNRAID-SMB/dump/vzdump-qemu-100-2023_01_16-18_19_28.tmp' at /usr/share/perl5/PVE/VZDump.pm line 930.
INFO: Failed at 2023-01-16 18:19:28
INFO: Backup job finished with errors
TASK ERROR: job errors

 

If I remove the cache drive from the share it works perfectly fine.

 

 

This may be related, but I tried to use NFS instead and ran into similar results, I didn't try it without the cache drive though.

 

This may also not be related, but I turned on SMB log level to 1 and the console is being spammed with this error:

image.thumb.png.8143c8870c7fdb7cdb77d45ce20005d4.png

Link to comment

I am having this issue with NFS and digging in to it as well. Ill give the no cache drive a try and see if anything changes.

What I find odd in my case is that I can add the NFS share to my cluster, see it on both nodes, set up a backup job, run said backup job and everything works great. Leave it for a bit and come back and the storage on both nodes has a question mark and inaccessible. I have another NFS share mounted from another NAS and that has been solid.

Edited by jtp755
Link to comment
17 minutes ago, jtp755 said:

I am having this issue with NFS and digging in to it as well. Ill give the no cache drive a try and see if anything changes.

What I find odd in my case is that I can add the NFS share to my cluster, see it on both nodes, set up a backup job, run said backup job and everything works great. Leave it for a bit and come back and the storage on both nodes has a question mark and inaccessible. I have another NFS share mounted from another NAS and that has been solid.

That is the exact issue I'm having with NFS. Like I said, I haven't tried it since then without the cache.

 

I am using another SMB share with a cached drive no problem mounted in an Ubuntu VM. So not sure what the hang up is with Proxmox.

Link to comment
21 hours ago, WarlockSyno said:

That is the exact issue I'm having with NFS. Like I said, I haven't tried it since then without the cache.

 

I am using another SMB share with a cached drive no problem mounted in an Ubuntu VM. So not sure what the hang up is with Proxmox.

I have been running for 24hrs with cache turned off on my backup share in Unraid and it has not even blipped in Proxmox. All snapshots have written fine and I can still browse the attached storage from Proxmox. Seems to definitely be something with cache-enabled.

 

I did see quite a few posts yesterday when I was looking in to it add the NFS share in /etc/fstab for automount and then in Proxmox use local filesystem to add the storage. I have not tried this yet though.

Link to comment
12 hours ago, WarlockSyno said:

I also checked and my backups/snapshots haven't had an issue with cache turned off.

 

As stated before, I have another share with cache enabled that is working fine. In fact, I moved 500GB to it yesterday without an issue.

So the other share you have mounted in the Ubuntu VM - the VM is running on Proxmox? Im betting that would work as its using the OS which is good news.

 

I am going to change mine tomorrow to have cache enabled but mount the NFS via /etc/fstab and see how that goes. Didnt get to it today.

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.