How to correctly ount CIFS on proxmox with hetzner?

openaspace

Active Member
Sep 16, 2019
486
13
38
Italy
Hello.
How to correctly mount CIFS on proxmox with hetzner?
I'm mounting it directly in the CIFS storage of proxmox..but with some errors when proxmox use the storage.

I need to mount it manualy in the system?..then add to proxmox as foder?

Code:
Linux

In Linux-based systems, you can use the following command on the CLI to mount the file system:

mount.cifs -o user=<username>,pass=<password> //<username>.your-storagebox.de/backup /PATH/FOLDER

By adding the following line to /etc/fstab, your system will automatically mount the file system at boot. (It is a single line!):

//<username>.your-storagebox.de/backup /mnt/backup-server cifs iocharset=utf8,rw,credentials=/etc/backup-credentials.txt,uid=<system account>,gid=<system group>,file_mode=0660,dir_mode=0770 0 0

The file /etc/backup-credentials.txt (mode 0600) should contain two lines as follows:

username=<username>
password=<password>

In Debian-based distributions, the command is provided via the package cifs-utils.

apt-get install cifs-utils

On Debian Wheezy based systems, edit the parameters as follows if you are having problems:

rsize=65536,wsize=130048

You should also add the following lines to /etc/rc.local:

modprobe cifs
echo 0 > /proc/fs/cifs/OplockEnabled
 
hi,

I need to mount it manualy in the system?..then add to proxmox as foder?
are you able to mount it manually?

I'm mounting it directly in the CIFS storage of proxmox..but with some errors when proxmox use the storage.
this should work.
what error are you getting?