- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to restart NFS server safely
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 04:37 AM
тАО12-09-2009 04:37 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 04:53 AM
тАО12-09-2009 04:53 AM
Solutionjust 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 04:54 AM
тАО12-09-2009 04:54 AM
Re: How to restart NFS server safely
showmount -e hostname_of_nfs_server
will show you wich FS are exported for which hosts, and which access privileges.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 05:51 AM
тАО12-09-2009 05:51 AM
Re: How to restart NFS server safely
2)But if we are restarting NFS, then all the NFS mounts will be disconnected and connected (after some times) automatically? am i correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 05:54 AM
тАО12-09-2009 05:54 AM
Re: How to restart NFS server safely
2) sounds more like NFS with automounter - NFS by itself will not mount/dismount automatically.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 05:37 AM
тАО12-10-2009 05:37 AM
Re: How to restart NFS server safely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 05:44 AM
тАО12-10-2009 05:44 AM
Re: How to restart NFS server safely
Have a look at the rpc.lockd manual page for details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 05:47 AM
тАО12-10-2009 05:47 AM
Re: How to restart NFS server safely
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 05:49 AM
тАО12-10-2009 05:49 AM
Re: How to restart NFS server safely
check the man page :
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN8/0209____.HTM
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 05:59 AM
тАО12-10-2009 05:59 AM
Re: How to restart NFS server safely
> [...]
Who thinks that a "man" page for an obsolete
version of Tru64 is the best source of
information for "HP-UX 11.11"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 06:10 AM
тАО12-10-2009 06:10 AM
Re: How to restart NFS server safely
yes you have right, my misteak,
in the attachment you will find the man page.
sorry for my wrong response.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 07:15 AM
тАО12-10-2009 07:15 AM
Re: How to restart NFS server safely
you can check it this way:
# showmount -a
>2)What happen if we are restarting the NFS server while NFS client is accessing some NFS shares?
the client will report a stale NFS file handle, and then you must forcibly umount the share, or you should start serving NFS again on the server
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 09:17 AM
тАО12-10-2009 09:17 AM
Re: How to restart NFS server safely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 11:20 AM
тАО12-10-2009 11:20 AM
Re: How to restart NFS server safely
No, this locking is only for writing. Concurrent acces is permitted, but only one can write to the file at once. Before every write this logfile will be stat'ed, if it fails then it cannot be written to the file.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 11:20 AM
тАО12-10-2009 11:20 AM
Re: How to restart NFS server safely
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 05:38 AM
тАО12-14-2009 05:38 AM
Re: How to restart NFS server safely
I have configured NFS server in HP-UX 11.31.
I have done following steps:
1)Created NFS share entry in /etc/exports on sys1 (host name of NFS server):
# vi /etc/exports
/var -root=sys3:sys2
2)Restarted NFS services needed for NFS server:
# /sbin/init.d/nfs.core start
Starting NFS CORE networking
Starting up the rpcbind
/usr/sbin/rpcbind
# /sbin/init.d/lockmgr start
Starting up the Status Monitor daemon
rpc.statd already started, using pid: 987
Starting up the lock manager daemon
/usr/sbin/rpc.lockd
# /sbin/init.d/nfs.server start
Starting NFS SERVER subsystem
Reading in /etc/dfs/dfstab
Starting up the mount daemon
/usr/sbin/rpc.mountd
Starting up the NFS server daemon
/usr/sbin/nfsd
Starting up nfsmapid daemon
/usr/sbin/nfsmapid
3)Now i have executed the below command to view the NFS shares in NFS server (sys1):
# showmount -e
no exported file systems for emdlaghpvm05
# showmount -a
4)Then i executed the below command since the NFS shares are not shown by "showmount -e":
# exportfs -va
shareall -F nfs
5)I am getting below mentioned error while mounting NFS share from NFS client (sys3):
# mount -F nfs sys1:/var /nfs
nfs mount: sys1:/var: Permission denied
How to solve this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 06:39 AM
тАО12-14-2009 06:39 AM
Re: How to restart NFS server safely
As this is 11.31 you need to use the /etc/dfs/dfstab insted of /etc/exports
add the entries in the /etc/dfs/dfstab as follows:
share -F nfs /var -o root=sys1:sys2
save and exit
exportfs -au
exportfs -a
make sure that on the nfs server as well as the nfs clients the /etc/hosts have the each others entries.
if you /etc/exports there and want to convert the saem to the /etc/dfs/dfstab format, just run the commands as
exportfs -au
exp2dfs
exportfs -a
showmount -e
make sure the nfs server and the nfs clients have each others entries in the /etc/hosts file.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 06:39 AM
тАО12-14-2009 06:39 AM
Re: How to restart NFS server safely
As this is 11.31 you need to use the /etc/dfs/dfstab insted of /etc/exports
add the entries in the /etc/dfs/dfstab as follows:
share -F nfs /var -o root=sys1:sys2
save and exit
exportfs -au
exportfs -a
make sure that on the nfs server as well as the nfs clients the /etc/hosts have the each others entries.
if you /etc/exports there and want to convert the saem to the /etc/dfs/dfstab format, just run the commands as
exportfs -au
exp2dfs -- this shall convert the /etc/export entries to /etc/dfs/dfstab entries.
exportfs -a
showmount -e
make sure the nfs server and the nfs clients have each others entries in the /etc/hosts file.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 07:21 AM
тАО12-14-2009 07:21 AM
Re: How to restart NFS server safely
showmount -e localhost
To see after all these changes you have made have altered your NFS shares.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 07:53 AM
тАО12-14-2009 07:53 AM
Re: How to restart NFS server safely
What about the options like root, rw, ro, anon, aync.
Could you please explain about what those options are meaning in /etc/dfs/dfstab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 08:04 AM
тАО12-14-2009 08:04 AM
Re: How to restart NFS server safely
this file list the local resources to be shared at the boot time
configures NFS Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 08:08 AM
тАО12-14-2009 08:08 AM
Re: How to restart NFS server safely
=*************
used under both side NFS Server and NFS client
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 08:17 AM
тАО12-14-2009 08:17 AM
Re: How to restart NFS server safely
rw= read & write
ro = read only
anon=uid. If a request comes from an unknown user
async ├в Allows the server to write data at non-regular intervals. This setting works best if the exported file system is read-only. If the exported file system is read/write and hosts are making changes to the file system when the server crashes, data can be lost. By specifying the sync option, all file writes are committed to the disk before the write request by the client is completed. The sync option, however, can lower performance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 09:37 AM
тАО12-14-2009 09:37 AM
Re: How to restart NFS server safely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2009 10:05 AM
тАО12-14-2009 10:05 AM
Re: How to restart NFS server safely
You cannot export a directory and its ancestor or descendant, if they are
on the same disk or logical volume. For example, if you are exporting the
root directory (/), you cannot also export /opt, unless / and /opt are on
different disks or logical volumes. Likewise, if you are exporting
/opt/frame, you cannot also export /opt unless /opt/frame and /opt
are on different disks or logical volumes. However, if a directory and its
ancestor or descendant are on different disks or logical volumes, and you
want to export both of them, you must export them using two separate
entries in /etc/exports. Use the bdf(1M) command to determine
whether your file systems are on different disks or logical volumes. Each
line in the bdf output is a separate disk or volume that requires its own
entry in /etc/exports if you want to export it.
But i tried in Linux (Redhat), on that i am able to export export a directory and its ancestor or descendant, if they are
on the same disk or logical volume.
So only HP-UX we can not do this, am i correct?