Operating System - HP-UX
1833752 Members
2539 Online
110063 Solutions
New Discussion

NFS Filesystems not automounting on boot

 
SOLVED
Go to solution
Ian Dennison_1
Honored Contributor

NFS Filesystems not automounting on boot

I have a Server acting as an NFS Client, which is not mounting 2 NFS File systems from 2 Servers on bootup.

There is no message in /etc/rc.log, or /var/adm/syslog/syslog.log. I can mount them manually after the boot quite happily.

Any ideas where to look? Thanks. Ian
Building a dumber user
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: NFS Filesystems not automounting on boot

Hi Ian,

Check /sbin/rc2.d/ if nfs client is started after you have to mount your nfs mounts.

Hope it helps,

Robert-Jan.
Nick Wickens
Respected Contributor

Re: NFS Filesystems not automounting on boot

You have of course got them in /etc/fstab ?
Hats ? We don't need no stinkin' hats !!
T G Manikandan
Honored Contributor

Re: NFS Filesystems not automounting on boot

Do you mean automatically mounting or automounting.

if you need the file system to mount automatically then you can configure automount using the /etc/auto_master
and or you can use the /etc/fstab entries with the soft mount option to mount them.

If you had already configured automount then you need to check whether the entries in the /etc/auto_master map for the file systems


Thanks
Ian Dennison_1
Honored Contributor

Re: NFS Filesystems not automounting on boot

Thanks for quick input.

/sbin/rc2.d/Sxxxnfs.client is configured, /etc/rc.config.d/nfsconf has NFS_CLIENT=0, and AUTO_MOUNTER=1.

The File Systems are present and correct in /etc/fstab.

The thing that I found disconcerting was that I could mount them manually after booting by specifying the mount command and the destination file system.

eg mount /tmp/filesystem1

As far as I have been aware, simply putting the entry in /etc/fstab will mount the FileSystems upon boot - am I wrong?

Share and Enjoy! Ian
Building a dumber user
Pete Randall
Outstanding Contributor

Re: NFS Filesystems not automounting on boot

Ian,

So, I gather that you are trying to use automounter, correct? In that case, any reference to the file system should cause automounter to kick in and do the mount for you. Try, before the filesystem gets mounted, to do a cd to it - i.e. cd /net/joeblowsrvr/filsystem (where '/net' is the mount point configured for automounter, 'joeblowsrvr' is the server name and 'filesystem' is just that). If automounter is functioning properly, the cd should succeed and all the mountpoints from 'joeblowsrvr' should now appear in a bdf command.

Pete

Pete
T G Manikandan
Honored Contributor
Solution

Re: NFS Filesystems not automounting on boot

you are not using the NFS_CLIENT which will use the /etc/fstab and then mount the file system automati'lly.

Here you are using AUTOMOUNT so the entries in the /etc/fstab are not reqd. it just looks at the /etc/auto_master for the mount points.

Thanks
Ian Dennison_1
Honored Contributor

Re: NFS Filesystems not automounting on boot

Eureka!

Tested on a sandbox, found that when NFS_CLIENT and NFS_SERVER are both set to Zero in /etc/rc.config.d/nfsconf, the filesystem will not automount on boot.

Once I specified one or the other, it comes up fine.

Thanks for the help, gurus. Will get another sandbox and start playing with automounter separately.

Share and Enjoy! Ian
Building a dumber user
monasingh_1
Trusted Contributor

Re: NFS Filesystems not automounting on boot

Since NFS client HAS TO BE ENABLES to be able to mount manually and/or using automounter, you HAVE TO ENABLE NFS client by NFS_CLIENT=1 option before trying anything. This will start the nfs client daemons (biod) and boot for nfs mounts.
If the machine is already running , just change NFS_CLIENT=0 to NFS_CLIENT=1 and run:
/sbin/init.d/nfs.client start
to start the client.

NFS_SERVER=1 in not necessaru if the host in question is only mounting the filesystem and not exporting any.

Hope this explains...