Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
I have two servers that are connected to my main network (call them Serv 1 and Serv 2). I have a client that's also connected to the same network (call it Client).
I bind a static IP to an existing interface on my primary server (Serv 1) and use that IP address to mount NFS shares by the client. I can read/write/modify and all with no problem.
But say the primary server (Serv1) fails to work and I have to switch to Serv 2. I take the Serv 1 offline and bind the same static IP address to serv 2 and start NFS on that. Although I can ping the serv2 from the client, I can't use the NFS shares (which are identical in every way to the shares on the serv 1). It just gets stuck when I try to access NFS shares on Serv2. Does anybody know what's wrong? Here's the ipcinfor -p output from serv2 that I thought might be useful:
My crystal ball is cracked so everything is fuzzy! So to SWAG;
You should check your '/etc/hosts', '/etc/hosts.allow', and '/etc/hosts.deny'. Don't forget your '/etc/exports' file. Whenever you want to change be sure to update the exportfs.
Code:
excerpt from 'man exportfs';
NAME
exportfs - maintain list of NFS exported file systems
SYNOPSIS
/usr/sbin/exportfs [-avi] [-o options,..] [client:/path ..]
/usr/sbin/exportfs -r [-v]
/usr/sbin/exportfs [-av] -u [client:/path ..]
/usr/sbin/exportfs [-v]
/usr/sbin/exportfs -f
DESCRIPTION
The exportfs command is used to maintain the current table of exported
file systems for NFS. This list is kept in a separate file named
/var/lib/nfs/xtab which is read by mountd when a remote host requests
access to mount a file tree, and parts of the list which are active are
kept in the kernel's export table.
Normally this xtab file is initialized with the list of all file sys-
tems named in /etc/exports by invoking exportfs -a.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.