LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   nfs is not working (http://www.linuxquestions.org/questions/linux-networking-3/nfs-is-not-working-615389/)

nehra13 01-22-2008 01:43 AM

nfs is not working
 
hi all,

i m working on ram disk. i m thinking about mounting my files from server(172.168.2.240) to the client(172.168.2.62)

i m trying the command : mount -t nfs 172.168.2.240:/export/ltib-imx27ads-20070522/rootfs nfsdir

it is giving the error:

portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
lockd_up: makesock failed, error=-5
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
mount: Mounting 172.168.2.240:/export/ltib-imx27ads-20070522/rootfs on nfsdir failed: Input/output error



what can be the error. can anybody help.



TIA

Amit Nehra

Zmyrgel 01-22-2008 01:49 AM

Do you have the portmap service running?

nehra13 01-22-2008 01:53 AM

on the server i have portmap service running. on client not.
i m able to mount directory from other machine on to my server but from server to my imx27 board, it is not working.
what should i do



can u tell me how to start portmap on client.

fedoraman 01-22-2008 02:47 AM

Quote:

Originally Posted by nehra13 (Post 3031021)
on the server i have portmap service running. on client not.
i m able to mount directory from other machine on to my server but from server to my imx27 board, it is not working.
what should i do



can u tell me how to start portmap on client.

allow the ip of the client in the /etc/host.allow file

thanks

abhiz

nehra13 01-22-2008 04:04 AM

it is hosts.allow not host.allow

& the file looks like this:


portmap 172.168.2.62
portmap 172.168.2.64



host ip is already there. is it the correct way to add. or do i need anything else.

lazlow 01-22-2008 04:55 AM

Try more like this:

portmap: 192.168.1.101
lockd: 192.168.1.101
mountd: 192.168.1.101
rquotad: 192.168.1.101
statd: 192.168.1.101
nfs: 192.168.1.101


Adjusting for your client address(s).

nehra13 01-22-2008 05:42 AM

i tried ur way also but no luck.
still the same error. i m stuck with this & i must resolve this matter as soon as possible. my entire project depends upon this. somebody help.

matruschka 01-22-2008 02:15 PM

Quote:

Originally Posted by nehra13 (Post 3031147)
i tried ur way also but no luck.
still the same error. i m stuck with this & i must resolve this matter as soon as possible. my entire project depends upon this. somebody help.

Hi Tia!

First off,be sure to start portmap,lockd,mountd,rquotad,statd and nfs on both server
and client at boot (usually done in /etc/rc.d/rc.rpc by manually editing in start commands
for each daemon in the rpc_start() function,as follows :

if ! ps axc | grep -q rpc.portmap ; then
echo "Starting RPC portmapper : /sbin/rpc.portmap"
/sbin/rpc.portmap
fi
if ! ps axc | grep -q rpc.lockd ; then
echo "Starting RPC portmapper : /sbin/rpc.lockd"
/sbin/rpc.lockd
fi

and so on.Assuming all your daemons are in /sbin.)

Then on server:

In /etc/exports , put:
/export/ltib-imx27ads-20070522/rootfs nfsdir 172.168.2.62(rw)

Noted that there's a space in the directory name,you'd probably want to change that?
(E.g /export/ltib-imx27ads-20070522/rootfs_nfsdir)

In /etc/hosts.allow , put:
portmap: 172.168.2.62
lockd: 172.168.2.62
mountd: 172.168.2.62
rquotad: 172.168.2.62
statd: 172.168.2.62
nfs: 172.168.2.62

Now you should be able to mount /export/ltib-imx27ads-20070522/rootfs_nfsdir to the
directory of your choice.

Good luck!


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