I can't seem to mount a ZFS filesystem, shared with NFS to be read/write accessible.
When I mount the drive from a gentoo linux client, it shows up fine and says it's mounted rw, but doesn't actually let me make any changes.
Client = 192.168.1.2
Server = 192.168.1.196
On the server
On the client
back on the server
I'm not to sure on what options to pass zfs on the server side, nfsoptions=rw causes errors in /var/log/messages like this when the same mount command is issued on the client:
`zfs set sharenfs=192.168.1.2 tank/storage` allows the client to mount it, but still gives errors when trying to take action on the filesystem:
Client:
Server:
Not sure how to get this usable by root, let alone a normal user...
When I mount the drive from a gentoo linux client, it shows up fine and says it's mounted rw, but doesn't actually let me make any changes.
Client = 192.168.1.2
Server = 192.168.1.196
On the server
Code:
# zfs set sharenfs=on tank/storage
# showmount -e
Exports list on localhost:
/tank/storage Everyone
# cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/tank/storage
On the client
Code:
# mount 192.168.1.196:/tank/storage /mnt/storage
back on the server
Code:
# tail -n 1 /var/log/messages
Dec 20 16:25:07 tobias mountd[840]: mount request denied from 192.168.1.2 for /tank/storage
I'm not to sure on what options to pass zfs on the server side, nfsoptions=rw causes errors in /var/log/messages like this when the same mount command is issued on the client:
Code:
Dec 20 16:37:53 tobias mountd[840]: can't get address info for host rw
Dec 20 16:37:53 tobias mountd[840]: bad host rw, skipping
Dec 20 16:37:53 tobias mountd[840]: bad exports list line /tank/storage rw
`zfs set sharenfs=192.168.1.2 tank/storage` allows the client to mount it, but still gives errors when trying to take action on the filesystem:
Client:
Code:
# touch /mnt/storage/test
touch: cannot touch `/mnt/storage/test': Permission denied
# mount |grep 192
192.168.1.196:/tank/storage on /mnt/storage type nfs (rw,addr=192.168.1.196)
Server:
Code:
# showmount -e
Exports list on localhost:
/tank/storage 192.168.1.2
Not sure how to get this usable by root, let alone a normal user...