LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   unable to mount /home dir in a client machine (http://www.linuxquestions.org/questions/linux-networking-3/unable-to-mount-home-dir-in-a-client-machine-328437/)

abhishek124 05-30-2005 02:30 AM

unable to mount /home dir in a client machine
 
Hi
I have a nis server and i want to mount home directory.
in /etc/exports file i have done the following configuration
/home *(rw,sync)

chkconfig nfs on
chkconfig iptables off
chkconfig nfslock on
/sbin/rpc.statd start
service portmap start
chkconfig portmap on
chkconfig ypserv on

in vi /etc/hosts.allow
portmap : 132.0.0.0 : allow
ALL : 132.0.0.

when i mount the /home directory in a client machine
mount 132.0.0.2:/home /home

i get following error
Mount RPC: unable to receive errno=Connection refused


Can anyone help me

saneax 05-30-2005 03:12 AM

in /etc/exports file try this...
/home 132.0.0.0/24(rw,sync)

check...
/etc/hosts.allow
/etc/hosts.deny..

alsoin case SELinux is enabled ... diable it with 'setenforce 0'

also post the output from 'rpcinfo -p'

best luck

abhishek124 05-30-2005 04:37 AM

unable to mount /home folder
 
I did that,
the status remain unchanged. still getting the same error

abhishek124 05-30-2005 04:41 AM

unable to mount /home folder
 
output from rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
100004 2 udp 802 ypserv
100004 1 udp 802 ypserv
100004 2 tcp 805 ypserv
100004 1 tcp 805 ypserv
391002 2 tcp 1025 sgi_fam
100009 1 udp 983 yppasswdd
100011 1 udp 970 rquotad
100011 2 udp 970 rquotad
100011 1 tcp 973 rquotad
100011 2 tcp 973 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 1027 nlockmgr
100021 3 udp 1027 nlockmgr
100021 4 udp 1027 nlockmgr
100021 1 tcp 1031 nlockmgr
100021 3 tcp 1031 nlockmgr

100021 4 tcp 1031 nlockmgr
100005 1 udp 988 mountd
100005 1 tcp 991 mountd
100005 2 udp 988 mountd
100005 2 tcp 991 mountd
100005 3 udp 988 mountd
100005 3 tcp 991 mountd

jul3z 05-30-2005 05:08 AM

Hi,
Maybe you can check that the /home is correctly exported, from you client type : showmount -e 132.0.0.2

abhishek124 05-30-2005 05:18 AM

unable to mount /home folder
 
WELL ON CLIENTMACHINE, I DID THIS

[root@delapache root]# showmount -e 132.0.0.2
Export list for 132.0.0.2:
/home 132.0.0.0/24
[root@delapache root]# mount 132.0.0.2:/home /home
mount: RPC: Unable to receive; errno = Connection refused

saneax 05-30-2005 05:20 AM

your rpcinfo output seems absolutely correct.
check the /var/log/messages for authentication faliures at the time you are trying to mount from client.
post that..
if you have a nis server from where you are exporting users and passwds.. check everything is OK... as nis client

abhishek124 05-30-2005 05:52 AM

unable to mount /home folder
 
/VAR/LOG/ MESSAGES

May 30 09:53:45 delnis kernel: hdc: attached ide-cdrom driver.
May 30 09:53:45 delnis kernel: hdc: ATAPI DVD-ROM drive, 128kB Cache, DMA
May 30 09:53:45 delnis kernel: Uniform CD-ROM driver Revision: 3.12
May 30 09:53:48 delnis kernel: cdrom: This disc doesn't have any tracks I recog
ize!
May 30 10:05:53 delnis portmap[1557]: connect from 132.0.0.4 to dump(): request
from unauthorized host
May 30 10:05:53 delnis portmap[1558]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host
May 30 10:05:53 delnis portmap[1559]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host
May 30 10:14:44 delnis portmap[1561]: connect from 132.0.0.4 to dump(): request
from unauthorized host
May 30 10:14:44 delnis portmap[1562]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host
May 30 10:14:44 delnis portmap[1563]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host


May 30 10:21:22 delnis kernel: lp0: console ready
May 30 10:21:22 delnis portmap[1077]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host
May 30 10:21:22 delnis modprobe: modprobe: Can't locate module char-major-188
May 30 10:21:22 delnis last message repeated 15 times
May 30 10:21:22 delnis modprobe: modprobe: Can't locate module char-major-180
May 30 10:21:23 delnis last message repeated 15 times
May 30 10:21:33 delnis portmap[1383]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host
May 30 10:21:34 delnis portmap[1384]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host
May 30 10:21:35 delnis kernel: mice: PS/2 mouse device common for all mice
May 30 10:21:35 delnis portmap[1388]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host

May 30 10:21:57 delnis xinetd[1482]: warning: can't get client address: Transpo
t endpoint is not connected

@

abhishek124 05-30-2005 06:02 AM

unable to mount /home folder
 
ON CLIENT COMP
ay 30 10:21:58 delapache kernel: cdrom: This disc doesn't have any tracks I re
ognize!
May 30 10:24:42 delapache kernel: i8253 count too high! resetting..
May 30 10:34:42 delapache kernel: nfsd: last server has exited
May 30 10:34:42 delapache kernel: nfsd: unexporting all filesystems
May 30 10:37:16 delapache rpc.mountd: Caught signal 15, un-registering and exit
ng.
May 30 10:37:16 delapache rpc.mountd: Caught signal 15, un-registering and exit
ng.
May 30 10:37:16 delapache nfs: rpc.mountd shutdown succeeded
May 30 10:37:16 delapache nfs: nfsd shutdown failed
May 30 10:37:16 delapache nfs: rpc.rquotad shutdown succeeded
May 30 10:37:16 delapache nfs: Shutting down NFS services: succeeded
May 30 10:37:33 delapache portmap: portmap shutdown succeeded
May 30 10:37:38 delapache nfs: Starting NFS services: succeeded
May 30 10:37:38 delapache rpc.rquotad: Cannot register service: RPC: Unable to
eceive; errno = Connection refused
May 30 10:37:38 delapache rpc.rquotad: rpc.rquotad: unable to register (RQUOTAP
OG, RQUOTAVERS, udp).
May 30 10:37:39 delapache nfs: rpc.rquotad startup failed
.
May 30 10:41:04 delapache portmap: portmap startup succeeded
May 30 10:41:08 delapache nfs: Starting NFS services: succeeded
May 30 10:41:08 delapache nfs: rpc.rquotad startup succeeded
May 30 10:41:08 delapache nfs: rpc.nfsd startup succeeded
May 30 10:41:08 delapache nfs: rpc.mountd startup succeeded
May 30 10:42:54 delapache kernel: portmap: server localhost not responding, tim
d out

May 30 10:48:57 delapache rpc.mountd: Caught signal 15, un-registering and exit
ng.
May 30 10:48:57 delapache nfs: rpc.mountd shutdown succeeded
May 30 10:49:01 delapache kernel: nfsd: last server has exited
May 30 10:49:01 delapache kernel: nfsd: unexporting all filesystems
May 30 10:49:01 delapache kernel: nfsd: last server has exited
May 30 10:49:01 delapache kernel: nfsd: unexporting all filesystems
May 30 10:49:01 delapache nfs: nfsd shutdown succeeded
May 30 10:49:02 delapache nfs: rpc.rquotad shutdown succeeded
May 30 10:49:02 delapache nfs: Shutting down NFS services: succeeded
May 30 10:49:02 delapache nfs: Starting NFS services: succeeded
May 30 10:49:02 delapache nfs: rpc.rquotad startup succeeded

saneax 05-30-2005 06:09 AM

your nfs server is not authenticating the incoming connection...

please check the following...
in /etc/hosts.deny, there shouldnt be nething (just for testing)...
in /etc/hosts.allow nothing should be there... (which means ur /etc/exports) is final authority in restricting...
restart xinetd... and restart portmap and also nfs daemons.. try and see what happens

abhishek124 05-30-2005 06:30 AM

unable to mount /home folder
 
ITS GIVING ME THE SAME ERROR, HOW EVER
when i restart the nfs service

[root@delnis root]# service nfs restart

Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: nfsd: last server has exited
nfsd: unexporting all filesystems
[ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]

abhishek124 05-30-2005 09:35 AM

damn with this stupid os. i am formatting my drive and reinstall linux.

thankyou guys for helping

saneax 05-30-2005 09:42 AM

bad option...
read through http://nfs.sourceforge.net/nfs-howto/security.html
and http://nfs.sourceforge.net/nfs-howto/server.html

may the luck be with you ;)

