Create datastore on SSHFS mount

rubenzsolt

Member
Nov 13, 2020
6
0
6
44
I mounted an volume over sshfs, but when I try to create an datastore on this mount I receive permission denied error.

sshfs -p 1234 user@x.x.x.x:/pbs /mnt/pbs -o default_permissions,reconnect,nonempty,allow_other,identityfile=/root/.ssh/id_rsa

root@pbs:~# proxmox-backup-manager datastore create sshfs /mnt/pbs/SERVERS
Error: EACCES: Permission denied

It is supported datastore on sshfs mount?
 
Thanks, but I looked at almost every options, but without success.
default_permissions,reconnect,nonempty,allow_root,uid=0,gid=0,cache=no,identityfile=/root/.ssh/id_rsa
reconnect,nonempty,allow_other,idmap=user,uid=34,gid=34,cache=no,noauto_cache,entry_timeout=0,identityfile=/root/.ssh/id_rsa (where 34 is the backup user uid and gid number)
In every options the error remain
Error: EACCES: Permission denied
 
Could someone from Proxmox reply to this question? Are SSHFS mounts supported as a datastore?

If the answer is 'yes', my 2nd question would be: Can the full backup that PBS performs (before feeding the datastore with the incremental data) be done directly on the SSHFS mount instead of on local storage? Yeah, it will be a slow transport (500 mbits/s), but that's OK.

Finally, when backing up LXC containers on LVM storage, can PBS do the full backup that it performs (before feeding the datastore with the incremental data) on snapshot mode without having to suspend or stop the container?

Huge thanks.
 
the datastore needs to be writable by the "backup" user.. SSHFS likely won't offer you any sensible performance though..
 
the datastore needs to be writable by the "backup" user.. SSHFS likely won't offer you any sensible performance though..
Thanks for that info, Fabian. Giving up on SSHFS already!

* When backing up LXC containers on LVM storage, can PBS do the full backup (before feeding the datastore) on snapshot mode without having to suspend or stop the container?
 
the backup modes haven't changed with PBS - for containers, you need storage support for snapshot mode..
 

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!