Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NFS mount Problem 1

Status
Not open for further replies.

Packya

IS-IT--Management
Oct 18, 2000
29
US
We have to sun servers at our location. I have been trying to mount a directory on the second server onto the first.

After I do share -F nfs "directory". And then do

dfshares on the same machine ....I get the following error...

nfs dfshares:dc-sun6: RPC: Program not registered


I get the similar error

RPC: Program not registered. When I do a mount from First server using the command

mount -F nfs -m "secondserver":"directory" "mountdirectory"

Any help would be appreciated...

 
Not too well versed in this, but make sure you've got the NFS daemon running on both servers. I had this problem a few weeks ago, caused by nfsd not being started.

ps -ef|grep nfsd

will show you if it's running. If not, you can start it using (as root)

/etc/init.d/nfs.server

Do this on both servers, and the mount "should" work OK. This may also be why dfshares is not working.

Greg.
 
packya:

Greg is correct. Also mountd must be running (/usr/lib/nfs/mountd) on the host which is allowing its filesystem(s) to be mounted on the second server. Al
 
Thank you all! This worked for me! How can we be sure though that this gets executed at boot time? Or is it not a good practice to do this?
 
I just looked in the rc3.d directory and found this command (script) S15nfs.server in there. I did not use this to run it, I actually typed "/etc/init.d/nfs.server start" and it started back up. Should I have used the S15nfs.server file?
Steve
 
I think your Ok with the way you started it. You may want to look into why nfs didt start originally if you have it in rc3.d. it should have started at bootup.

Dennis
 
If you place the share command you want into
/etc/dfs/dfstab you will have the directory shared at boot time. All of the needed processes will start and you won't have to do anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top