Problems with SSHFS and Proxmox mount

Alternativende

Renowned Member
Aug 27, 2015
30
1
73
Hello community,
i have a real problem with my Proxmox backup config at one site. On this site i have a small Proxmox server with two VMs. These VM´s should be backed up on a OpenMediaVault server which is a few kilometers away. I have a wire to that point and it´s in my local network. So no worry about that part.

Now i mount these remote share via SSHFS and FSTAB like this:

Code:
sshfs#root@nas02:/srv/dev-disk-by-label-20TBext4Backup/NAS02/PROXMOX02/ /mnt/VM-BACKUP/ fuse umask=0,allow_other,_netdev 0 0

I have added these share with the "directory" option under "Storage".

The problem is now when i reboot the server Proxmox automatically creates folders like "dump" in that path before SSHFS has any chance to mount the remote site.

So what do i do about that? Im open for any solution for this problem. I know that i could use NFS, but version 3 has no encryption and so on... And i would love to avoid setting up an Kerberos server and so on for NFS4.

Best regards
 
Hi!

You can set the is_mountpoint property to 1 to indicate that this directory storage is not a common directory storage on a local FS but actually a mount point, and thus it's only seen as active and default folders are only created if it's mounted.

You can set it using the pve storage manager CLI tool:
Bash:
pvesm set STORAGEID --is_mountpoint 1