Access to CIFS sharing every 10s, how to change it ?

garfieldfr

Active Member
May 5, 2020
10
1
43
59
France
Hello,

I have a NAS with a CIFS share that contains ISO images used to create VMs.

On my Proxmox, I created a storage using this share.

Everything works but PVE accesses the share every 10s (I see it in the NAS logs).

How to make PVE access the share only when needed and not every 10 secondes?
 
  • Like
Reactions: G0ldmember
I think Proxmox accesses your share in order to update the storage status (% used and so on). If you disable the storage when not using it then this stops, but you also can't use the storage until you re-enable it.

You can enable/disable storages under Datacenter>Storage in the GUI or from the command line with pvesm set <storage-name> -disable <0|1>
 
Yes, if I disable the storage there is no more access, but the goal would be to keep the storage active. I plan to do the same thing to backup VMs on the NAS.

I'm thinking of something like modifying "global_filter" in "/etc/lvm/lvm.conf" but it does'nt work
 
Last edited:
I also have this problem. This prevents my NAS going to standy mode. That's not cool as I only need this storage once a week for backups :/
Ok I see that Proxmox needs the data to check historical storage space on all enabled storage pools.
But still it would be cool to have an option like "only communicate with that network storage if needed". Or maybe something like "before you start that backup, enable storage XXX and disable it again when backup has finished"
 
Last edited:
As a workaround you can write a hook-script that enables the CIFS storage when a backup job is starting and disables it when the backup job has finished. That way the CIFS backup storage gets automatically enabled/disabled when needed.
 
Last edited: