LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can not mount remote path (https://www.linuxquestions.org/questions/linux-newbie-8/can-not-mount-remote-path-4175423014/)

ust 08-20-2012 04:10 AM

Can not mount remote path
 
I have a RHEL 5 server 192.168.0.1 , installed rsh , rsh-server

rpm -qa |grep rsh
rsh-server-0.17-40.el5_7.1
rsh-0.17-38.el5

The r service has been started .
rexec: on
rlogin: on
rsh: on
rsync: on

The path has been export for mount in /etc/exports and run exportfs -a
/tmp/share 192.168.0.2(rw,sync)


I have another server which is RHEL 3 , want to mount it but fail

mount 192.168.0.1:/tmp/share /tmp/mount

The error is asbelow .

mount: mount to NFS server '192.168.0.1' failed: RPC Error: Program not regis
tered.


Can advise what is wrong ? what I need to check and re-config ?

thanks

acid_kewpie 08-20-2012 04:14 AM

well rsh has *NOTHING* to do with NFS for a start... which protocol do you want to use??

ust 08-20-2012 05:48 AM

deleted

ust 08-20-2012 05:52 AM

thx reply ,

I mixed up nfs and rsh .

I just checked , the nfsd is started , but still can't be mounted by other server , can advise what is wrong ? thx

/sbin/chkconfig --list |grep nfs
nfs 0 off 1 off 2 on 3 on 4 on 5 on 6 off

ust 08-20-2012 08:44 AM

in my first post , I have mixed up rsh and nfs .

Now , I checked , the nfsd is started , but still not work, cand advise what I need to do ?

thx

acid_kewpie 08-20-2012 08:49 AM

Please don't post additional responses without showing what extra research you have done in the meaning etc.

That error, which I hope you have been reading up on, is usually down to portmap not running. check that service is also up and at it.

ust 08-20-2012 06:32 PM

Quote:

Originally Posted by acid_kewpie (Post 4759141)
Please don't post additional responses without showing what extra research you have done in the meaning etc.

That error, which I hope you have been reading up on, is usually down to portmap not running. check that service is also up and at it.

thx reply ,

you mean the portmap service ? I just checked , the portmap service is on

portmap 0 off 1 off 2 off 3 on 4 on 5 on 6 off

chrism01 08-20-2012 08:19 PM

Try the following on your nfs server
Code:

ps -ef|grep nfs

service nfs status

service  nfslock status

exportfs -v

rpcinfo -p

showmount -e localhost

You may find these useful
https://www.linuxquestions.org/quest...ersion-627485/
https://access.redhat.com/knowledge/...de/ch-nfs.html

ust 08-21-2012 02:23 AM

thanks reply ,

I have started the nfs service , it works now.

But I have a question about the service , I use service to check to check it , it is stopped .

# service nfs status
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

When I use chkconfig to check nfs , it is on .

#chkconfig --list |grep nfs
nfs 0off 1:off 2:on 3:on 4:on 5:on 6:off


can advise what is the difference between this two ways to check the service ?

thanks.

chrism01 08-21-2012 06:22 PM

chkconfig says whether it CAN be on & it will be set on at next reboot.
service turns it on on/off immediately, WITHOUT regard to chkconfig settings.
See
http://linux.die.net/man/8/chkconfig
http://www.linuxtopia.org/online_boo...chkconfig.html
http://linux.die.net/man/8/service
http://www.linuxtopia.org/online_boo...es-ntsysv.html


All times are GMT -5. The time now is 05:10 PM.