LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-31-2008, 07:29 PM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Rep: Reputation: 15
NFS mounting problem


Hi guys,

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:

root /home/alireza Localhost# rpcinfo -p

program vers proto port

100000 2 tcp 111 portmapper

100000 2 udp 111 portmapper

100003 2 udp 2049 nfs

100003 3 udp 2049 nfs

100021 1 udp 32790 nlockmgr

100021 3 udp 32790 nlockmgr

100021 4 udp 32790 nlockmgr

100003 2 tcp 2049 nfs

100003 3 tcp 2049 nfs

100021 1 tcp 48599 nlockmgr

100021 3 tcp 48599 nlockmgr

100021 4 tcp 48599 nlockmgr

100005 1 udp 855 mountd

100005 1 tcp 858 mountd

100005 2 udp 855 mountd

100005 2 tcp 858 mountd

100005 3 udp 855 mountd

100005 3 tcp 858 mountd

root /home/alireza Localhost# service nfs status

rpc.mountd (pid 17639) is running...

nfsd (pid 17635 17634 17633 17632 17631 17630 17629 17628) is running...



Thanks !
 
Old 07-31-2008, 11:36 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

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.
 
Old 08-01-2008, 12:46 AM   #3
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 334

Rep: Reputation: 30
run exportfs -rv
 
Old 08-01-2008, 12:59 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Try showmount on the server, to see what is going on.
 
  


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
nfs mounting problem jkeertir Linux - Newbie 3 04-01-2008 01:24 AM
nfs mounting problem jkeertir Linux - Server 1 03-29-2008 05:02 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
nfs mounting problem Frustin AIX 5 02-04-2005 12:29 PM
Mounting NFS Problem Help!! Sabeer Linux - Networking 4 05-21-2003 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 PM.

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