LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-05-2003, 01:50 PM   #1
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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: -------------------------------------
/mnt/shared_net      *(ro,insecure,sync,all_squash)

/etc/hosts.deny: -------------------------------------
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

/etc/hosts.allow: -------------------------------------
portmap: 192.168.0.0/255.255.255.0
lockd: 192.168.0.0/255.255.255.0
rquotad: 192.168.0.0/255.255.255.0
mountd: 192.168.0.0/255.255.255.0
statd: 192.168.0.0/255.255.255.0
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?

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 rpc
rpc        612  0.0  0.2  1484  576 ?        S    Apr27   0:00 portmap
rpcuser    631  0.0  0.2  1528  612 ?        S    Apr27   0:00 rpc.statd
root     28899  0.0  0.2  3272  548 ?        S    02:06   0:00 rpc.rquotad
root     28912  0.0  0.0     0    0 ?        SW   02:06   0:00 [rpciod]
root     28918  0.0  0.3  1808  848 ?        S    02:06   0:00 rpc.mountd
I try to mount a share from either Hermes or Deimos with the following command:
Code:
mount -t nfs -o soft,intr,timeo=20 //alexandria:/mnt/shared_net /mnt/shared_files
The appropriate entry for alexandria is in the /etc/hosts file, and the /mnt/shared_files mount point does exist. When the command is executed, it always times out. I have tried adding the tcp option to the mount command, and I get a different error, but the result is the same.

The network is good because I can ping each machine from any other machine. I just can't figure this one out. Any suggestions?
 
Old 05-05-2003, 04:16 PM   #2
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 224

Rep: Reputation: 30
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?
 
Old 05-05-2003, 09:37 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Original Poster
Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Red Hat may have lied to me about NFS running. To double-check, I ran:
Code:
# ps -aux | grep nfs
root     28903  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
root     28904  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
root     28905  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
root     28906  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
root     28907  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
root     28908  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
root     28909  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
root     28910  0.0  0.0     0    0 ?        SW   02:06   0:00 [nfsd]
That just doesn't seem right...

Anyway, here's the result of the command you suggested:
Code:
Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on Alexandria (192.168.0.3):
(The 1595 ports scanned but not shown below are in state: closed)
Port       State       Service
21/tcp     open        ftp
22/tcp     open        ssh
111/tcp    open        sunrpc
139/tcp    open        netbios-ssn
671/tcp    open        unknown
6000/tcp   open        X11

Nmap run completed -- 1 IP address (1 host up) scanned in 1 second
That suggests even more strongly the NFS daemon is not, in fact, running.

For the sake of being thorough though. The UDP version of mount returns this:
Code:
mount: RPC: Timed out
Using the mount command with the tcp option returns:
Code:
NFS server reported service unavailable: Address already in use
So... it would seem the NFS daemon is not running. However, I haven't messed with NFS at all beyond trying to configure it with these files.

I tried killing off all the NFS processes listed above, and then restarted it using Red Hat's tool:
Code:
service nfs start
No luck though. What the next move? Find all the sources for NFS and its support, compile, and install on top of my existing stuff?
 
Old 05-06-2003, 04:00 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
tried the correct syntax?

mount -t nfs -o options alexandria:/mnt/shared_net /mnt/shared_files
 
Old 05-06-2003, 09:22 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Original Poster
Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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.
 
Old 05-06-2003, 09:35 AM   #6
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 224

Rep: Reputation: 30
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?
 
Old 05-06-2003, 12:45 PM   #7
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

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

Last edited by Dark_Helmet; 05-06-2003 at 12:49 PM.
 
Old 05-06-2003, 07:28 PM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Original Poster
Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
I tried the mount command without any options, and it just gets to the timeout faster...

As for mountd...
Code:
# ps -aux | grep mountd
root     30227  0.0  0.3  1800  840 ?        S    May05   0:00 rpc.mountd
I may sit down and try things reversed: getting on of the other machines to share and try to have Alexandria mount it. If so, then there's something screwy with some other network-related config file...
 
Old 05-07-2003, 10:23 PM   #9
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

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


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
For the love of all....... Red Hat / Prism2 wireless card ||| How To ||| wkm001 Linux - Software 4 12-05-2003 08:12 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 07:33 PM
Why do you love Red Hat? Time Lord Red Hat 19 09-21-2003 06:53 AM
Problem Installing Red Hat 9 via NFS jjp001 Linux - Newbie 0 09-15-2003 10:15 AM
nfs client red hat computera Linux - Networking 1 09-27-2002 12:55 AM


All times are GMT -5. The time now is 08:15 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration