This is the first time I tried nfs with zfs. I shared the zfs filesystem with nfs, but i can''t write to the files though i mount it as read-write. This is for Solaris 10 update 4. I wonder if there is a bug? ---------------server (sdw2-2) #zfs create -o sharenfs=on data/nfstest #zfs get all data/nfstest NAME PROPERTY VALUE SOURCE data/nfstest type filesystem - data/nfstest creation Thu Jun 5 13:22 2008 - data/nfstest used 40.7K - data/nfstest available 15.4T - data/nfstest referenced 40.7K - data/nfstest compressratio 1.00x - data/nfstest mounted yes - data/nfstest quota none default data/nfstest reservation none default data/nfstest recordsize 128K default data/nfstest mountpoint /data/nfstest default data/nfstest sharenfs on local data/nfstest checksum on default data/nfstest compression off default data/nfstest atime on inherited from data data/nfstest devices on default data/nfstest exec on default data/nfstest setuid on default data/nfstest readonly off default data/nfstest zoned off default data/nfstest snapdir hidden default data/nfstest aclmode groupmask default data/nfstest aclinherit secure default data/nfstest canmount on default data/nfstest shareiscsi off default data/nfstest xattr on default #share - /data/nfstest rw "" ------------client #mount -o rw sdw2-2:/data/nfstest /data/nfsmount/ #mount -o rw sdw2-2:/data/nfstest /sdw2nfs/ touch /sdw2nfs/dummy.txt touch: /sdw2nfs/dummy.txt cannot create This message posted from opensolaris.org
Check the permissions on the directory... On Jun 5, 2008, at 1:06 PM, Gary Leong wrote:> This is the first time I tried nfs with zfs. I shared the zfs > filesystem with nfs, but i can''t write to the files though i mount > it as read-write. This is for Solaris 10 update 4. I wonder if > there is a bug? > > ---------------server (sdw2-2) > > #zfs create -o sharenfs=on data/nfstest > > #zfs get all data/nfstest > NAME PROPERTY VALUE SOURCE > data/nfstest type filesystem - > data/nfstest creation Thu Jun 5 13:22 2008 - > data/nfstest used 40.7K - > data/nfstest available 15.4T - > data/nfstest referenced 40.7K - > data/nfstest compressratio 1.00x - > data/nfstest mounted yes - > data/nfstest quota none default > data/nfstest reservation none default > data/nfstest recordsize 128K default > data/nfstest mountpoint /data/nfstest default > data/nfstest sharenfs on local > data/nfstest checksum on default > data/nfstest compression off default > data/nfstest atime on inherited from > data > data/nfstest devices on default > data/nfstest exec on default > data/nfstest setuid on default > data/nfstest readonly off default > data/nfstest zoned off default > data/nfstest snapdir hidden default > data/nfstest aclmode groupmask default > data/nfstest aclinherit secure default > data/nfstest canmount on default > data/nfstest shareiscsi off default > data/nfstest xattr on default > > #share > - /data/nfstest rw "" > > ------------client > > #mount -o rw sdw2-2:/data/nfstest /data/nfsmount/ > > #mount -o rw sdw2-2:/data/nfstest /sdw2nfs/ > touch /sdw2nfs/dummy.txt > touch: /sdw2nfs/dummy.txt cannot create > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
> This is the first time I tried nfs with zfs. I shared the zfs filesystem with nfs, but i can''t write to the files though i mount it as read-write. This is for Solaris 10 update 4. I wonder if there is a bug? > > ---------------server (sdw2-2) > > #zfs create -o sharenfs=on data/nfstest > > #mount -o rw sdw2-2:/data/nfstest /sdw2nfs/ > touch /sdw2nfs/dummy.txt > touch: /sdw2nfs/dummy.txt cannot createRoot has no rw-privileges unless you specify map-root=root (syntax on FreeBSD) in /etc/exports. You can verify uid/gid on both servers and check if they are equal. -- regards Claus When lenity and cruelty play for a kingdom, the gentlest gamester is the soonest winner. Shakespeare
Maybe Matching Threads
- Pls help on configuring autofs on NFS
- Cannot share RW, "Permission Denied" with sharenfs in ZFS
- Cannot share RW, "Permission Denied" with sharenfs in ZFS
- Huge difference in reporting disk usage via du and zfs list. Fragmentation?
- Temporary mount Properties, small bug?