Tudor Popescu 05-30-2005 11:13 AM

Thank you kindly. This information is very useful for me. Great site! Thanks again!

________________________________________________________________
http://www.neolink.ro

abhishek124 06-06-2005 03:11 AM

Hi
I have a nis server and i want to mount home directory.
in /etc/exports file i have done the following configuration
/home *(rw,sync)

chkconfig nfs on
chkconfig iptables off
chkconfig nfslock on
/sbin/rpc.statd start
service portmap start
chkconfig portmap on
chkconfig ypserv on

in vi /etc/hosts.allow
portmap : 132.0.0.0 : allow
ALL : 132.0.0.

when i mount the /home directory in a client machine
mount 132.0.0.2:/home /home

i get following error
Mount RPC: unable to receive errno=Connection refused
output from rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
100004 2 udp 802 ypserv
100004 1 udp 802 ypserv
100004 2 tcp 805 ypserv
100004 1 tcp 805 ypserv
391002 2 tcp 1025 sgi_fam
100009 1 udp 983 yppasswdd
100011 1 udp 970 rquotad
100011 2 udp 970 rquotad
100011 1 tcp 973 rquotad
100011 2 tcp 973 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 1027 nlockmgr
100021 3 udp 1027 nlockmgr
100021 4 udp 1027 nlockmgr
100021 1 tcp 1031 nlockmgr
100021 3 tcp 1031 nlockmgr

100021 4 tcp 1031 nlockmgr
100005 1 udp 988 mountd
100005 1 tcp 991 mountd
100005 2 udp 988 mountd
100005 2 tcp 991 mountd
100005 3 udp 988 mountd
100005 3 tcp 991 mountd

WELL ON CLIENTMACHINE, I DID THIS

[root@delapache root]# showmount -e 132.0.0.2
Export list for 132.0.0.2:
/home 132.0.0.0/24
[root@delapache root]# mount 132.0.0.2:/home /home
mount: RPC: Unable to receive; errno = Connection refused

ITS GIVING ME THE SAME ERROR, HOW EVER
when i restart the nfs service

[root@delnis root]# service nfs restart

Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: nfsd: last server has exited
nfsd: unexporting all filesystems
[ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]


All times are GMT -5. The time now is 05:08 AM.