1827723 Members
2874 Online
109968 Solutions
New Discussion

NFS Client not starting

 
Suni Raj
Advisor

NFS Client not starting

One of my NFS client is giving the error when I try to start the NFS client:

# /sbin/init.d/nfs.client start
starting NFS CLIENT networking

starting up the rpcbind
rpcbind already started, using pid: 28068
starting up the BIO daemons
biod(s) already started, using pid(s): 28202 28211 28201 28203 28200 28204 28214 28206 28210 28208 28215 28207 28212 28205 28213 28209
exportfs error: nothing to export.
Reading in /etc/exports
starting up the Status Monitor daemon
rpc.statd already started, using pid: 28226
starting up the Lock Manager daemon
rpc.lockd already started, using pid: 28232
starting up the Automount daemon
/usr/sbin/automount -f /etc/auto_master
FAILURE CODE: 2
mounting remote NFS file systems ...
mounting CacheFS file systems ...


Can anyone tell me why this is happening and how to solvde it.

Regards
Raj
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: NFS Client not starting

It seems that when you start the NFS client, it tries to start several related daemons, for example, it checks for /etc/exports (Server side), and also, tries to start autofs, an automounter daemon. Probably, the /etc/auto_master does not exists or is not configured.

What do you want to achieve? Probably, if you correctly set the /etc/fstab file, the NFS file systems should be mounted, as no errors reported when mounting remote NFS file systems.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Suni Raj
Advisor

Re: NFS Client not starting

Could you tell me what I need to add to /etc/fstab file? The application team needs a /net file system to mount. I can cd to the /net, but when I do a ls -l , it shows 0 files.

Raj
anandganjihal
Advisor

Re: NFS Client not starting

If /net directory is under automounter control, when you try to acess it first time automounter will mount it. As i could see FAILURE CODE 2 ( file doesnt exists) first thing you need to check whether automount master map file exists in /etc/auto_master directory.

You may want it manually mounted then follow the following steps:

mount server_name:/net_related_dir_exported /net

- Anand
Ivan Ferreira
Honored Contributor

Re: NFS Client not starting

If you have a working client, copy the /etc/auto_master file to this client, if you don't, see:

www.wlug.org/files/automounter.pdf
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
anandganjihal
Advisor

Re: NFS Client not starting

Thanks for the wonderful automount .pdf file location.

- Anand
Ralph Grothe
Honored Contributor

Re: NFS Client not starting

Looks like your thread went to the wrong Forums' section.
The nfs client you are talking about obviously isn't of Linux origin but rather HP-UX.
Anyway, usually for automounted host mounts beneath /net, on the nfs client all that's required is a mapping like this

# grep ^/net /etc/auto_master
/net -hosts -nosuid,soft,nobrowse

also the nfsconf must be prepared to start automounter on the client like so

# grep -E '^(NFS_CLIENT|AUTO)' /etc/rc.config.d/nfsconf
NFS_CLIENT=1
AUTOMOUNT=1
AUTO_MASTER="/etc/auto_master"
AUTO_OPTIONS="-f $AUTO_MASTER"


# /sbin/init.d/nfs.client start
(after the nfs.core) should start the stuff.

# UNIX95= ps -o user,pid,ppid,args -C automountd
USER PID PPID COMMAND
root 901 1 /usr/lib/netsvc/fs/enh_autofs/automountd


On any nfs server export a filesystem to the box where autounter runs.

Then access this export from the nfs client via the /net/ mapping,
and automunter should dutyfully mount the share (if not already mounted).

# ll /net/somehost/opt/ansic
total 48
dr-xr-xr-x 2 bin bin 8192 Oct 10 2002 bin
dr-xr-xr-x 3 bin bin 96 Oct 10 2002 html
dr-xr-xr-x 2 bin bin 96 Oct 10 2002 include
dr-xr-xr-x 2 bin bin 8192 Oct 10 2002 lbin
dr-xr-xr-x 3 bin bin 96 Oct 10 2002 lib
dr-xr-xr-x 3 bin bin 96 Oct 10 2002 newconfig
dr-xr-xr-x 3 bin bin 96 Oct 10 2002 share
dr-xr-xr-x 2 bin bin 8192 Mar 1 09:53 tlinks

# bdf -t nfs
Filesystem kbytes used avail %used Mounted on
somehost:/opt/ansic 1331200 1237288 93224 93% /net/bode/opt/ansic

Madness, thy name is system administration