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 192.168.1.251
share     /u01/nfs

mounting the above nfs on Solaris 10  (192.168.1.119)

mounting point on client /u01/nfstest

mount -F nfs 192.168.1.251:/u01/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: 192.168.1.251: : RPC: Program not registered

after searching i found this link http://www.softpanorama.org/Net/Application_layer/NFS/troubleshooting_of_nfs_problems.shtml#The_program_not_registered_Error

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 192.168.1.251:/u01/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 192.168.1.251:/u01/nfs /nfstest

No comments:

Post a Comment