NFS Mount Problem

Hello All,

I'm very newbie in solaris, currently i've 3 SUN machine, 1 machine runing NIS and NFS (sharing home directory for another machines). But i cant write home folder on client machines since the owner of file is nobody.

server# cat /etc/dfs/dfstab

share -F nfs -d "Home Directory" /export/home

share -F nfs -d "SUN Grid Engine" /opt/sge

share -F nfs -d "Grid Portal" /opt/gep

server# share

-/export/homerw"Home Directory"

-/opt/sgerw"SUN Grid Engine"

-/opt/geprw"Grid Portal"

and on client

client# ls -l /export/home

total 44

drwxr-xr-x3 nobodynobody512 Mar 1 14:16 ****

drwxr-xr-x2 nobodynobody512 Feb 8 14:35 ****

drwxr-xr-x2 nobodynobody512 Mar 1 14:56 ****

drwxr-xr-x 22 nobodynobody1024 Feb 9 13:41 ****

Whats wrong with my setting? Help me, i'm very newbie :)

[1190 byte] By [] at [2007-11-25 22:41:56]
# 1
Try the "-o rw=" option, and define the IP of clients in NFS Server's /etc/hosts. share -F nfs -o rw=clien1:client2 -d "Home Directory" /export/home Gary
at 2007-7-5 14:19:48 > top of Java-index,General,Sun Networking Services and Protocols...
# 2

still have same problem :(

server:

-bash-3.00# share -F nfs -o rw -d "Home Directory" /export/home/

-bash-3.00# ypcat hosts

152.118.162.153 ws-162-153 loghost

152.118.162.138 ws-162-138

152.118.162.137 ws-162-137

127.0.0.1localhost

152.118.162.153 ws-162-153 loghost

client:

-bash-3.00$ ls -l /export/home/

total 18

drwxr-xr-x5 nobodynobody512 Mar 6 18:27 jefri

-bash-3.00$ ypcat hosts

152.118.162.153 ws-162-153 loghost

152.118.162.138 ws-162-138

152.118.162.137 ws-162-137

127.0.0.1localhost

152.118.162.153 ws-162-153 loghost

at 2007-7-5 14:19:48 > top of Java-index,General,Sun Networking Services and Protocols...
# 3

Assuming "192.168.1.168 nfsserver" is the NFS Server, "192.168.1.100 nfsclient1" is the NFS Client.

On Server:

Add a line to /etc/hosts (regardless of if there is DNS entry for NFS Client)

192.168.1.100 nfsclient1

# share -F nfs -o rw=nfsclient1 -d "Home Directory" /export/home/

On Client:

Add a line to /etc/hosts (if there is no DNS entry for NFS Server)

192.168.1.168 nfsserver

# mount -F nfs nfsserver:/export/home /export/home

Gary

at 2007-7-5 14:19:48 > top of Java-index,General,Sun Networking Services and Protocols...
# 4

Is this Solaris 10 and NFS v4 ? If so then your nfs server and nfs client may be using different domian names. Try setting NFSMAPID_DOMAIN in /etc/default/nfs on your client to match the domainname used by your server. For more information see "Setting NFSMAPID_DOMAIN" in nfs(4) manpage.

at 2007-7-5 14:19:48 > top of Java-index,General,Sun Networking Services and Protocols...
# 5

Hi,

Check for the automountd daemon on the NFS server and kill it if it is present and once this is done share the home directories from the server with a global rw option and when you mount the nfs share on the target machine use the rw option .

Also it will be helpful if you can check the ownershp of the /export/home directory on the client machine , thogh I don't think it will help .

A very good option which is quite stable is to use the automount , NFS and NIS together to share your directories .

Let us know if the issue is solved .

Rgds

PK

at 2007-7-5 14:19:48 > top of Java-index,General,Sun Networking Services and Protocols...
# 6

After following these instructions I still had issues with the client still showing permissions of nobody:nogroup.

The configuration is all correct except for this missing instruction for the nfs server on Solaris 10:

svcadm restart network/nfs/mapid

Just simply doing a svcadm restart network/nfs/server did not restart this service.

And it all worked! Thanks.

jennygordon at 2007-7-5 14:19:48 > top of Java-index,General,Sun Networking Services and Protocols...