non existent cifs share spams syslog pve 6.3

diversity

Well-Known Member
Feb 19, 2020
249
15
58
55
every 2 seconds a new row appears in the syslog of pve-manager/6.3-3/eee5f901 (running kernel: 5.4.78-2-pve)
# start copy paste from syslog
kernel: CIFS VFS: \\oldnas.lan Send error in SessSetup = -13
# end copy paste from syslog

there is no share specified only the server name.

The weird thing is that the all cifs storage mounts I have configured in datacenter > Storage are fine, including one on the same Freenas server.

EDIT: when ls /mnt/pve i get more directories (mounts) than I have configured / listed in my datacenter/storage section

Can I simply remove the breaking directories? or should I take additional steps?
 
Last edited:
hi,

can you check /etc/fstab and /etc/pve/storage.cfg if your cifs is still defined there?
 
root@pve-trx40:/etc# cat fstab
# <file system> <mount point> <type> <options> <dump> <pass>

root@pve-trx40:/etc# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content backup,iso,vztmpl

zfspool: local-zfs
pool rpool/data
content rootdir,images
sparse 1

cifs: proxmox_data_truenas
path /mnt/pve/proxmox_data_truenas
server 192.168.1.141
share proxmox_data_truenas
content images,rootdir,iso,backup,snippets,vztmpl
prune-backups keep-all=1
username xxxxx

cifs: LifeTimeData_oldnas
path /mnt/pve/LifeTimeData_oldnas
server oldnas.lan
share LifeTimeData
content images
prune-backups keep-all=1
username xxxx

Both cifs shares are functional and are endeed showing up in the datacenter>storage list in the GUI.

root@pve-trx40:/mnt/pve# ls
FeeNas_LifeTimeData LifeTimeData_oldnas OldNAS-LifeTimeData proxmox_data_truenas

I tried removing the 2 non existent shares listed in /mnt/pve but got permission denied

root@pve-trx40:/mnt/pve# rm -r FeeNas_LifeTimeData/
rm: cannot remove 'FeeNas_LifeTimeData/1st_freenas_vms': Permission denied

(which might be a good thing because the share contains data)
EDIT: major screw up by me. I just deleted a whole lot of data on my share. going to look for a snapshot now that I should have.
EDIT2: life is good with zfs snapshots. got my data back ;)


How can I remove the offending cifs shares without destroying data?
 
Last edited:
How can I remove the offending cifs shares without destroying data?
you can just remove the cifs part from /etc/pve/storage.cfg and it should go away
 
cifs: proxmox_data_truenas
path /mnt/pve/proxmox_data_truenas
server 192.168.1.141
share proxmox_data_truenas
content images,rootdir,iso,backup,snippets,vztmpl
prune-backups keep-all=1
username xxxxx

cifs: LifeTimeData_oldnas
path /mnt/pve/LifeTimeData_oldnas
server oldnas.lan
share LifeTimeData
content images
prune-backups keep-all=1
username xxxx

But they are not in storage.cfs
they were in storage.cfg according to your output