View Full Version : NFS share question
graeder
2006-03-26, 10:27 AM CST
I have an nfs share setup which resolves fine when I mount the share using the IP address of the machine instead of the name. I have the name and IP address in the hosts file, but it still doesn't work. Any advice? Thanks.
jhetrick62
2006-03-26, 10:33 AM CST
I wish I had the answer as I have the same problem mounting cifs shares in Samba. Works fine on ip address, but not name. Same exact syntax from FC4 except there I used smbfs mount. That is not longer available so I'm wondering if I will need to learn winbind or something?
Flyboy917
2006-03-26, 10:48 AM CST
I have an nfs share setup which resolves fine when I mount the share using the IP address of the machine instead of the name. I have the name and IP address in the hosts file, but it still doesn't work. Any advice? Thanks.
Have you set up the exports file on the host machine?
graeder
2006-03-26, 10:54 AM CST
Yes, the exports are set up correctly, and as I said everything works when using the ip address. Uctually, the name did work, but then I upgraded to FC 5, and now only ip address works.
jcliburn
2006-03-26, 12:23 PM CST
Does it work when you add the hostnames to /etc/hosts?
graeder
2006-03-26, 12:30 PM CST
No, I have added to /etc/hosts and it still doesn't work.
jcliburn
2006-03-26, 12:36 PM CST
I loaded FC5 on a couple of old Dell PIII systems a few days ago and I didn't have any problems with NFS. I set up cross-mounts between the two. Are you using the command line to try and mount? Are you using the hostnames in the mount lines of /etc/fstab? Can you ping the hostnames?
Flyboy917
2006-03-26, 06:25 PM CST
Have you tried turning off SE Linux, and stopping Iptables?
Do you have both nfs and nfslock runing on both systems?
Not sure if thats the correct answer, but it worked for me.
graeder
2006-03-26, 06:42 PM CST
I loaded FC5 on a couple of old Dell PIII systems a few days ago and I didn't have any problems with NFS. I set up cross-mounts between the two. Are you using the command line to try and mount? Are you using the hostnames in the mount lines of /etc/fstab? Can you ping the hostnames?
I was using the hostname in /etc/fstab, but that's the problem - it's not working unless I use the IP address. The hostname is listed in /etc/hosts with the correct ip address. No, I cannot ping the hostname.
jcliburn
2006-03-26, 07:09 PM CST
The hostname is listed in /etc/hosts with the correct ip address. No, I cannot ping the hostname.
If you can't ping the hostname and you CAN ping the IP addr, then the problem isn't with NFS. Please post the contents of /etc/resolv.conf. Check the contents of /etc/nsswitch.conf to be sure that the following line exists:
hosts: files dns
What is the status of SELinux? Execute /usr/sbin/getenforce to find out.
TheRoot
2006-03-29, 10:29 AM CST
the problem is with your DNS not your /etc/hosts file
jhetrick62
2006-03-29, 08:29 PM CST
Guys, there is no problem with the resolv or the dns. The machine works well for every other instance expect the stated mount. I used the exact same fstab lines that I used in FC3 and FC4 the only difference was in switching to FC5! I used the exact same Samba config file also.
It's a waste of time to think that dns or resolv.conf are forked over.
Jeff
jcliburn
2006-03-30, 06:20 AM CST
Guys, there is no problem with the resolv or the dns. The machine works well for every other instance expect the stated mount. I used the exact same fstab lines that I used in FC3 and FC4 the only difference was in switching to FC5! I used the exact same Samba config file also.
It's a waste of time to think that dns or resolv.conf are forked over.
Jeff
No offense, but you hijacked graeder's thread. All my posts were answering graeder's problem. graeder can't ping a hostname. That's a name resolution problem.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.