On Sat, Mar 15, 2014 at 09:56:38PM +0100, Christian Schrötter wrote:
>> What NFS version and how was it mounted?
> exports: /remotepath
> y.y.y.y/32(rw,sync,no_root_squash,no_subtree_check)
> fstab: x.x.x.x:/remotepath /vservers.nfs nfs rw,soft,bg,intr,vers=3 0 0
> Mounted with "mount /vservers.nfs" on the host.
>> Can you create a world writeable directory, and from
>> within the guest, create a file inside this directory
>> and list ownership for that on the server and from
>> inside the guest?
> Sure, here we go:
>> # mkdir /vservers.nfs/example/example
>> # chmod 0777 /vservers.nfs/example/example
>> # vserver example exec touch /example/root-test
>> # vserver example exec su -s /bin/sh -c "touch
>> /example/clamsmtp-test" clamsmtp
> VS Host:
>> # ls -lisahn /vservers.nfs/example/example/
>> 27936703 4,0K drwxrwxrwx 2 0 0 4,0K Mär 15 21:47 .
>> 27931540 4,0K drwxr-xr-x 22 0 0 4,0K Mär 15 21:46 ..
>> 27936705 0 -rw-r--r-- 1 102 104 0 Mär 15 21:47 clamsmtp-test
>> 27936704 0 -rw-r--r-- 1 0 0 0 Mär 15 21:47 root-test
> VS Guest:
>> # vserver example exec ls -lisahn /example/
>> 27936703 4,0K drwxrwxrwx 2 0 0 4,0K Mär 15 21:47 .
>> 27931540 4,0K drwxr-xr-x 22 0 0 4,0K Mär 15 21:46 ..
>> 27936705 0 -rw-r--r-- 1 102 104 0 Mär 15 21:47 clamsmtp-test
>> 27936704 0 -rw-r--r-- 1 0 0 0 Mär 15 21:47 root-test
> NFS Server:
>> # ls -lisahn /remotepath/example/example/
>> 27936703 4,0K drwxrwxrwx 2 0 0 4,0K Mär 15 21:47 .
>> 27931540 4,0K drwxr-xr-x 22 0 0 4,0K Mär 15 21:46 ..
>> 27936705 0 -rw-r--r-- 1 102 104 0 Mär 15 21:47 clamsmtp-test
>> 27936704 0 -rw-r--r-- 1 0 0 0 Mär 15 21:47 root-test
Okay, looks fine so far, do you have tagging enabled
in the Linux-VServer kernel on the client or server?
If so, is tagging for NFS enabled?
Thanks,
Herbert
> --
> With kind regards,
> Christian Schrötter
Received on Sat Mar 15 21:37:52 2014