On 08/11/10 12:55 PM, antst wrote:
I found strange issue.
Let say I have zfs filesystem export/test1, which is shared over NFSv3
then I
zfs create export/test1/test2
chown myuser /export/test1/test2
ls -l /export/test1/test2 (it will output that myusers is owner).
But if I do ls -l on NFS client where /export/test1 is mounted, I will see that
root is still owner.
The only one way to fix it is to unmount /export/test1/test2 then change the
owner of the mountpoint (directory /export/test1/test2) and mount back.
The most strange is that on another ZFS filesystem I created long some time ago
export/home , everything behaves properly. If I create sub-filesystem
export/home/newuser and chown it, then on NFS client I see new owner.
I checked, both filesystems (export/home and export/test1) have exactly the
same ZFS properties and ACLs. Only difference is that export/home was created
on snv_131 (AFAIR) and export/test1 was created on snv_134 (and every
filesystem I create on 134 has the same problem with child filesystems).
what could be the problem?
It is annoying to umount/chown/mount every time when I need to change owner.
Ant,
You might want to give us real output and a snoop, but what I
suspect is happening is that you are seeing the mount point
and not the new filesystem.
This is probably because you are using NFSv3 and the
automounter. My guess is that it has cached the directory
structure.
You might try NFSv4, which has mirrormounts, and see what
happens. Note that the mirrormount does not occur until
you enter the new filesystem.
cd /foo/export/test1/test2
ls -l .
Thanks,
Tom
_______________________________________________
nfs-discuss mailing list
[email protected]