LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-28-2003, 11:39 AM   #1
woodwarh
LQ Newbie
 
Registered: Nov 2003
Posts: 11

Rep: Reputation: 0
NFS Services Startup Problem


I have only a minimal knowledge of Linux/Unix so please bear with me.

I am trying to fix a problem at work. The problem is primarily with NFS services freezing up the system when it tries to load automatically. It may also be related to a possible problem with NISPlus and/or the system time.

This is a Redhat 9.0 system running the 2.4.20-8 kernal. as far as the services that may be involved, Redhat set the automatic startup priorities (run level 5) to 20 for autofs, 27 for nisplus and 60 for nfs services.

The first indication of a possible problem occurs when autofs starts. It indicates that it has started OK, but goes on to state: "Starting automount: name not served by this server. At this same point it used to state: "Starting automount: auto_home.org_dir: error in RPC subsystem". I'm not sure what caused the change. I still sometimes get the later error when trying to manually start autofs.

Next when NFS services tries to start, the system seems to stop. I then use CTRL-ALT-DEL to do a gracefull shutdown, boot in interactive mode and choose not to load NFS services.

When the system finishes loading Redhat, frequently the time is off by about eight hours and sometimes it reverts to the previous day. I have the timezone set to Pacific (correct for this location) have reset the date/time frequently from inside Gnome and also, frequently I have reset the date/time in the BIOS setup program.I do not have the time service enabled.

This system is only an NISplus client. It is not an NISplus server. It is however a DHCP server, and holds most of the home directories for the network.

The last time that I manually got everything started I:

1. Stopped, then started the nisplus service
2. Stopped, then started the nfs service
3. Stopped, then started autofs

At that time these restarted with no errors. I know from past experience, if I reboot the system will "hang" again.

Any ideas?

Thanks in advance, for any/all help.
 
Old 12-05-2003, 06:21 AM   #2
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
Not sure if this will help you, but here are my notes on NFS.

NFS Configuration:

On the server or sharing computer--

1) Configure the files or directories you want to export this is done in the
/etc/exports file.
The file contents indicate the dir/files to share.

FILE FORMAT: DIR HOST(options) # Comments

EXAMPLE: /home laptop(rw) # share with laptop
/home 10.0.0.11(rw) # share with ip address
/home 192.168.1.0/25.255.255.0 # with network
/home domain.my.domain # share with domain

2) Turn on NFS:
To enable it on next boot use: # chkconfig nfs on
enables file locking # chkconfig nfslock on

To enable it without boot use: # /etc/init.d/nfs start
# /etc/init.d/nfslock start

3) Edit the /etc/hosts file to list all hosts on the domain to be able th share
by name.

4) export the newly created share by issuing
# /usr/sbin/exportfs -a -v

On the clients or computers to be shared with--

5) Create a mount point for the share this can be done anywhere. Use /mnt.
Create a new directory in /mnt ( # mkdir /mnt/server )

6) Test the mount point by mounting the new share.
mount server:/home /mnt/server

Or with options:
mount -o rw,bg,intr,soft server:/home /mnt/server

To mount the export automatically in NFS:
7) Edit the /etc/fstab file.

FILE FORMAT:
host:directory mountpoint nfs options 0 0

Example:
server:/home /mnt/server nfs rw,bg,intr,soft 0 0

***Always remember the last two zeros this tells linux not to dump the contents of the file system and not to run fsck on it.
 
  


Reply



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
Windows Services for Unix NFS or Samba flysideways Linux - Networking 0 04-12-2004 10:05 AM
NFS Services do not start at Boot up nishi_k_79 Linux - Networking 4 10-02-2003 07:18 AM
Services startup? mikedderuki Linux - Software 5 09-26-2003 04:44 PM
services(openssh, NFS, syslog) nautilus_1987 Linux - General 10 09-04-2002 06:30 AM
Startup services Road Linux - General 5 06-07-2002 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:49 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
Open Source Consulting | Domain Registration