Operating System - HP-UX
1833329 Members
2931 Online
110051 Solutions
New Discussion

How to configure NFS server?

 
Balakumar M
Frequent Advisor

How to configure NFS server?

Hi All,
How to share a file system in a server? what is ther command to view the shared file system? in HP_UX 10.20 server.

Looking forward for help.

Bala.
Life is a continues learning process
5 REPLIES 5
Jim Mulshine
Frequent Advisor

Re: How to configure NFS server?

To configure NFS server you need to set NFS_SERVER=1 in /etc/rc.config.d/nfsconf. You can start and stop NFS server with...
# /sbin/init.d/nfs.server start
# /sbin/init.d/nfs.server stop

You can see which directories are exported for use by NFS clients with...
# exportfs

Directories that become NFS exported have extries in a file called /etc/exports. See the manual for the command exports...
# man exports
...and then put some entries in the exports file for those directories you want to make available.
Run exportfs again to export these directories...
# exportfs -a

The file /etc/xtab contains a list of all NFS exported directories also...
# cat /etc/xtab
Tom Danzig
Honored Contributor

Re: How to configure NFS server?

To view exported file systems that are currently mounted, use showmount -d.

The follwoing options are available as well:
-a Print all remote mounts in the format name:directory where hostname is the name of the client, and directory is the directory or root of the file system that was mounted.

-e Print the list of exported file systems.
Vincenzo Restuccia
Honored Contributor

Re: How to configure NFS server?

The following command lists file systems mounted by remote hosts:filesystem format.

#showmount -a
hp:/home
Bill McNAMARA_1
Honored Contributor

Re: How to configure NFS server?

SAM works too,
have a look at networked file systems section.

When exporting the filesystems its best to export with verbose mode to check the syntax of /etc/exports
use
exportfs -av

other than that, setup via
/etc/rc.config.d/nfsconf

and

/sbin/init.d/nfs*

Later,
Bill
It works for me (tm)