Rcnfs start and rcnfs stop

On a SUSE system, the operation of the NFS client is treated as a service and has its own startup scripts in /etc/init.d and the related command rcnfs. The commands rcnfs start and rcnfs stop (run as root) start and stop the NFS client service and mount and unmount (if possible) any NFS shares that are included in /etc/fstab. The unmounting fails if the mount point is in use. If the service nfs is not set to start in runlevels 3 and 5, the Network File Systems specified in /etc/fstab will not be imported until one of the commands — rcnfs start or mount -a — is issued (as root).

| r - - r You need the nfs service to be able to mount and unmount any NFS shares that are - - ~ ■ included in /etc/fstab at boot time. It does not need to be running to do one-off NFS mounts from the command line.

If the NFS client service is set to start in its default runlevels, it will take a long time to time out if, for some reason, the server is unavailable when the client machine boots; this can be avoided by adding the option bg (for background) to the options in /etc/fstab. In this case, if the first mount attempt fails, it continues to try to do the mount in the background rather than making everything else wait until timeout occurs. The line you need in /etc/fstab might look like this:

bible:/test /testmount nfs rw,bg 0 0

Was this article helpful?

0 0

Post a comment