As written before:Still no luck. At this moment I am even too annoyed to just give up. Let me walk you through the process, hopefully it helps me and others.
Setup is a server with two hard-disk (/dev/sda /dev/sdb) and a network interface eth0 connected to a router. Commands are kept short. On a real system further tuning might be necessary (e.g. set right -ashift for ZFS)
First steps on the host (Proxmox):
Guest creation and set-up (Ubuntu-Desktop 16.04):
- Install Proxmox (V4.4) on a Server (/dev/sda is used here for the host system). Apply all updates.
- Install packages for nfs
- Add dummy entry to /etc/export to get the nfs-system running at start-up
- reboot
- Create ZFS system:
- Enable nfs-sharing to the 192.168.200.0 net for one of the file-systems
- Add a group for nfs and assign a zfs-filesystem to that group with rw-Rights
Network device eth0 bridged to vmbr0 to connect to the internet
After this I am still not able to create and files or folder is the /srv/tank/test folder. If I create a test file from within proxmox, I can see and open it, but cannot change anything. What did I miss?
- Still on the proxmox node add a "Linux Bridge" (vmbr100) and assign 192.168.200.1 to it
- Create a VM and add a second "network device" with bridge=vmbr100
- Install Ubuntu and update
- Install packages for nfs
- Apply IP 192.168.200.2 to the network card bridget to vmbr100. The first one will get an IP from the router from a different sub-net.
- Add the same group with same gid and assign group to user
- reboot
- create mount points for the nfs-share
- Add entry to /etc/fstab
- reboot
On the host:
Code:root@pve:~# ls -n /tank/ total 2 drwxr-xr-x 2 0 0 2 Jan 7 17:31 one drwxrwxr-x 2 0 1300 2 Jan 7 17:31 test drwxr-xr-x 2 0 0 2 Jan 7 17:31 two
On the guest:
Code:ich@heimserver:~$ id [...] 1300(nfs-share) ich@heimserver:~$ ls -n /srv/tank/ insgesamt 1 drwxrwxr-x 2 0 1300 3 Jan 7 17:47 test
Trying to create a file does result in an error:
Code:ich@heimserver:~$ touch /srv/tank/test/testfile.txt touch: '/srv/tank/test/testfile.txt' kann nicht berührt werden: Keine Berechtigung
View attachment 4592
View attachment 4593
On linux mount share with mount option noacl.
In ZFS add these acl options to the dataset:
zfs set aclmode=passthrough dataset
zfs set aclinherit=passthrough-x dataset