You can minimize logging for the Data Links File System Filter (DLFF) Installation by changing the dlfs_cfg file. The dlfs_cfg file is passed to strload routine to load the driver and configuration parameters. The file is located in the /usr/lpp/db2_07_01/cfg/ directory. Through a symbolic link, the file can also be found in the /etc directory. The dlfs_cfg file has the following format:
d <driver-name> <vfs number> <dlfm id> <global message priority> <global module priority> - 0 1
where:
A real-world example might look as follows:
d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,255,-1 - 0 1
The messages that are logged depend on the settings for the global message priority and global module priority. To minimize logging, you can change the value for the global message priority.
There are four message priority values you can use:
#define LOG_EMERGENCY 0x01 #define LOG_TRACING 0x02 #define LOG_ERROR 0x04 #define LOG_TROUBLESHOOT 0x08
Most of the messages in DLFF have LOG_TROUBLESHOOT as the message priority. Here are a few alternative configuration examples:
If you do require emergency messages and error messages, set the global message priority to 5 (1+4) in the dlfs_cfg configuration file:
d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,5,-1 - 0 1
If only error messages are required, set the global message priority to 4:
d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,4,-1 - 0 1
If you do not require logging for DLFS, then set global message priority to 0:
d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,0,-1 - 0 1
If you need to log emergency, error, and troubleshooting messages after installation, you must modify the dlfs_cfg file. The dlfs_cfg file is located in the /usr/lpp/db2_07_01/cfg directory. The global message priority must be set to 255 (maximum priority) or to 13 (8+4+1). Setting the priority to 13 (8+4+1) will log emergency, error, and troubleshooting information.
After setting the global message priority, unmount the DLFS filter file system and reload the dlfsdrv driver to have the new priority values set at load time. After reloading the dlfsdrv driver, the DLFS filter file system must be re-mounted.
|The file dlfs_cfg does not exist on Sun(TM) Solaris(TM) systems. |Instead, the system file /etc/syslog.conf contains the |information used by the system log daemon (syslogd) to forward a system |message to the appropriate log files. You can minimize logging for the |DLFF Installation by commenting out the entries for kern.notice and |kern.debug in /etc/syslog.conf. You must then |stop and start syslogd to make your changes take effect.
|To reactivate the logging of all the kernel notices and errors, you must |uncomment the entries for kern.notice and kern.debug in |/etc/syslog.conf, and then stop and start syslogd |again.