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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-16-2009, 03:45 AM
|
#1
|
Member
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180
Rep:
|
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
|
|
|
02-16-2009, 05:43 AM
|
#2
|
LQ Newbie
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27
Rep:
|
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.
|
|
|
02-16-2009, 07:15 AM
|
#3
|
Member
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180
Original Poster
Rep:
|
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
|
|
|
02-16-2009, 07:49 AM
|
#4
|
LQ Newbie
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27
Rep:
|
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.
|
|
|
02-16-2009, 11:37 PM
|
#5
|
Member
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180
Original Poster
Rep:
|
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.
|
|
|
02-17-2009, 12:47 AM
|
#6
|
Member
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180
Original Poster
Rep:
|
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
|
|
|
02-17-2009, 02:00 AM
|
#7
|
Member
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180
Original Poster
Rep:
|
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
|
|
|
02-17-2009, 02:24 AM
|
#8
|
LQ Newbie
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27
Rep:
|
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..
|
|
|
02-17-2009, 02:31 AM
|
#9
|
Member
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180
Original Poster
Rep:
|
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
|
|
|
02-17-2009, 03:14 AM
|
#10
|
LQ Newbie
Registered: Feb 2009
Distribution: RedHat, Fedora, CentOS
Posts: 27
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 12:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|