The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Thursday, July 10, 2008

OpenSolaris - Linux file sharing (Fedora 7 and OpenSolaris 2008.05)

I am using NFS to share some files between my linux and open solaris system. I am working behind a router which connects my desktop pc and my laptop . My desktop pc has OpenSolaris 2008.05 installed with ip address and Fedora 7 is installed in my laptop with ip address

I have configured my fedora system in the following way :

*A ping test to make sure that they are reachable to each other.

[root@ritwik ~]# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=255 time=3.53 ms
64 bytes from icmp_seq=2 ttl=255 time=1.18 ms
64 bytes from icmp_seq=3 ttl=255 time=1.18 ms
64 bytes from icmp_seq=4 ttl=255 time=1.16 ms
64 bytes from icmp_seq=5 ttl=255 time=1.30 ms
64 bytes from icmp_seq=6 ttl=255 time=1.44 ms

--- ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5000ms
rtt min/avg/max/mdev = 1.161/1.636/3.537/0.856 ms

** System -> Administration -> Server settings -> services.
I looked for NFS service and make sure that's running.

*** System -> Preferences -> system -> NFS.
click on 'Add'. I selected '/home/ritwik/study' directory to share .
Host(s) :
I checked 'Read-Write'.

now , /etc/exports was looking like :


I have also checked the following :

[root@ritwik ~]# exportfs -rv

[root@ritwik ~]# showmount -e
Export list for ritwik:

My firewall service trusts NFS4 as trusted service , though I have used NFS version 3 to mount shared files.

Now configuration details for OpenSolaris 2008.05 :

*A ping test to make sure that they are reachable to each other.

-bash-3.2# ping is alive
** Go to services. (for OpenSolaris 2008.05, browse it from system -> administration -> Services). Activate NFS services.

*** Go to Administration -> Share Folder. Click on 'Add'.

1)Now select the path to the folder you want to share , by default your home directory will be selected. I have shared '/export/home/ritwik/softwares'.

2)Share with : NFS

3)Click on "Add Host"

Allowed hosts : Specify IP address
enter IP address :
Check out the 'Read Only' box in Hosts settings if necessary.

Click OK to exit the wizards.

Optional Steps :

Now check out whether NFS server is running properly :
# svcs network/nfs/server
You should get a result like :

online 21:22:11 svc:/network/nfs/server:default

Now check out Shared files :
From my laptop I got a result like :

- /export/home/ritwik sec=sys,ro= ""

and from my desktop,

- /export/home/ritwik/softwares sec=sys,ro= ""

You may also check /etc/dfs/dfstab , the file in my laptop was looking like :

# Do not modify this file directly.
# Use the sharemgr(1m) command for all share management
# This file is reconstructed and only maintained for backward
# compatibility. Configuration lines could be lost.
# share [-F fstype] [ -o options] [-d ""] [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o sec=sys,ro= /export/home/ritwik

Now , I make a mount point in my fedora system.

[ritwik@ritwik ~]$ mkdir OSolShare

Then I used the following command to mount OpenSolaris shared files in that directory :

[root@ritwik ~]# mount -t nfs -o vers=3 /home/ritwik/OSolShare

Then I was trying to mount fedora shared files in my Opensolaris system.

first I make a mount point :

ritwik@ritwik:~$ mkdir linxShare

then I tried the following command :

-bash-3.2# mount -F nfs -o vers=3 /export/home/ritwik/linxShare

but got the following error :

nfs mount: : RPC: Rpcbind failure - RPC: Timed out
nfs mount: retrying: /export/home/ritwik/linxShare
nfs mount: : RPC: Rpcbind failure - RPC: Timed out
nfs mount: : RPC: Rpcbind failure - RPC: Timed out
nfs mount: : RPC: Rpcbind failure - RPC: Timed out

then I checked whether rpc is running :

-bash-3.2# ps -ef | grep rpc
daemon 339 1 0 23:28:42 ? 0:00 /usr/sbin/rpcbind
root 896 716 0 00:30:12 pts/2 0:00 grep rpc

which means rpc is running !!

Now I am trying to solve this problem... I'll post the solution asap.


  1. So, I am having the exact same issue. Did you ever figure it out???

  2. fyi:

    just had the same problem - make sure to put up a hostname in the /etc/hosts on the solaris box for the nfs client - or proper resolving. solvedit immediately

    (saw your post while searchign solution on the web)

  3. there are several RPC services. The best try to see them all by using chkconfig --list.

    You have to turn all of them.
    You need also to turn on all the nfs services like nfs.lock. Also use chkconfig.

    The best idea to manage the services under Fedora is "serviceconfig". It has to work.

    I have rather an other problem... on my linux computer I have "mount: failed, reason given by server: Permission denied"