Operating System - Linux
1829294 Members
1784 Online
109989 Solutions
New Discussion

Re: nfs a directory from sun to linux

 
Gerard Powell
Advisor

nfs a directory from sun to linux

Can some one guide me how to do an NFS of a directory from a SunOS 5.8 to a Linux 2.4 system.
11 REPLIES 11
Alexander Chuzhoy
Honored Contributor

Re: nfs a directory from sun to linux

use the share command,for example:
`share -o ro /tmp`
will share the local tmp directory via NFS.

`dfshares` will show available shares.
`dfshares hostname` will show available shares on hostname.
you casn also use the showmount for it.
To make the share permanent,edit the file /etc/dfs/sharetab
for the /tmp sharing (example only)
/tmp - nfs ro

Best regards.
Gerard Powell
Advisor

Re: nfs a directory from sun to linux

I have executed the command share -o ro /tc4src
i get a error nfs dfshares:tc4sun: RPC: Program not registered


Alexander Chuzhoy
Honored Contributor

Re: nfs a directory from sun to linux

first you should start the server:
/etc/init.d/nfs.server start
Gerard Powell
Advisor

Re: nfs a directory from sun to linux

Even after starting the nfs server when I give dfshares command, I get the same error nfs dfshares:tc4sun: RPC: Program not registered

tc4sun the host name.
Alexander Chuzhoy
Honored Contributor

Re: nfs a directory from sun to linux

did you start the rpc?
/etc/init.d/rpc start
Gerard Powell
Advisor

Re: nfs a directory from sun to linux

Even after starting rpc I get the same error.
Alexander Chuzhoy
Honored Contributor

Re: nfs a directory from sun to linux

The file to edit for permanent shares is
/etc/dfs/dfstab


place an entry in it:
share -F nfs -o ro /tmp


for example to share the /tmp directory (not that you would wanna do this).
after that restart the rpc service
/etc/init.d/rpc stop
/etc/init.d/rpc start
now restart the nfs service
/etc/init.d/nfs stop
/etc/init.d/nfs start


Hope it helps.
Sivasingam Santhakumar
Frequent Advisor

Re: nfs a directory from sun to linux

I have you started NFS services on your Linux box:
/sbin/service NFS start
Also make it permenant ( survive the reboots)
/sbin/chkconfig --level 234 NFS on
Ross Minkov
Esteemed Contributor

Re: nfs a directory from sun to linux

The Linux box is the NFS client in this case. No need to start nfs server on it. And Linux is case-sensitive -- there is no service NFS. It's nfs.
Indrajit_1
Valued Contributor

Re: nfs a directory from sun to linux

Hi,

Do the following steps..

Configure NFS server in Solaris 5.8..

#vi /etc/dfs/dfstab

share -F nfs -o rw= -d "directory_name" /

for example..
share -F nfs -o=192.168.1.10 -d "home directory" /export/home

save and come out..
#/etc/init.d/nfs.server stop
#/etc/init.d/nfs.server start
Go to client machine (Linux machine) and create a directory under which u want to mount the share directory..

#mkdir /dump
#mount :/ /dump

For example..
#mount 192.168.1.50:/export/home /dump

Hope it would work...

cheers
indrajit
Never Ever Give Up
Gerard Powell
Advisor

Re: nfs a directory from sun to linux

When I try to mount the Sun Server directory on the linux m/c, I get this error

mount: 172.25.1.24:/tc4home failed, reason given by server: Permission denied