List Info

Thread: Unable to mount NFS share




Unable to mount NFS share
user name
2006-11-03 09:43:39
I have a server set up which I'm using to expand my Linux
knowledge.  I
currently have NFS running with a single share.  The entry
in
/etc/exports is thus: /mnt/inst       *(ro,sync)

I usually have to manually start NFS for some reason but
that isn't
what's important right now.  After I start it I try to mount
the share
to my local filesystem using `mount 192.168.4.115:/mnt/inst
/mnt/nfs`.
However, this doesn't work and instead gives me the
following error:
mount: RPC: Unable to receive; errno = Connection reset by
peer

After I attempt to mount /mnt/inst and it fails I run
`service nfs
restart`.  For the most part this works normally.  However,
shutting
down mountd fails.  After the restart though, I can start
and stop NFS
and mountd won't have any problems.  It's only after I try
to mount the
share that it gets squirrely.

Anyone have any insight on how I can fix this problem?

Thanks
Mathew

_______________________________________________
rhn-users mailing list
rhn-usersredhat.com
htt
ps://www.redhat.com/mailman/listinfo/rhn-users
Unable to mount NFS share
user name
2006-11-03 09:57:32
Hi,

NFS Server side - Check and issue following commands
------------------
1) check whether the Firewall is in ON for NFS and portmaps
( #iptables
-L ).If yes, flush the firewall of both ports.
2) #chkconfig --list nfs and #chkconfig --list portmap , if
the output
is in off state for 3 and 5 runlevel. Please ON using
#chkconfig --level
3 5 on.
3) service portmap restart
4) service nfs restart
5) exportfs -a . If everything is fine , you should not get
any error
messages.
6) Then ensure your exported directory using -- #showmount
-e

Client Side
------------

1) service portmap restart
2) Check for firewall . If its there flush off using
#iptable -f (for
needed ports)
3) Then create a directory called test ( its your wish ) -
#mkdir -p
/opt/test
4) mount -t nfs  192.168.4.115:/mnt/inst /opt/test

Now you should be able to mount your exported dir in your
local machine
. 

Feel free to revert back incase of issues..

-Jason
Motorola.




-----Original Message-----
From: rhn-users-bouncesredhat.com [mailto:rhn-users-bouncesredhat.com]
On Behalf Of Mathew Snyder
Sent: Friday, November 03, 2006 3:14 PM
To: rhn-usersredhat.com
Subject: [rhn-users] Unable to mount NFS share

I have a server set up which I'm using to expand my Linux
knowledge.  I
currently have NFS running with a single share.  The entry
in
/etc/exports is thus: /mnt/inst       *(ro,sync)

I usually have to manually start NFS for some reason but
that isn't
what's important right now.  After I start it I try to mount
the share
to my local filesystem using `mount 192.168.4.115:/mnt/inst
/mnt/nfs`.
However, this doesn't work and instead gives me the
following error:
mount: RPC: Unable to receive; errno = Connection reset by
peer

After I attempt to mount /mnt/inst and it fails I run
`service nfs
restart`.  For the most part this works normally.  However,
shutting
down mountd fails.  After the restart though, I can start
and stop NFS
and mountd won't have any problems.  It's only after I try
to mount the
share that it gets squirrely.

Anyone have any insight on how I can fix this problem?

Thanks
Mathew

_______________________________________________
rhn-users mailing list
rhn-usersredhat.com
htt
ps://www.redhat.com/mailman/listinfo/rhn-users

_______________________________________________
rhn-users mailing list
rhn-usersredhat.com
htt
ps://www.redhat.com/mailman/listinfo/rhn-users
Unable to mount NFS share
user name
2006-11-06 10:57:46
Mathew Snyder wrote:

>I have a server set up which I'm using to expand my
Linux knowledge.  I
>currently have NFS running with a single share.  The
entry in
>/etc/exports is thus: /mnt/inst       *(ro,sync)
>  
>

So this is a read-only export. Best to mount as such. Have
you run 
`exportfs -a` (or some equivalent)?

>I usually have to manually start NFS for some reason but
that isn't
>what's important right now.  After I start it I try to
mount the share
>to my local filesystem using `mount
192.168.4.115:/mnt/inst /mnt/nfs`.
>However, this doesn't work and instead gives me the
following error:
>mount: RPC: Unable to receive; errno = Connection reset
by peer
>  
>
Best to specify the type to: `mount -t nfs
192.168.4.115:/mnt/inst 
/mnt/nfs -o ro`

>After I attempt to mount /mnt/inst and it fails I run
`service nfs
>restart`.  For the most part this works normally. 
However, shutting
>down mountd fails.  After the restart though, I can
start and stop NFS
>and mountd won't have any problems.  It's only after I
try to mount the
>share that it gets squirrely.
>  
>
Was this restarting on the server or on the client? Do you
have the 
nfs-stuff available on both the server and the client? Try
to mount 
locally ("localhost", 127.0.0.1).


Success

CBee

_______________________________________________
rhn-users mailing list
rhn-usersredhat.com
htt
ps://www.redhat.com/mailman/listinfo/rhn-users
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )