![]() |
NFS + Red Hat 8 + me = no love
Ok, I just can't get NFS to work for me for some reason. I've searched through the archives for "NFS" and there were some hits, but mostly just discussions of why it should be used. Anyway...
I've got three machines. One has tremendous storage capacity that I want to use as a fileserver (Alexandria). The two others will connect as needed (Hermes, Deimos). Here are (what I believe to be) the important config files for Alexandria: Code:
/etc/exports: -------------------------------------I check the services through Red Hat's tools, and it says NFS is running. Using ps and grep, I get this: Code:
# ps -aux | grep rpcCode:
mount -t nfs -o soft,intr,timeo=20 //alexandria:/mnt/shared_net /mnt/shared_filesThe network is good because I can ping each machine from any other machine. I just can't figure this one out. Any suggestions? |
Hrm...
< My local network is set to use IP addresses in the range of 192.168.0.0 throught 192.168.0.255. So the masks in hosts.allow should work, right? Yes...according to HOSTS_ACCESS(5). have you tried nmap from Hermes and Deimos to see if they can get to the NFS ports? For example: nmap -sT alexandria What is the exact error messages you are receiving? |
Red Hat may have lied to me about NFS running. To double-check, I ran:
Code:
# ps -aux | grep nfsAnyway, here's the result of the command you suggested: Code:
Starting nmap V. 3.00 ( www.insecure.org/nmap/ )For the sake of being thorough though. The UDP version of mount returns this: Code:
mount: RPC: Timed outCode:
NFS server reported service unavailable: Address already in useI tried killing off all the NFS processes listed above, and then restarted it using Red Hat's tool: Code:
service nfs start |
tried the correct syntax?
mount -t nfs -o options alexandria:/mnt/shared_net /mnt/shared_files |
Hehehe... I was hoping nobody would notice that...
I did run the mount command with the right syntax; I just transferred it to the post incorrectly. I've even tried: mount -t nfs -o soft,intr,timeo=20 192.168.0.XX:/mnt/shared_net /mnt/shared_files X's being replaced by the appropriate address of course. The same failure. The remote procedure calls are running, but is the nfs daemon supposed to have a ps output of all 0s? What could be getting in the way? A firewall? Does Red Hat come installed with iptables blocking nfs access? Would that be why nmap couldn't see the ports? At this point, I'm grasping at straws. I really do appreciate all the help gentlemen. |
Hrm, do you have mountd running?
Are you starting the server by issuing 'service nfs start' ? Try simplifying it by taking out some of those options for now. You have the portmapper (111) running, which is what I wanted to see. Dont worry about those zeroes. Have you tried mounting it on the server? |
Yeah, the share is mounted locally on Alexandria. The shared files are located on a drive separate from the system. So, I mount it to Alexandria's filesystem tree, and then attempt to mount the share from Deimos or Hermes.
I used the Red Hat tool to set NFS to run on boot. I believe it's redhat-config-services or soemthing very similar. So, it should be started, but because of the trouble I've been having, I've gotten into the habit of restarting nfs anytime I do anything that might influence its operation: # service nfs restart I'm at work and can't try the mount commands or look for mountd right now. I'll post the results once I have some time to bang on the keyboard. |
I tried the mount command without any options, and it just gets to the timeout faster...
As for mountd... Code:
# ps -aux | grep mountd |
Well, I don't know what I did to screw Red Hat up, but I installed Mandrake on another drive I was planning to put LFS on. The short version is, NFS works using Mandrake.
I'm sure other folks got Red Hat going on the first try, but since Mandrake didn't cause me any grief, it's going to stay on the machine, and the Red Hat drive will become the future LFS. I appreciate the help. |
| All times are GMT -5. The time now is 10:49 PM. |