LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2009, 03:45 AM   #1
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
Unhappy NFS mount problems


Hi all,

I am having a NAS device and my system,the IP address of NAS is 192.168.1.31 and system is 192.168.1.13.I am having a folder called driver on system directory /mnt/ide1/.This driver folder i want to share with the of NFS protocol.I have made an entry in /etc/exports file for that folder.I am passing this command on my NAS device:

mount -t nfs 192.168.1.13:/mnt/ide1/driver /home.

But i am getting some RPC related errors. and also
"mount:nfsmount failed:Bad file descriptor"

If you have questions,please ask them.
Thanks for support,

Regards,
Ravi Chobey
 
Old 02-16-2009, 05:43 AM   #2
thierrys
LQ Newbie
 
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27

Rep: Reputation: 18
First step is to make sure you have portmap running on the server, the RPC errors are very likely to be due to the portmap daemon being stopped.

Some good pointer for troubleshooting are at [1] below, but first things first, start portmap and let us know if that does the trick.
Also post ryou /etc/exports, the syntax is picky, a simple extra space could prevent things from working smoothly

Also why mounting on /home?
/home is very probably already used by something else.
what does the mount command returns?
hth
Thierry

[1] http://www.troubleshooters.com/linux/nfs.htm

Last edited by thierrys; 02-16-2009 at 05:45 AM.
 
Old 02-16-2009, 07:15 AM   #3
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Red face

hi thierrys,

Thanks for your reply and a good link.
My portmapper and nfs both are running for runlevels 3,4 and 5 i.e they are "on".

I have made an entry in in :/etc/exports as
/mnt/ide1/test (rw) [single space between them].

tried this command:

mount -t nfs -o rw 192.168.1.13:/mnt/ide1/test /mnt/test

I am getting:

"RPC timed out".

Whats the problem now?

Regards,
Ravi
 
Old 02-16-2009, 07:49 AM   #4
thierrys
LQ Newbie
 
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27

Rep: Reputation: 18
Quote:
/mnt/ide1/test (rw)
you want something like the following in /etc/exports

/path/to/driver authorized_host(rw)

so if the path is /data/drivers and you want all hosts on your network to have read-write access it should be

/data/drivers *(rw)

note there is no space between the wildcard * and the (rw)
the link privided gives you the possible options
Make sure to restart the nfs and portmap daemon once you have made any modification


hth
Thierry

Last edited by thierrys; 02-16-2009 at 08:01 AM.
 
Old 02-16-2009, 11:37 PM   #5
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Unhappy

hi thierrys,

i have made changes in /etc/exports as:

1> /mnt/ide1/test *(rw)

after that:

2> service nfs restart
3> service portmapper restart

i found the NFS daemons and portmapper restarting.

After that i passed this command:

mount -t nfs -o rw 192.168.1.13:/mnt/ide1/test /mnt/test

i have passed this command on my system to mount "/mnt/ide1/test" on to
my "/mnt/test" directory of my NAS device.

I am getting the same error i.e "RPC timed out".

Note: i) there is a white space between /mnt/ide1/test and * .
ii) there is no white space between * and (rw).


Regards,
Ravi

Last edited by ravi_chobey; 02-16-2009 at 11:38 PM.
 
Old 02-17-2009, 12:47 AM   #6
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

hi thierrys,

please go though the output of "rpcinfo -p" command:

[root@localhost /]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32769 status
100024 1 tcp 32768 status
391002 2 tcp 32769 sgi_fam
100011 1 udp 1019 rquotad
100011 2 udp 1019 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32806 nlockmgr
100021 3 udp 32806 nlockmgr
100021 4 udp 32806 nlockmgr
100005 1 udp 613 mountd
100005 1 tcp 616 mountd
100005 2 udp 613 mountd
100005 2 tcp 616 mountd
100005 3 udp 613 mountd
100005 3 tcp 616 mountd
 
Old 02-17-2009, 02:00 AM   #7
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Smile

hi thierrys,

i have checked with one system to other system,instead of NAS.I am easily
easily accessing files on the other system with the help of NFS protocol,
i have used the same procedure which i have mentioned earlier.The conclusion of our discussion is "there is some problem with my NAS device".

A ton of thanks to you,

Regards,
Ravi Chobey
 
Old 02-17-2009, 02:24 AM   #8
thierrys
LQ Newbie
 
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27

Rep: Reputation: 18
are you trying to get the NAS to mount the exported share or mounting from the NAS to your machine?

One of the nodes is obviously not running portmap I would say..
 
Old 02-17-2009, 02:31 AM   #9
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

hi thierrys,

I am having support of portmapper in NAS,that i have checked.But i could not sort out the "RPC" timed out problems.

Ravi
 
Old 02-17-2009, 03:14 AM   #10
thierrys
LQ Newbie
 
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27

Rep: Reputation: 18
that's weird...
the only time I have ever seen RPC timeout were when portmap/nfs had not been restarted properly.
hung thread or a stale process maybe...
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-12-2016 12:30 AM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 03:36 PM
nfs mount problems GoldfingerUK Linux - Networking 1 02-01-2005 02:42 PM
mount problems with NFS neolus Linux - Networking 5 12-03-2003 02:27 AM
problems with nfs mount! Falafel Linux - Networking 3 11-14-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration