mergerfs , priviledged LXC container has no write permissions

deniax

New Member
Jan 23, 2023
13
0
1
In my priviledged LXC container, I can only write when I'm root.

Config done on PVE for LXC:
mp1: /mnt/storage,mp=/myfiles

fstab:
/mnt/pve/media/media /mnt/storage fuse.mergerfs allow_other,nonempty,use_ino,cache.files=partial,func.getattr=newest,dropcacheonclose=>

Other configuration details
  • The "media" storage on the PVE is a CFS mount from TrueNAS
  • I can use touch command on the PVE on both /mnt/pve/media/media and /mnt/storage
  • On the LXC, i can use touch command only whem I'm root
  • Permissions for /mnt/pve/media/media are seen on the PVE as drwxr-xr-x 2 root root and on /mnt/storage as drwxr-xr-x 2 1000 1000
  • Permissions for /myfiles on the LXC are shown as drwxr-xr-x 2 1000 1000

On my LXC, to test, I also mounted using SBM the same directory:
drwxrwx--- 2 1000 1000

But for the same directory, mounted with mergerfs:
drwxr-xr-x 2 1000 1000

So, the question is: How do I get write rights for the mergerfs one?
 
Last edited:

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!