Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
I try to mount a share from either Hermes or Deimos with the following command:
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?
Anyway, here's the result of the command you suggested:
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:
mount: RPC: Timed out
Using the mount command with the tcp option returns:
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:
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?
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?
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.
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 11:49 AM.
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...