I have Solaris 10 U7 that is exporting ZFS filesytem. The client is Solaris 9 U7. I can mount the filesytem just fine but I am unable to write to it. showmount -e shows my mount is set for everyone. the dfstab file has option rw set. So what gives? Phillip -- This message posted from opensolaris.org
Hi Phillip, What''s the error message? How did you share the ZFS file system? # zfs create tank/cindys # zfs sharenfs=on tank/cindys # share - /tank/cindys rw "" # cp /usr/dict/words /tank/cindys/file.1 # cd /tank/cindys # chmod 666 file.1 # ls -l file.1 -rw-rw-rw- 1 root root 206663 Aug 13 13:03 file.1 Some things to check: - Are the UID/GID and hostnames resolving between the NFS server and the NFS client? - File permissions - Mount point permissions Can you access the file system on the client by using the automounter? # pwd /net/t2k-brm-03/tank/cindys # echo abc > file.1 # Thanks, Cindy On 08/13/10 13:19, Phillip Bruce wrote:> I have Solaris 10 U7 that is exporting ZFS filesytem. > The client is Solaris 9 U7. > > I can mount the filesytem just fine but I am unable to write to it. > showmount -e shows my mount is set for everyone. > the dfstab file has option rw set. > > So what gives? > > Phillip
Cindy, UID/GID on both are the same. Do not want to use aumounter at this point. Need to get it working first. Besides mounting the filesystem Is not the issue. The issue is writing to it. Phillip -----Original Message----- From: Cindy Swearingen [mailto:cindy.swearingen at oracle.com] Sent: Friday, August 13, 2010 12:59 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS Hi Phillip, What''s the error message? How did you share the ZFS file system? # zfs create tank/cindys # zfs sharenfs=on tank/cindys # share - /tank/cindys rw "" # cp /usr/dict/words /tank/cindys/file.1 # cd /tank/cindys # chmod 666 file.1 # ls -l file.1 -rw-rw-rw- 1 root root 206663 Aug 13 13:03 file.1 Some things to check: - Are the UID/GID and hostnames resolving between the NFS server and the NFS client? - File permissions - Mount point permissions Can you access the file system on the client by using the automounter? # pwd /net/t2k-brm-03/tank/cindys # echo abc > file.1 # Thanks, Cindy On 08/13/10 13:19, Phillip Bruce wrote:> I have Solaris 10 U7 that is exporting ZFS filesytem. > The client is Solaris 9 U7. > > I can mount the filesytem just fine but I am unable to write to it. > showmount -e shows my mount is set for everyone. > the dfstab file has option rw set. > > So what gives? > > Phillip
Cindy, I appreciate your help. Understand the NFS server is Solaris 10 The Client is Solaris 9 Here what I see on the client system: # mount -o rw server1:/nfs /nfs/backup # cd /nfs/backup # touch me touch: me cannot create # showmount -e server1 export list for server1: /nfs (everyone) # nfsstat -m /nfs/backup from server1:/nfs Flags: vers=3,proto=tcp,sec=sys,hard,nointr,noac,link,symlink,acl,rsize=32768,wsize=32768,retrans=5,timeo=600 Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60 Server1 is setup as followed: # zfs get all nfs NAME PROPERTY VALUE SOURCE nfs type filesystem - nfs creation Mon Aug 9 18:00 2010 - nfs used 125K - nfs available 1.55T - nfs referenced 20K - nfs compressratio 1.00x - nfs mounted yes - nfs quota none default nfs reservation none default nfs recordsize 128K default nfs mountpoint /nfs default nfs sharenfs rw local nfs checksum on default nfs compression off default nfs atime on default nfs devices on default nfs exec on default nfs setuid on default nfs readonly off default nfs zoned off default nfs snapdir hidden default nfs aclmode groupmask default nfs aclinherit restricted default nfs canmount on default nfs shareiscsi off default nfs xattr on default nfs copies 1 default nfs version 3 - nfs utf8only off - nfs normalization none - nfs casesensitivity sensitive - nfs vscan off default nfs nbmand off default nfs sharesmb off default nfs refquota none default nfs refreservation none default # exportfs - /nfs rw "" Again I ask what gives, UID and GUID are same on both servers. I would appreciate if someone can confirm if Solaris 9 needs a patch? I can''t see why but since this is a ZFS filesystem being NFS over. Who knows!!! Phillip -----Original Message----- From: Cindy Swearingen [mailto:cindy.swearingen at oracle.com] Sent: Friday, August 13, 2010 12:59 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS Hi Phillip, What''s the error message? How did you share the ZFS file system? # zfs create tank/cindys # zfs sharenfs=on tank/cindys # share - /tank/cindys rw "" # cp /usr/dict/words /tank/cindys/file.1 # cd /tank/cindys # chmod 666 file.1 # ls -l file.1 -rw-rw-rw- 1 root root 206663 Aug 13 13:03 file.1 Some things to check: - Are the UID/GID and hostnames resolving between the NFS server and the NFS client? - File permissions - Mount point permissions Can you access the file system on the client by using the automounter? # pwd /net/t2k-brm-03/tank/cindys # echo abc > file.1 # Thanks, Cindy On 08/13/10 13:19, Phillip Bruce wrote:> I have Solaris 10 U7 that is exporting ZFS filesytem. > The client is Solaris 9 U7. > > I can mount the filesytem just fine but I am unable to write to it. > showmount -e shows my mount is set for everyone. > the dfstab file has option rw set. > > So what gives? > > Phillip
Cindy, I forgot to post the server NFS config. # zpool status pool: nfs state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM nfs ONLINE 0 0 0 c4t60060E8004A4A0000000A4A0000000FDd0 ONLINE 0 0 0 c4t60060E8004A4A0000000A4A0000000FEd0 ONLINE 0 0 0 c4t60060E8004A4A0000000A4A0000000FFd0 ONLINE 0 0 0 errors: No known data errors # zfs list NAME USED AVAIL REFER MOUNTPOINT nfs 125K 1.55T 20K /nfs # -----Original Message----- From: Cindy Swearingen [mailto:cindy.swearingen at oracle.com] Sent: Friday, August 13, 2010 12:59 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS Hi Phillip, What''s the error message? How did you share the ZFS file system? # zfs create tank/cindys # zfs sharenfs=on tank/cindys # share - /tank/cindys rw "" # cp /usr/dict/words /tank/cindys/file.1 # cd /tank/cindys # chmod 666 file.1 # ls -l file.1 -rw-rw-rw- 1 root root 206663 Aug 13 13:03 file.1 Some things to check: - Are the UID/GID and hostnames resolving between the NFS server and the NFS client? - File permissions - Mount point permissions Can you access the file system on the client by using the automounter? # pwd /net/t2k-brm-03/tank/cindys # echo abc > file.1 # Thanks, Cindy On 08/13/10 13:19, Phillip Bruce wrote:> I have Solaris 10 U7 that is exporting ZFS filesytem. > The client is Solaris 9 U7. > > I can mount the filesytem just fine but I am unable to write to it. > showmount -e shows my mount is set for everyone. > the dfstab file has option rw set. > > So what gives? > > Phillip
NFS doesn''t care if the access is for a ZFS file system on systems running Solaris 9 or Solaris 10. This isn''t a tmp or lofs mount point, is it? If not, I would check the permissions on the client''s /nfs/backup directory. Thanks, Cindy On 08/13/10 14:33, Phillip Bruce (Mindsource) wrote:> Cindy, > > I appreciate your help. > Understand the NFS server is Solaris 10 > The Client is Solaris 9 > > Here what I see on the client system: > # mount -o rw server1:/nfs /nfs/backup > # cd /nfs/backup > # touch me > touch: me cannot create > > # showmount -e server1 > export list for server1: > /nfs (everyone) > > # nfsstat -m > > /nfs/backup from server1:/nfs > Flags: vers=3,proto=tcp,sec=sys,hard,nointr,noac,link,symlink,acl,rsize=32768,wsize=32768,retrans=5,timeo=600 > Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60 > > Server1 is setup as followed: > > # zfs get all nfs > NAME PROPERTY VALUE SOURCE > nfs type filesystem - > nfs creation Mon Aug 9 18:00 2010 - > nfs used 125K - > nfs available 1.55T - > nfs referenced 20K - > nfs compressratio 1.00x - > nfs mounted yes - > nfs quota none default > nfs reservation none default > nfs recordsize 128K default > nfs mountpoint /nfs default > nfs sharenfs rw local > nfs checksum on default > nfs compression off default > nfs atime on default > nfs devices on default > nfs exec on default > nfs setuid on default > nfs readonly off default > nfs zoned off default > nfs snapdir hidden default > nfs aclmode groupmask default > nfs aclinherit restricted default > nfs canmount on default > nfs shareiscsi off default > nfs xattr on default > nfs copies 1 default > nfs version 3 - > nfs utf8only off - > nfs normalization none - > nfs casesensitivity sensitive - > nfs vscan off default > nfs nbmand off default > nfs sharesmb off default > nfs refquota none default > nfs refreservation none default > > # exportfs > - /nfs rw "" > > Again I ask what gives, UID and GUID are same on both servers. > I would appreciate if someone can confirm if Solaris 9 needs a patch? > I can''t see why but since this is a ZFS filesystem being NFS over. Who knows!!! > > > Phillip > > > > > > > > > > -----Original Message----- > From: Cindy Swearingen [mailto:cindy.swearingen at oracle.com] > Sent: Friday, August 13, 2010 12:59 PM > To: Phillip Bruce (Mindsource) > Cc: zfs-discuss at opensolaris.org > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the error message? > > How did you share the ZFS file system? > > # zfs create tank/cindys > # zfs sharenfs=on tank/cindys > # share > - /tank/cindys rw "" > # cp /usr/dict/words /tank/cindys/file.1 > # cd /tank/cindys > # chmod 666 file.1 > # ls -l file.1 > -rw-rw-rw- 1 root root 206663 Aug 13 13:03 file.1 > > > Some things to check: > > - Are the UID/GID and hostnames resolving between the NFS server > and the NFS client? > - File permissions > - Mount point permissions > > Can you access the file system on the client by using the automounter? > > # pwd > /net/t2k-brm-03/tank/cindys > # echo abc > file.1 > # > > Thanks, > > Cindy > > On 08/13/10 13:19, Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
Cindy, I will agree with NFS statement. No this is not a tmp or lofs mount. I am very clear on what it is. This is a ZFS filesystem being exported. This was mounted as root and needs to be. Standard permission applied. Tested as root. No other permission needs to be checked. But since you Brought it up. I''ll look and see. Phillip -----Original Message----- From: Cindy Swearingen [mailto:cindy.swearingen at oracle.com] Sent: Friday, August 13, 2010 2:17 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS NFS doesn''t care if the access is for a ZFS file system on systems running Solaris 9 or Solaris 10. This isn''t a tmp or lofs mount point, is it? If not, I would check the permissions on the client''s /nfs/backup directory. Thanks, Cindy On 08/13/10 14:33, Phillip Bruce (Mindsource) wrote:> Cindy, > > I appreciate your help. > Understand the NFS server is Solaris 10 > The Client is Solaris 9 > > Here what I see on the client system: > # mount -o rw server1:/nfs /nfs/backup > # cd /nfs/backup > # touch me > touch: me cannot create > > # showmount -e server1 > export list for server1: > /nfs (everyone) > > # nfsstat -m > > /nfs/backup from server1:/nfs > Flags: vers=3,proto=tcp,sec=sys,hard,nointr,noac,link,symlink,acl,rsize=32768,wsize=32768,retrans=5,timeo=600 > Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60 > > Server1 is setup as followed: > > # zfs get all nfs > NAME PROPERTY VALUE SOURCE > nfs type filesystem - > nfs creation Mon Aug 9 18:00 2010 - > nfs used 125K - > nfs available 1.55T - > nfs referenced 20K - > nfs compressratio 1.00x - > nfs mounted yes - > nfs quota none default > nfs reservation none default > nfs recordsize 128K default > nfs mountpoint /nfs default > nfs sharenfs rw local > nfs checksum on default > nfs compression off default > nfs atime on default > nfs devices on default > nfs exec on default > nfs setuid on default > nfs readonly off default > nfs zoned off default > nfs snapdir hidden default > nfs aclmode groupmask default > nfs aclinherit restricted default > nfs canmount on default > nfs shareiscsi off default > nfs xattr on default > nfs copies 1 default > nfs version 3 - > nfs utf8only off - > nfs normalization none - > nfs casesensitivity sensitive - > nfs vscan off default > nfs nbmand off default > nfs sharesmb off default > nfs refquota none default > nfs refreservation none default > > # exportfs > - /nfs rw "" > > Again I ask what gives, UID and GUID are same on both servers. > I would appreciate if someone can confirm if Solaris 9 needs a patch? > I can''t see why but since this is a ZFS filesystem being NFS over. Who knows!!! > > > Phillip > > > > > > > > > > -----Original Message----- > From: Cindy Swearingen [mailto:cindy.swearingen at oracle.com] > Sent: Friday, August 13, 2010 12:59 PM > To: Phillip Bruce (Mindsource) > Cc: zfs-discuss at opensolaris.org > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the error message? > > How did you share the ZFS file system? > > # zfs create tank/cindys > # zfs sharenfs=on tank/cindys > # share > - /tank/cindys rw "" > # cp /usr/dict/words /tank/cindys/file.1 > # cd /tank/cindys > # chmod 666 file.1 > # ls -l file.1 > -rw-rw-rw- 1 root root 206663 Aug 13 13:03 file.1 > > > Some things to check: > > - Are the UID/GID and hostnames resolving between the NFS server > and the NFS client? > - File permissions > - Mount point permissions > > Can you access the file system on the client by using the automounter? > > # pwd > /net/t2k-brm-03/tank/cindys > # echo abc > file.1 > # > > Thanks, > > Cindy > > On 08/13/10 13:19, Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
Hi Phillip, What''s the permissions on the directory where you try to write to, and what user are you using on the client system, it''s most likely a UID mapping issue between the client and the server. /peter On 8/14/10 3:19 , Phillip Bruce wrote:> I have Solaris 10 U7 that is exporting ZFS filesytem. > The client is Solaris 9 U7. > > I can mount the filesytem just fine but I am unable to write to it. > showmount -e shows my mount is set for everyone. > the dfstab file has option rw set. > > So what gives? > > Phillip
Peter, what would you expect for root? That is the user I am at. Like I already stated it is NOT a UID or GUID issue. Both systems are the same. Phillip ________________________________________ From: Peter Karlsson [peter.k.karlsson at oracle.com] Sent: Friday, August 13, 2010 7:23 PM To: zfs-discuss at opensolaris.org; Phillip Bruce (Mindsource) Subject: Re: [zfs-discuss] NFS issue with ZFS Hi Phillip, What''s the permissions on the directory where you try to write to, and what user are you using on the client system, it''s most likely a UID mapping issue between the client and the server. /peter On 8/14/10 3:19 , Phillip Bruce wrote:> I have Solaris 10 U7 that is exporting ZFS filesytem. > The client is Solaris 9 U7. > > I can mount the filesytem just fine but I am unable to write to it. > showmount -e shows my mount is set for everyone. > the dfstab file has option rw set. > > So what gives? > > Phillip
On 8/14/10 11:49 , Phillip Bruce (Mindsource) wrote:> Peter, > > what would you expect for root? > That is the user I am at.root is default mapped to annon, if you don''t specifically export it with the option to allow root on one or more clients to be mapped to local root on the server. zfs set sharenfs=rw,root=host zpool/fs/to/export where host is a '':'' separated list of hosts. Alternatively, if you want root from any host to be mapped to root on the server (bad idea), you can do something like this zfs set sharenfs=rw,anon=0 zpool/fs/to/export to allow root access to all hosts. /peter> Like I already stated it is NOT a UID or GUID issue. > Both systems are the same.Try as a different user that have the same uid on both systems and have write access to the directory in qustion.> > Phillip > ________________________________________ > From: Peter Karlsson [peter.k.karlsson at oracle.com] > Sent: Friday, August 13, 2010 7:23 PM > To: zfs-discuss at opensolaris.org; Phillip Bruce (Mindsource) > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the permissions on the directory where you try to write to, and > what user are you using on the client system, it''s most likely a UID > mapping issue between the client and the server. > > /peter > > On 8/14/10 3:19 , Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
Peter, Ah!!! that my problem, thanks for the tip. i agree and did not explicidly export to allow that host for rw. Phillip ________________________________________ From: Peter Karlsson [peter.k.karlsson at oracle.com] Sent: Friday, August 13, 2010 9:21 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS On 8/14/10 11:49 , Phillip Bruce (Mindsource) wrote:> Peter, > > what would you expect for root? > That is the user I am at.root is default mapped to annon, if you don''t specifically export it with the option to allow root on one or more clients to be mapped to local root on the server. zfs set sharenfs=rw,root=host zpool/fs/to/export where host is a '':'' separated list of hosts. Alternatively, if you want root from any host to be mapped to root on the server (bad idea), you can do something like this zfs set sharenfs=rw,anon=0 zpool/fs/to/export to allow root access to all hosts. /peter> Like I already stated it is NOT a UID or GUID issue. > Both systems are the same.Try as a different user that have the same uid on both systems and have write access to the directory in qustion.> > Phillip > ________________________________________ > From: Peter Karlsson [peter.k.karlsson at oracle.com] > Sent: Friday, August 13, 2010 7:23 PM > To: zfs-discuss at opensolaris.org; Phillip Bruce (Mindsource) > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the permissions on the directory where you try to write to, and > what user are you using on the client system, it''s most likely a UID > mapping issue between the client and the server. > > /peter > > On 8/14/10 3:19 , Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
Peter, Thanks for the suggestions, I''m getting closer to solving the problem. it definitely works when using anon setting. I can read / write to the filesystem all day long. But as you mentioned using anon is a bad idea and a security risk. Something I get my hand slapped with keeping this in that configuration. I tired setting directly as root but I keep getting permission denied. I will try this as oracle user and see if I get same thing. Doesn''t make sense as I''m using right now a Linux (Centos) and getting the same thing. Phillip ________________________________________ From: Peter Karlsson [peter.k.karlsson at oracle.com] Sent: Friday, August 13, 2010 9:21 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS On 8/14/10 11:49 , Phillip Bruce (Mindsource) wrote:> Peter, > > what would you expect for root? > That is the user I am at.root is default mapped to annon, if you don''t specifically export it with the option to allow root on one or more clients to be mapped to local root on the server. zfs set sharenfs=rw,root=host zpool/fs/to/export where host is a '':'' separated list of hosts. Alternatively, if you want root from any host to be mapped to root on the server (bad idea), you can do something like this zfs set sharenfs=rw,anon=0 zpool/fs/to/export to allow root access to all hosts. /peter> Like I already stated it is NOT a UID or GUID issue. > Both systems are the same.Try as a different user that have the same uid on both systems and have write access to the directory in qustion.> > Phillip > ________________________________________ > From: Peter Karlsson [peter.k.karlsson at oracle.com] > Sent: Friday, August 13, 2010 7:23 PM > To: zfs-discuss at opensolaris.org; Phillip Bruce (Mindsource) > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the permissions on the directory where you try to write to, and > what user are you using on the client system, it''s most likely a UID > mapping issue between the client and the server. > > /peter > > On 8/14/10 3:19 , Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
Peter, Here is where I am at right now. I can obvious read/write when using anon=0. That for sure works. But you pointed out it is also a security risk. NFS-Server# zfs get sharenfs backup NAME PROPERTY VALUE SOURCE backup sharenfs rw=x.x.x.x,root=x.x.x.x,nosuid local # This is how i have it setup using direct setting, I''m actually using IP address and that makes no difference because I''m bypassing DNS services by doing that. This what I get on the client below: # mount -F nfs NFS-SERVER:/backup /nfs/backup nfs mount: NFS-SERVER:/backup: Permission denied NFS-SERVER# id uid=0(root) gid=0(root) # cat /etc/passwd | grep root root:x:0:0:Super-User:/:/sbin/sh CLIENT# id uid=0(root) gid=0(root) # cat /etc/passwd | grep root root:x:0:0:Super-User:/:/usr/bin/bash As you can see the only difference is the client is using bash for it''s shell while the other uses sh. As I have mentioned before UID and GUID is not the issue. The only thing I have come up with is there is 2 NFS patches that are needing updating. One of them is 122300 and 117179 patch ID''s and see if that fixes my issue. the others seem to be up to date. I guess this be as good of time to learn dtrace. Any suggestion on a dtrace script to use and try to see what is going on. Phillip ________________________________________ From: Phillip Bruce (Mindsource) Sent: Saturday, August 14, 2010 2:29 PM To: Peter Karlsson Cc: zfs-discuss at opensolaris.org Subject: RE: [zfs-discuss] NFS issue with ZFS Peter, Thanks for the suggestions, I''m getting closer to solving the problem. it definitely works when using anon setting. I can read / write to the filesystem all day long. But as you mentioned using anon is a bad idea and a security risk. Something I get my hand slapped with keeping this in that configuration. I tired setting directly as root but I keep getting permission denied. I will try this as oracle user and see if I get same thing. Doesn''t make sense as I''m using right now a Linux (Centos) and getting the same thing. Phillip ________________________________________ From: Peter Karlsson [peter.k.karlsson at oracle.com] Sent: Friday, August 13, 2010 9:21 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS On 8/14/10 11:49 , Phillip Bruce (Mindsource) wrote:> Peter, > > what would you expect for root? > That is the user I am at.root is default mapped to annon, if you don''t specifically export it with the option to allow root on one or more clients to be mapped to local root on the server. zfs set sharenfs=rw,root=host zpool/fs/to/export where host is a '':'' separated list of hosts. Alternatively, if you want root from any host to be mapped to root on the server (bad idea), you can do something like this zfs set sharenfs=rw,anon=0 zpool/fs/to/export to allow root access to all hosts. /peter> Like I already stated it is NOT a UID or GUID issue. > Both systems are the same.Try as a different user that have the same uid on both systems and have write access to the directory in qustion.> > Phillip > ________________________________________ > From: Peter Karlsson [peter.k.karlsson at oracle.com] > Sent: Friday, August 13, 2010 7:23 PM > To: zfs-discuss at opensolaris.org; Phillip Bruce (Mindsource) > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the permissions on the directory where you try to write to, and > what user are you using on the client system, it''s most likely a UID > mapping issue between the client and the server. > > /peter > > On 8/14/10 3:19 , Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
Peter, I ran truss from the client side. Below is what I am getting. What strikes me as odd that the client does a stat(64) call on the remote. He cannot find NFS-SERVER:/backup volume at all. Just before that You get the IOCTL error just before that for the same reason. Keep in mind when I use anon=0 setting from the NFS server. I do not See this issue. The only thing is maybe 2 patches that may correct this. Again: NFS-SERVER Solaris 10 U7 and NFS-CLIENT: Solaris 9 U7 I''ll try installing 2 patches I see missing for the NFS and see if that will correct this issue. root[sh]@NFS-CLIENT# truss -v all mount -F nfs NFS-SERVER:/backup /mnt execve("/usr/sbin/mount", 0xFFBFFD2C, 0xFFBFFD44) argc = 5 resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16 resolvepath("/usr/sbin/mount", "/usr/sbin/mount", 1023) = 15 stat("/usr/sbin/mount", 0xFFBFFB00) = 0 d=0x01540000 i=1562 m=0100555 l=1 u=0 g=2 sz=27448 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Oct 15 12:36:57 PDT 2002 [ 1034710617 ] ct = Aug 14 11:48:50 PDT 2005 [ 1124045330 ] bsz=8192 blks=54 fs=ufs open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT stat("/usr/lib/libcmd.so.1", 0xFFBFF608) = 0 d=0x01540000 i=2791 m=0100755 l=1 u=0 g=2 sz=22920 at = Aug 19 10:01:45 PDT 2010 [ 1282237305 ] mt = Apr 6 12:47:04 PST 2002 [ 1018126024 ] ct = Aug 14 11:50:14 PDT 2005 [ 1124045414 ] bsz=8192 blks=46 fs=ufs resolvepath("/usr/lib/libcmd.so.1", "/usr/lib/libcmd.so.1", 1023) = 20 open("/usr/lib/libcmd.so.1", O_RDONLY) = 3 mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000 mmap(0x00010000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF380000 mmap(0xFF380000, 10440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF380000 mmap(0xFF394000, 1131, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF394000 munmap(0xFF384000, 65536) = 0 memcntl(0xFF380000, 3720, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/lib/libc.so.1", 0xFFBFF608) = 0 d=0x01540000 i=3811 m=0100755 l=1 u=0 g=2 sz=867448 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Mar 6 13:44:23 PST 2006 [ 1141681463 ] ct = May 19 15:06:59 PDT 2006 [ 1148076419 ] bsz=8192 blks=1712 fs=ufs resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18 open("/usr/lib/libc.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00010000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF280000 mmap(0xFF280000, 702900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000 mmap(0xFF33C000, 24688, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF33C000 munmap(0xFF32C000, 65536) = 0 memcntl(0xFF280000, 117444, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/lib/libdl.so.1", 0xFFBFF608) = 0 d=0x01540000 i=2771 m=0100755 l=1 u=0 g=2 sz=3984 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Oct 30 22:51:47 PST 2005 [ 1130741507 ] ct = May 19 15:24:40 PDT 2006 [ 1148077480 ] bsz=8192 blks=8 fs=ufs resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19 open("/usr/lib/libdl.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00002000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3FA000 mmap(0xFF3FA000, 1894, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3FA000 close(3) = 0 stat("/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1", 0xFFBFF318) = 0 d=0x01540000 i=3240 m=0100755 l=1 u=0 g=2 sz=16768 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Apr 6 14:27:58 PST 2002 [ 1018132078 ] ct = Aug 14 11:50:23 PDT 2005 [ 1124045423 ] bsz=8192 blks=34 fs=ufs resolvepath("/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1", "/usr/platform/sun4u/lib/libc_psr.so.1", 1023) = 37 open("/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00002000, 16384, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3E6000 mmap(0xFF3E6000, 13544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3E6000 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF370000 close(3) = 0 munmap(0xFF3A0000, 8192) = 0 getustack(0xFFBFF944) getrlimit(RLIMIT_STACK, 0xFFBFF93C) = 0 cur = 8388608 max = RLIM_INFINITY getcontext(0xFFBFF778) setustack(0xFF343A74) brk(0x000271B0) = 0 brk(0x000291B0) = 0 getuid() = 0 [0] open("/etc/vfstab", O_RDONLY) = 3 llseek(3, 0, SEEK_CUR) = 0 fstat64(3, 0xFFBFF8A0) = 0 d=0x01540000 i=2876 m=0100644 l=1 u=0 g=3 sz=597 at = Aug 19 10:01:45 PDT 2010 [ 1282237305 ] mt = Jun 28 15:20:57 PDT 2006 [ 1151533257 ] ct = Jun 28 15:20:57 PDT 2006 [ 1151533257 ] bsz=8192 blks=2 fs=ufs brk(0x000291B0) = 0 brk(0x0002B1B0) = 0 fstat64(3, 0xFFBFF748) = 0 d=0x01540000 i=2876 m=0100644 l=1 u=0 g=3 sz=597 at = Aug 19 10:01:45 PDT 2010 [ 1282237305 ] mt = Jun 28 15:20:57 PDT 2006 [ 1151533257 ] ct = Jun 28 15:20:57 PDT 2006 [ 1151533257 ] bsz=8192 blks=2 fs=ufs ioctl(3, TCGETA, 0xFFBFF82C) Err#25 ENOTTY read(3, " # d e v i c e\t\t d e v".., 8192) = 597 read(3, 0x000283D4, 8192) = 0 llseek(3, 0, SEEK_SET) = 0 stat64("eudb5:/backup", 0xFFBFFAC0) Err#2 ENOENT read(3, " # d e v i c e\t\t d e v".., 8192) = 597 read(3, 0x000283D4, 8192) = 0 llseek(3, 0, SEEK_CUR) = 597 close(3) = 0 stat64("/mnt", 0xFFBFFAC0) = 0 d=0x01540000 i=2293 m=0040755 l=2 u=0 g=3 sz=512 at = Mar 13 13:23:03 PDT 2008 [ 1205439783 ] mt = Aug 14 11:49:27 PDT 2005 [ 1124045367 ] ct = Aug 14 11:49:27 PDT 2005 [ 1124045367 ] bsz=8192 blks=2 fs=ufs resolvepath("/mnt", "/mnt", 1024) = 4 access("/usr/lib/fs/nfs/mount", 0) = 0 execve("/usr/lib/fs/nfs/mount", 0xFFBFFC8C, 0xFFBFFD44) argc = 3 resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16 resolvepath("/usr/lib/fs/nfs/mount", "/usr/lib/fs/nfs/mount", 1023) = 21 stat("/usr/lib/fs/nfs/mount", 0xFFBFFB08) = 0 d=0x01540000 i=36807 m=0100555 l=1 u=0 g=2 sz=44884 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Mar 27 13:19:42 PST 2006 [ 1143494382 ] ct = May 19 16:06:14 PDT 2006 [ 1148079974 ] bsz=8192 blks=88 fs=ufs open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT stat("/usr/lib/librpcsvc.so.1", 0xFFBFF610) = 0 d=0x01540000 i=2845 m=0100755 l=1 u=0 g=2 sz=33000 at = Aug 19 10:01:45 PDT 2010 [ 1282237305 ] mt = Apr 6 12:50:56 PST 2002 [ 1018126256 ] ct = Aug 14 11:50:17 PDT 2005 [ 1124045417 ] bsz=8192 blks=66 fs=ufs resolvepath("/usr/lib/librpcsvc.so.1", "/usr/lib/librpcsvc.so.1", 1023) = 23 open("/usr/lib/librpcsvc.so.1", O_RDONLY) = 3 mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000 mmap(0x00010000, 98304, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF380000 mmap(0xFF380000, 21746, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF380000 mmap(0xFF396000, 1312, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 24576) = 0xFF396000 munmap(0xFF386000, 65536) = 0 memcntl(0xFF380000, 7460, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/lib/libnsl.so.1", 0xFFBFF610) = 0 d=0x01540000 i=4102 m=0100755 l=1 u=0 g=2 sz=744244 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Mar 9 16:11:51 PST 2006 [ 1141949511 ] ct = May 19 15:13:19 PDT 2006 [ 1148076799 ] bsz=8192 blks=1472 fs=ufs resolvepath("/usr/lib/libnsl.so.1", "/usr/lib/libnsl.so.1", 1023) = 20 open("/usr/lib/libnsl.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00010000, 712704, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF280000 mmap(0xFF280000, 579982, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000 mmap(0xFF31E000, 32804, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 581632) = 0xFF31E000 mmap(0xFF328000, 22816, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF328000 munmap(0xFF30E000, 65536) = 0 memcntl(0xFF280000, 82424, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/lib/libsocket.so.1", 0xFFBFF610) = 0 d=0x01540000 i=2854 m=0100755 l=1 u=0 g=2 sz=58504 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Apr 6 12:51:42 PST 2002 [ 1018126302 ] ct = Aug 14 11:50:17 PDT 2005 [ 1124045417 ] bsz=8192 blks=116 fs=ufs resolvepath("/usr/lib/libsocket.so.1", "/usr/lib/libsocket.so.1", 1023) = 23 open("/usr/lib/libsocket.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00010000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF360000 mmap(0xFF360000, 39550, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF360000 mmap(0xFF37A000, 4333, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 40960) = 0xFF37A000 munmap(0xFF36A000, 65536) = 0 memcntl(0xFF360000, 13792, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/lib/libc.so.1", 0xFFBFF610) = 0 d=0x01540000 i=3811 m=0100755 l=1 u=0 g=2 sz=867448 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Mar 6 13:44:23 PST 2006 [ 1141681463 ] ct = May 19 15:06:59 PDT 2006 [ 1148076419 ] bsz=8192 blks=1712 fs=ufs resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18 open("/usr/lib/libc.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00010000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF180000 mmap(0xFF180000, 702900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF180000 mmap(0xFF23C000, 24688, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF23C000 munmap(0xFF22C000, 65536) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF350000 memcntl(0xFF180000, 117444, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/lib/libdl.so.1", 0xFFBFF610) = 0 d=0x01540000 i=2771 m=0100755 l=1 u=0 g=2 sz=3984 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Oct 30 22:51:47 PST 2005 [ 1130741507 ] ct = May 19 15:24:40 PDT 2006 [ 1148077480 ] bsz=8192 blks=8 fs=ufs resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19 open("/usr/lib/libdl.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00002000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3FA000 mmap(0xFF3FA000, 1894, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3FA000 close(3) = 0 stat("/usr/lib/libmp.so.2", 0xFFBFF610) = 0 d=0x01540000 i=2830 m=0100755 l=1 u=0 g=2 sz=21676 at = Aug 19 10:01:45 PDT 2010 [ 1282237305 ] mt = Apr 6 12:46:32 PST 2002 [ 1018125992 ] ct = Aug 14 11:50:16 PDT 2005 [ 1124045416 ] bsz=8192 blks=44 fs=ufs resolvepath("/usr/lib/libmp.so.2", "/usr/lib/libmp.so.2", 1023) = 19 open("/usr/lib/libmp.so.2", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00010000, 90112, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF260000 mmap(0xFF260000, 10804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF260000 mmap(0xFF274000, 849, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF274000 munmap(0xFF264000, 65536) = 0 memcntl(0xFF260000, 2464, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1", 0xFFBFF320) = 0 d=0x01540000 i=3240 m=0100755 l=1 u=0 g=2 sz=16768 at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Apr 6 14:27:58 PST 2002 [ 1018132078 ] ct = Aug 14 11:50:23 PDT 2005 [ 1124045423 ] bsz=8192 blks=34 fs=ufs resolvepath("/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1", "/usr/platform/sun4u/lib/libc_psr.so.1", 1023) = 37 open("/usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1", O_RDONLY) = 3 mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000 mmap(0x00002000, 16384, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3E6000 mmap(0xFF3E6000, 13544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3E6000 close(3) = 0 munmap(0xFF3A0000, 8192) = 0 getustack(0xFFBFF94C) getrlimit(RLIMIT_STACK, 0xFFBFF944) = 0 cur = 8388608 max = RLIM_INFINITY getcontext(0xFFBFF780) setustack(0xFF243A74) brk(0x0002AFF0) = 0 brk(0x0002CFF0) = 0 getuid() = 0 [0] open("/etc/netconfig", O_RDONLY|O_LARGEFILE) = 3 fcntl(3, F_DUPFD, 0x00000100) Err#22 EINVAL read(3, " # p r a g m a i d e n".., 1024) = 1024 read(3, " t s t p i _ c".., 1024) = 215 read(3, 0x0002C278, 1024) = 0 lseek(3, 0, SEEK_SET) = 0 read(3, " # p r a g m a i d e n".., 1024) = 1024 read(3, " t s t p i _ c".., 1024) = 215 read(3, 0x0002C278, 1024) = 0 close(3) = 0 open("/dev/udp", O_RDONLY) = 3 ioctl(3, 0xC00C6982, 0xFFBFF504) = 0 close(3) = 0 brk(0x0002CFF0) = 0 brk(0x0002EFF0) = 0 open64("/var/run/name_service_door", O_RDONLY) = 3 fcntl(3, F_SETFD, 0x00000001) = 0 door_info(3, 0xFF242740) = 0 target=374 proc=0x13BA0 data=0xDEADBEEE attributes=DOOR_UNREF uniquifier=13 door_call(3, 0xFFBFD210) = 0 data_ptr=FFBFD2D8 data_size=64 desc_ptr=0x0 desc_num=0 rbuf=0xFFBFD2D8 rsize=8192 door_info(3, 0xFFBFD228) = 0 target=374 proc=0x13BA0 data=0xDEADBEEE attributes=DOOR_UNREF uniquifier=13 door_call(3, 0xFFBFD210) = 0 data_ptr=FFBFD2D8 data_size=107 desc_ptr=0x0 desc_num=0 rbuf=0xFFBFD2D8 rsize=8192 open("/dev/udp", O_RDWR) = 4 ioctl(4, I_FIND, "timod") = 0 ioctl(4, I_PUSH, "timod") = 0 sigfillset(0xFF242AC0) = 0 sigmask = 0xFFFFFFFF 0x00003FFF 0 0 sigprocmask(SIG_SETMASK, 0xFFBFF37C, 0xFFBFF36C) = 0 set = 0xFFFFFFFF 0x00003FFF 0 0 oset = 0 0 0 0 ioctl(4, I_STR, 0xFFBFF1F0) = 0 cmd=TI_CAPABILITY timout=-1 len=56 dp=0xFFBFF288 fstat(4, 0xFFBFF178) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs ioctl(4, I_STR, 0xFFBFF1F0) = 0 cmd=((''T''<<8)|148) timout=-1 len=52 dp=0xFFBFF288 sigprocmask(SIG_SETMASK, 0xFFBFF36C, 0x00000000) = 0 set = 0 0 0 0 ioctl(4, I_FLUSH, FLUSHRW) = 0 fstat(4, 0xFFBFF1E0) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs sigprocmask(SIG_SETMASK, 0xFFBFF380, 0xFFBFF370) = 0 set = 0xFFFFFFFF 0x00003FFF 0 0 oset = 0 0 0 0 ioctl(4, I_STR, 0xFFBFF2E8) = 0 cmd=TI_BIND timout=-1 len=32 dp=0x0002C980 sigprocmask(SIG_SETMASK, 0xFFBFF370, 0x00000000) = 0 set = 0 0 0 0 brk(0x0002EFF0) = 0 brk(0x0003CFF0) = 0 fstat(4, 0xFFBFF108) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs ioctl(4, I_STR, 0xFFBFF210) = 0 cmd=TI_GETINFO timout=-1 len=44 dp=0x0002C980 fstat(4, 0xFFBFF008) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs sigprocmask(SIG_SETMASK, 0xFFBFF1A8, 0xFFBFF198) = 0 set = 0xFFFFFFFF 0x00003FFF 0 0 oset = 0 0 0 0 ioctl(4, I_STR, 0xFFBFF110) = 0 cmd=TI_OPTMGMT timout=-1 len=32 dp=0x0002C980 sigprocmask(SIG_SETMASK, 0xFFBFF198, 0x00000000) = 0 set = 0 0 0 0 brk(0x0003CFF0) = 0 brk(0x0005CFF0) = 0 getpid() = 18131 [18130] fstat(4, 0xFFBFF0E0) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs ioctl(4, I_STR, 0xFFBFF25C) = 0 cmd=TI_GETINFO timout=-1 len=44 dp=0xFFBFF26C time() = 1282237320 fstat(4, 0xFFBFF198) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs putmsg(4, 0xFFBFF334, 0xFFBFF454, 0) = 0 ctl: maxlen=1664 len=36 buf=0x0002C980: "\0\0\0\b\0\0\010".. dat: maxlen=0 len=56 buf=0x0004B708: " L aCC18\0\0\0\0".. poll(0x0003B71C, 1, 15000) = 1 fd=4 ev=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND rev=POLLIN|POLLRDNORM fstat(4, 0xFFBFF190) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs getmsg(4, 0xFFBFF330, 0x0002C280, 0xFFBFF35C) = 0 ctl: maxlen=1664 len=36 buf=0x0002C980: "\0\0\014\0\0\010".. dat: maxlen=65508 len=28 buf=0x0003B724: " L aCC18\0\0\001".. flags: 0x0000 fstat(4, 0xFFBFF368) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs putmsg(4, 0xFFBFF504, 0xFFBFF624, 0) = 0 ctl: maxlen=1664 len=36 buf=0x0002C980: "\0\0\0\b\0\0\010".. dat: maxlen=1 len=40 buf=0x0004B708: " L aCC19\0\0\0\0".. poll(0x0003B71C, 1, 10000) = 1 fd=4 ev=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND rev=POLLIN|POLLRDNORM fstat(4, 0xFFBFF360) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs getmsg(4, 0xFFBFF500, 0x0002C280, 0xFFBFF52C) = 0 ctl: maxlen=1664 len=36 buf=0x0002C980: "\0\0\014\0\0\010".. dat: maxlen=65508 len=24 buf=0x0003B724: " L aCC19\0\0\001".. flags: 0x0000 getuid() = 0 [0] fstat(4, 0xFFBFF400) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs fstat(4, 0xFFBFF3D0) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs sigprocmask(SIG_SETMASK, 0xFFBFF568, 0xFFBFF558) = 0 set = 0xFFFFFFFF 0x00003FFF 0 0 oset = 0 0 0 0 ioctl(4, I_NREAD, 0xFFBFF47C) = 0 0xFFBFF47C: 0 ioctl(4, I_STR, 0xFFBFF470) = 0 cmd=TI_UNBIND timout=-1 len=8 dp=0x0002C980 ioctl(4, I_FLUSH, FLUSHRW) = 0 sigprocmask(SIG_SETMASK, 0xFFBFF558, 0x00000000) = 0 set = 0 0 0 0 fstat(4, 0xFFBFF400) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs fstat(4, 0xFFBFF3A0) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs ioctl(4, I_STR, 0xFFBFF51C) = 0 cmd=TI_GETINFO timout=-1 len=44 dp=0xFFBFF52C fstat(4, 0xFFBFF3A0) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs ioctl(4, I_STR, 0xFFBFF51C) = 0 cmd=TI_GETINFO timout=-1 len=44 dp=0xFFBFF52C getpid() = 18131 [18130] fstat(4, 0xFFBFF3C8) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs sigprocmask(SIG_SETMASK, 0xFFBFF568, 0xFFBFF558) = 0 set = 0xFFFFFFFF 0x00003FFF 0 0 oset = 0 0 0 0 ioctl(4, I_STR, 0xFFBFF4D0) = 0 cmd=TI_BIND timout=-1 len=32 dp=0x0002C980 sigprocmask(SIG_SETMASK, 0xFFBFF558, 0x00000000) = 0 set = 0 0 0 0 uname(0xFFBFF0A0) = 1 sys=SunOS nod=NFS-CLIENT rel=5.9 ver=Generic_118558-26 mch=sun4u getuid() = 0 [0] getgid() = 1 [1] getgroups(16, 0xFFBFF608) = 11 1 0 2 3 4 5 6 7 8 9 12 fstat(4, 0xFFBFF450) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs putmsg(4, 0xFFBFF5EC, 0xFFBFF70C, 0) = 0 ctl: maxlen=1664 len=36 buf=0x0002C980: "\0\0\0\b\0\0\010".. dat: maxlen=0 len=132 buf=0x0004B708: " L aCC1A\0\0\0\0".. poll(0x0003B71C, 1, 15000) = 1 fd=4 ev=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND rev=POLLIN|POLLRDNORM fstat(4, 0xFFBFF448) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs getmsg(4, 0xFFBFF5E8, 0x0002C280, 0xFFBFF614) = 0 ctl: maxlen=1664 len=36 buf=0x0002C980: "\0\0\014\0\0\010".. dat: maxlen=65508 len=28 buf=0x0003B724: " L aCC1A\0\0\001".. flags: 0x0000 fstat64(2, 0xFFBFE7F8) = 0 d=0x01540000 i=22494 m=0020620 l=1 u=0 g=7 rdev=0x00600001 at = Aug 19 10:01:59 PDT 2010 [ 1282237319 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 18 18:18:46 PDT 2010 [ 1282180726 ] bsz=8192 blks=0 fs=ufs nfs mountwrite(2, " n f s m o u n t", 9) = 9 : write(2, " : ", 2) = 2 eudb5write(2, " e u d b 5", 5) = 5 :write(2, " :", 1) = 1 /backupwrite(2, " / b a c k u p", 7) = 7 : write(2, " : ", 2) = 2 Permission deniedwrite(2, " P e r m i s s i o n d".., 17) = 17 write(2, "\n", 1) = 1 fstat(4, 0xFFBFF530) = 0 d=0x01540000 i=2433 m=0020000 l=0 u=0 g=0 rdev=0x00A4006A at = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] mt = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] ct = Aug 19 10:02:00 PDT 2010 [ 1282237320 ] bsz=8192 blks=0 fs=ufs sigprocmask(SIG_SETMASK, 0xFFBFF6B8, 0xFFBFF6A8) = 0 set = 0xFFFFFFFF 0x00003FFF 0 0 oset = 0 0 0 0 close(4) = 0 sigprocmask(SIG_SETMASK, 0xFFBFF6A8, 0x00000000) = 0 set = 0 0 0 0 _exit(33) -----Original Message----- From: Peter Karlsson [mailto:peter.k.karlsson at oracle.com] Sent: Friday, August 13, 2010 9:22 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS On 8/14/10 11:49 , Phillip Bruce (Mindsource) wrote:> Peter, > > what would you expect for root? > That is the user I am at.root is default mapped to annon, if you don''t specifically export it with the option to allow root on one or more clients to be mapped to local root on the server. zfs set sharenfs=rw,root=host zpool/fs/to/export where host is a '':'' separated list of hosts. Alternatively, if you want root from any host to be mapped to root on the server (bad idea), you can do something like this zfs set sharenfs=rw,anon=0 zpool/fs/to/export to allow root access to all hosts. /peter> Like I already stated it is NOT a UID or GUID issue. > Both systems are the same.Try as a different user that have the same uid on both systems and have write access to the directory in qustion.> > Phillip > ________________________________________ > From: Peter Karlsson [peter.k.karlsson at oracle.com] > Sent: Friday, August 13, 2010 7:23 PM > To: zfs-discuss at opensolaris.org; Phillip Bruce (Mindsource) > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the permissions on the directory where you try to write to, and > what user are you using on the client system, it''s most likely a UID > mapping issue between the client and the server. > > /peter > > On 8/14/10 3:19 , Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
Problem solved.. Try using FQDN on the server end and that work. The client did not have to use FQDN. zfs set sharenfs=rw=nfsclient.domain.com,rw=nfsclient.domain.com,nosuid backup That worked. Both systems has the nsswitch.conf set correctly for DNS. So this is an issue when trying to dns. But that bongles me Why when I explicidly used IP which by passes DNS and did not work. ???? Phillip -----Original Message----- From: Peter Karlsson [mailto:peter.k.karlsson at oracle.com] Sent: Friday, August 13, 2010 9:22 PM To: Phillip Bruce (Mindsource) Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] NFS issue with ZFS On 8/14/10 11:49 , Phillip Bruce (Mindsource) wrote:> Peter, > > what would you expect for root? > That is the user I am at.root is default mapped to annon, if you don''t specifically export it with the option to allow root on one or more clients to be mapped to local root on the server. zfs set sharenfs=rw,root=host zpool/fs/to/export where host is a '':'' separated list of hosts. Alternatively, if you want root from any host to be mapped to root on the server (bad idea), you can do something like this zfs set sharenfs=rw,anon=0 zpool/fs/to/export to allow root access to all hosts. /peter> Like I already stated it is NOT a UID or GUID issue. > Both systems are the same.Try as a different user that have the same uid on both systems and have write access to the directory in qustion.> > Phillip > ________________________________________ > From: Peter Karlsson [peter.k.karlsson at oracle.com] > Sent: Friday, August 13, 2010 7:23 PM > To: zfs-discuss at opensolaris.org; Phillip Bruce (Mindsource) > Subject: Re: [zfs-discuss] NFS issue with ZFS > > Hi Phillip, > > What''s the permissions on the directory where you try to write to, and > what user are you using on the client system, it''s most likely a UID > mapping issue between the client and the server. > > /peter > > On 8/14/10 3:19 , Phillip Bruce wrote: >> I have Solaris 10 U7 that is exporting ZFS filesytem. >> The client is Solaris 9 U7. >> >> I can mount the filesytem just fine but I am unable to write to it. >> showmount -e shows my mount is set for everyone. >> the dfstab file has option rw set. >> >> So what gives? >> >> Phillip >
>>>>> "pb(" == Phillip Bruce (Mindsource) <v-phbruc at microsoft.com> writes:pb(> Problem solved.. Try using FQDN on the server end and that pb(> work. The client did not have to use FQDN. 1. your syntax is wrong. You must use netgroup syntax to specify an IP, otherwise it will think you mean the hostname made up of those numbers and dots as characters. NAME PROPERTY VALUE andaman/arrchive sharenfs ro=@10.100.100.0/23:@192.168.2.3/32 2. there''s a bug in mountd. well, there are many bugs in mountd, but this is the one I ran into, which makes the netgroup syntax mostly useless: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6901832 one workaround is to give every IP reverse lookup, ex. using BIND $generate or something. I just use a big /etc/hosts covering every IP to which I''ve exported. I suppose actually fixing mountd would be what a good sysadmin would have done: it can''t be that hard. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 304 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100826/53ea6e21/attachment.bin>