Using Qnap NFS4 Share as /home/yunohost.multimedia/ folder

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.1.40.1
How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

Hello everyone, thanks in advance for your support. :slight_smile:

My setup currently consists of yunohost (vm), Qnap NAS and the Nextcloud App.
I want to use a nfs share as /home/yunohost.multimedia/ folder. My Yunohost VM only has 56GB HDD and my NAS has 3TB.
I have successfully moved the yunohost.multimedia folder, mounted my nfs share to /home/yunohost.multimedia and copied the files back.
After the I checked the permissions and did chown and chmod to match the old folder.
I can now upload new files and folders.
BUT I cant delete anything in the /home/yunohost.multimedia/share folder or the share folder itself.
As far as I checked the ACL is different and I tried to set it back.
But I get “setfacl: /home/yunohost.multimedia/: Operation not supported”

Thanks again for your help.

Kind regards Hans

Share relevant logs or error messages

getfacl output

# file: yunohost.multimedia/
# owner: root
# group: root
user::rwx
group::rwx
other::r-x

Acl of the old Folder:

# file: yunohost.multimedia.local/
# owner: root
# group: root
user::rwx
group::rwx
group:multimedia:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:multimedia:rwx
default:mask::rwx
default:other::r-x

My /etc/fstab/ entry for the nfs share:

192.x.x.x:/nfs_share  /home/yunohost.multimedia  nfs4  defaults,acl  0  0

Hi HansGruber,

Welcome to the forums!

That is innovative use of resources :slight_smile:

Is that when you do it from the Yunohost VM, or when you are logged in to the Qnap? I’m not so good at NFS, but I would try to apply the ACLs from the Qnap.

Reading your post I think you already did that, but it is easiest to get permissions correct if the share on the NAS, seen from its host (Qnap), has the same numerical user (group) IDs as it has on the side where it is mounted (Yunohost). That implies you need groups with the same IDs as multimedia at least.

NFS4 has an option to use names instead of IDs, but I recall it has a drawback elsewhere.

As part of a migration I put Nextcloud data on NFS as well, but in that case I created a share per user. I think I did not bother with ACL because it already seemed to work. II must admit that I have not tested deletes yet.

Hey wbk, thanks for the welcome and thank you for your reply.

The error occurs if I try to apply the acl from the yunohost. I also tried it from the qnap but that also did not work. After that I connected the ldap from the qnap to the slapd from yunohost. That did not work either.

After that I gave up, reversed everything and connected the nfs share als external storage.
Maybe I will give it another try, but for now I am done with that. :smiley:

Kind regards

HansGruber :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.