- Managing Network File Systems in Oracle Solaris 11.4
- Administering Network File Systems
- Automatic File System Sharing
- How to Enable NFS Server Logging
How to Enable NFS Server Logging
- Become an administrator.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
- Change file system configuration values.
You can change the settings in the
/etc/nfs/nfslog.conf
file in one of the following ways:-
Change the data associated with the
global
tag to edit the default settings for all file systems. -
Add a new tag for the file system.
For information about the format of the
/etc/nfs/nfslog.conf
file, see thenfslog.conf
(5) man page. -
- Define the file systems to use NFS server logging.
Use the
share
command to define each file system. The tag that is used with thelog=
tag option must be specified in the/etc/nfs/nfslog.conf
file.The following example uses the default settings in the
global
tag.# share -F nfs -ro,log=global /export/ftp
- Verify that the options you specified are listed.
For example:
# share -F nfs export_share_man /export/share/man sec=sys,ro usr_share_src /usr/src sec=sys,rw=eng export_ftp /export/ftp public,log=global,sec=sys,ro
- Verify that the NFS log daemon,
nfslogd
, is running.# ps -ef | grep nfslogd
- Check the status of the
nfslogd
daemon.# svcadm restart network/nfs/server:default