CIFS remote mount disconnect every X hours

Ancalagon

New Member
Apr 8, 2023
2
0
1
Hi guys, I'm strugling in the last month with my PVE and remote NAS connection via CIFS. At least two times per day my PVE doesn't has the connection to the NAS with an exclamation mark icon near the storage name. The share name is 'Entertainment' and is on an Unraid NAS in my LAN= with fix IP and worked that way for the last three years.

CIFS status
root@pve:/mnt/pve# pvesm status
unable to activate storage '[B]Entertainment[/B]' - directory '/mnt/pve/Entertainment' does not exist or is unreachable
Name Type Status Total Used Available %
[B]Entertainment cifs inactive 0 0 0 0.00%[/B]
NvME zfspool active 942931968 663361912 279570056 70.35%
PBS pbs active 48822443852 27261873216 21560570636 55.84%
local dir active 98497780 30440864 63007368 30.91%
local-lvm lvmthin active 833396736 327941615 505455120 39.35%

The server is reachable of course:
root@pve:/mnt/pve# ping 192.168.2.100
PING 192.168.2.100 (192.168.2.100) 56(84) bytes of data.
64 bytes from 192.168.2.100: icmp_seq=1 ttl=64 time=0.012 ms
64 bytes from 192.168.2.100: icmp_seq=2 ttl=64 time=0.016 ms

Detail of my folder with mounts:
root@pve:/mnt/pve# ls -la
ls: cannot access 'Entertainment': Stale file handle
total 20
drwxr-xr-x 6 root root 4096 Mar 10 2023 .
drwxr-xr-x 5 root root 4096 Sep 14 2023 ..
drwxr-xr-x 2 root root 4096 Mar 10 2023 temp_download
[B]d????????? ? ? ? ? ? Entertainment[/B]
drwxr-xr-x 2 root root 4096 Jan 19 2023 unraid_bak

I'm using linux since 2005 and never seen something like this. If I reboot the PVE the problem fix itself for a few hours.
In LOGS the first message says "unable to activate storage 'Entertainment' - directory '/mnt/pve/Entertainment' does not exist or is unreachable" and form that moment the NAS is not reachable and tha folder "Entertainment" has that strange proprieties d??????.

To solve it without a server reboot I need to force umount and then it work for some hours. The problem seems to be from PVE side. Seems.
umount -f -l /mnt/pve/Entertainment

Any idea?
 
Last edited:
Hi,

For more information what happened exactly, could you check the syslog when the mount is unmounted on both side? You can check the syslog with specific time using Proxmox VE Web UI or from CLI using journalctl e.g.:

Bash:
journalctl --since "2024-07-01 08:00"  > /tmp/$(hostname)-Syslog.txt
 
Logs are not helping, my mistake to not mentioned earlier. The only thing in logs that I get is

Jul 02 12:00:07 pve pvestatd[1549]: unable to activate storage 'Entertainment' - directory '/mnt/pve/Entertainment' does not exist or is unreachable

Nothing sospicious before. When that's happening NAS is reachable and the destination folder had all that strange permissions
 
Hi,

Did you check the older syslog i.e., before the `Entertainment` unmounted? Hard to know how fix the issue without syslog.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!