Operating System - HP-UX
1752793 Members
5794 Online
108789 Solutions
New Discussion юеВ

Re: How to restart NFS server safely

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to restart NFS server safely

Hi All,

I am using HP-UX 11.11, NFS service are running on that.

Now i want to add some new NFS shares in /etc/exports file. so that i have to restart the NFS service running.

I have some following questions on restarting NFS service:

1)How to view what are the NFS clients are accessing NFS shares available in NFS server?


2)What happen if we are restarting the NFS server while NFS client is accessing some NFS shares?

3)Will the NFS mount points of NFS client automatically connect to NFS server after restarting the NFS server?


4)How to restart the NFS server safely? what are the commands to be used.

31 REPLIES 31
Michal Kapalka (mikap)
Honored Contributor
Solution

Re: How to restart NFS server safely

hi,

just add lines ( entries ) to the /etc/exports and use command exportfs -va

the server will automaticaly using new settings without restarting of the NFS server.

on the client side add the entries to the /etc/fstab and mount -a or youst mount it manually.


mikap
Michal Kapalka (mikap)
Honored Contributor

Re: How to restart NFS server safely

hi,

showmount -e hostname_of_nfs_server

will show you wich FS are exported for which hosts, and which access privileges.

mikap
senthil_kumar_1
Super Advisor

Re: How to restart NFS server safely

1)So if we are using "exportfs -a", the existing NFS mount will not be disconnected? am i correct?


2)But if we are restarting NFS, then all the NFS mounts will be disconnected and connected (after some times) automatically? am i correct?
Pete Randall
Outstanding Contributor

Re: How to restart NFS server safely

1) correct

2) sounds more like NFS with automounter - NFS by itself will not mount/dismount automatically.


Pete

Pete
senthil_kumar_1
Super Advisor

Re: How to restart NFS server safely

what is the purpose of the service NFSLOCK.
Johnson Punniyalingam
Honored Contributor

Re: How to restart NFS server safely

It handles file locking for remote and local NFS requests.

Have a look at the rpc.lockd manual page for details
Problems are common to all, but attitude makes the difference
Steven E. Protter
Exalted Contributor

Re: How to restart NFS server safely

Shalom,

NFS Lock handles file locking for NFS. NFS file locking in version three of NFS is not very reliable. NFS version 4, which is only available on 11.31 HP-UX handles file locking efficiently.

sEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michal Kapalka (mikap)
Honored Contributor

Re: How to restart NFS server safely

Steven Schweda
Honored Contributor

Re: How to restart NFS server safely

> check the man page :
> [...]

Who thinks that a "man" page for an obsolete
version of Tru64 is the best source of
information for "HP-UX 11.11"?