CIFS share disconnects after a few hours/day.

Jackster

Active Member
Nov 12, 2014
23
0
41
Hi all

I have a CIFS share that I added from the UI. It works fine for a while but after a few hours, even a day, it disconnects.
Have to remove and add it back to get it working again.

Using a Hertzner Storage Box.

Any ideas why it is disconnecting?
Thanks
 
hi,

It works fine for a while but after a few hours, even a day, it disconnects.
do you see anything in the logs? journalctl, syslog, etc?

Have to remove and add it back to get it working again.
how do you do this? through the GUI?

Any ideas why it is disconnecting?
connection problems? hard to tell without any more information.

you can post your:
* pveversion -v
* cat /etc/pve/storage.cfg
* journalctl | grep STORAGENAME -C 3
 
Working on logs

Yes, all via GUI.



root@Proxmox-VE ~ # pveversion -v proxmox-ve: 6.2-2 (running kernel: 5.4.60-1-pve) pve-manager: 6.2-11 (running version: 6.2-11/22fb4983) pve-kernel-5.4: 6.2-6 pve-kernel-helper: 6.2-6 pve-kernel-5.4.60-1-pve: 5.4.60-2 ceph-fuse: 12.2.11+dfsg1-2.1+b1 corosync: 3.0.4-pve1 criu: 3.11-3 glusterfs-client: 5.5-3 ifupdown: residual config ifupdown2: 3.0.0-1+pve2 libjs-extjs: 6.0.1-10 libknet1: 1.16-pve1 libproxmox-acme-perl: 1.0.5 libpve-access-control: 6.1-2 libpve-apiclient-perl: 3.0-3 libpve-common-perl: 6.2-2 libpve-guest-common-perl: 3.1-3 libpve-http-server-perl: 3.0-6 libpve-storage-perl: 6.2-6 libqb0: 1.0.5-1 libspice-server1: 0.14.2-4~pve6+1 lvm2: 2.03.02-pve4 lxc-pve: 4.0.3-1 lxcfs: 4.0.3-pve3 novnc-pve: 1.1.0-1 proxmox-mini-journalreader: 1.1-1 proxmox-widget-toolkit: 2.2-12 pve-cluster: 6.1-8 pve-container: 3.2-1 pve-docs: 6.2-5 pve-edk2-firmware: 2.20200531-1 pve-firewall: 4.1-2 pve-firmware: 3.1-3 pve-ha-manager: 3.1-1 pve-i18n: 2.2-1 pve-qemu-kvm: 5.1.0-2 pve-xtermjs: 4.7.0-2 qemu-server: 6.2-14 smartmontools: 7.1-pve2 spiceterm: 3.1-1 vncterm: 1.6-2

root@Proxmox-VE ~ # cat /etc/pve/storage.cfg dir: local path /var/lib/vz content rootdir,vztmpl,images,snippets,iso maxfiles 0 dir: backup path /backup/prox content iso,backup maxfiles 2 shared 0


Here are the last few lines from "journalctl | grep STORAGENAME -C 3", it is long and dates back to December..
Mar 02 13:09:24 Proxmox-VE pvestatd[1005]: mkdir /backup: File exists at /usr/share/perl5/PVE/Storage/DirPlugin.pm line 108. Mar 02 13:09:34 Proxmox-VE pvestatd[1005]: mkdir /backup: File exists at /usr/share/perl5/PVE/Storage/DirPlugin.pm line 108. Mar 02 13:09:44 Proxmox-VE pvestatd[1005]: mkdir /backup: File exists at /usr/share/perl5/PVE/Storage/DirPlugin.pm line 108. Mar 02 13:09:55 Proxmox-VE pvestatd[1005]: mkdir /backup: File exists at /usr/share/perl5/PVE/Storage/DirPlugin.pm line 108. Mar 02 13:10:04 Proxmox-VE pvestatd[1005]: mkdir /backup: File exists at /usr/share/perl5/PVE/Storage/DirPlugin.pm line 108.



SYSLOG

Mar 2 13:16:44 Proxmox-VE kernel: [13716930.881769] CIFS VFS: \\u123456.your-storagebox.de Send error in SessSetup = -13 Mar 2 13:16:44 Proxmox-VE kernel: [13716931.220515] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE

Thing is, the login info is correct.
 
Last edited:
dir: backup path /backup/prox content iso,backup maxfiles 2 shared 0
is /backup your cifs mount? where is this added? in your /etc/fstab?

i would rather add the cifs in storage.cfg as well:
cifs: backup
path /mnt/pve/backup
server ip.of.your.server
share nameofshare
content vztmpl,rootdir,images,iso,backup,snippets
maxfiles 1
username usernameforshare

you can also add it using the GUI: Datacenter -> Storage -> Add -> CIFS -> Fill the blanks

proxmox-ve: 6.2-2 (running kernel: 5.4.60-1-pve) pve-manager: 6.2-11 (running version: 6.2-11/22fb4983)
also 6.2 has reached EOL, i suggest upgrading to 6.3 for latest bugfixes and features.
 
is /backup your cifs mount? where is this added? in your /etc/fstab?

i would rather add the cifs in storage.cfg as well:


you can also add it using the GUI: Datacenter -> Storage -> Add -> CIFS -> Fill the blanks


also 6.2 has reached EOL, i suggest upgrading to 6.3 for latest bugfixes and features.
Not sure why it is trying to do it on /backup
The UI had a backup location in the default spot, I just removed it and now it won't let me make it again.

Code:
create storage failed: error during cfs-locked 'file-storage_cfg' operation: unable to activate storage 'backup' - directory '/mnt/pve/backup' does not exist or is unreachable (500)

There is nothing in fstab
Working on upgrading now, but wanted to backup VMs prior.
 
if you added it manually in the storage.cfg you should create the directory mkdir /mnt/pve/backup

Not sure why it is trying to do it on /backup
could you show: find /backup
 
Restarted and
if you added it manually in the storage.cfg you should create the directory mkdir /mnt/pve/backup


could you show: find /backup
Nothing came up.

Updated to 6.3 and restarted. Was able to add a CIFS again. Removed it and tried to add another and get.
Code:
create storage failed: error during cfs-locked 'file-storage_cfg' operation: tree connect failed: NT_STATUS_ACCESS_DENIED (500)
 
create storage failed: error during cfs-locked 'file-storage_cfg' operation: tree connect failed: NT_STATUS_ACCESS_DENIED (500)
username or password is wrong
 

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!