LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-22-2008, 12:43 AM   #1
nehra13
LQ Newbie
 
Registered: Dec 2007
Location: Delhi
Posts: 4

Rep: Reputation: 0
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
 
Old 01-22-2008, 12:49 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
Do you have the portmap service running?
 
Old 01-22-2008, 12:53 AM   #3
nehra13
LQ Newbie
 
Registered: Dec 2007
Location: Delhi
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 01-22-2008, 01:47 AM   #4
fedoraman
Member
 
Registered: Jan 2008
Posts: 51

Rep: Reputation: 15
Quote:
Originally Posted by nehra13 View Post
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
 
Old 01-22-2008, 03:04 AM   #5
nehra13
LQ Newbie
 
Registered: Dec 2007
Location: Delhi
Posts: 4

Original Poster
Rep: Reputation: 0
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.

Last edited by nehra13; 01-22-2008 at 03:08 AM.
 
Old 01-22-2008, 03:55 AM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
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).
 
Old 01-22-2008, 04:42 AM   #7
nehra13
LQ Newbie
 
Registered: Dec 2007
Location: Delhi
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 01-22-2008, 01:15 PM   #8
matruschka
LQ Newbie
 
Registered: Jul 2002
Posts: 22

Rep: Reputation: 15
Quote:
Originally Posted by nehra13 View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS stopped working John_Zbesko Linux - Server 1 09-18-2007 09:30 AM
NFS shares not working windsurfer Linux - Software 6 04-10-2007 04:58 AM
NFS share not working ahmedb72 Red Hat 3 02-22-2006 02:38 AM
NFS with Ubuntu not working? rm6990 Linux - Networking 2 01-24-2005 12:24 PM
nfs not working with slackware jakiel Linux - Networking 8 04-16-2003 05:31 PM


All times are GMT -5. The time now is 03:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration