mergerfs , priviledged LXC container has no write permissions

deniax

New Member
Jan 23, 2023
15
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: