Sunday, 2 October 2011

Mounting Linux NFS on solaris 10 (RPC: Program not registered and Not owner errors)

NFS server is running on Redhat Linux machine 4E

IP of NFS server
share     /u01/nfs

mounting the above nfs on Solaris 10  (

mounting point on client /u01/nfstest

mount -F nfs /nfstest

the above command should mount the nfs share to /u01/nfstest on client

but after i issued the command i was getting

nfs mount: : RPC: Program not registered

after searching i found this link

which was telling mountd deamon was not up on nfs server machine

started nfs service on nfs server

service nfs start

after starting issued the command to mount the nfs on solaris client

mount -F nfs /nfstest

this time another error

nfs mount: mount: /nfstest: Not owner

googling taught me that this was becuase of NFS version, linux is using version 3 but solaris is using version 4

I found two way of overcoming this issu

1. editig /etc/default/nfs file

you can change #NFS_CLIENT_VERSMAX=4 value to #NFS_CLIENT_VERSMAX=3

by default it is commented out so make sure you remove comment symbol
just restart the service, it is working even without restarting
svcadm restart  network/nfs/server

second way to mount is just to add -o switch with vers=3 parameter
mount -F nfs -o vers=3 /nfstest