Use the following procedures to configure StorNext log rolling options.
Use this procedure to change the frequency of rolling the StorNext logs. This process requires that you edit the tldm crontab to set log times. Use this procedure to edit tdlm crontab.
- Log on as root.
Edit the tdlm crontab and update the sn_log_update script. Below is an example crontab, where 0 1,7,13,19 * * * designates the times when logs run.0 1,7,13,19 * * * /usr/adic/guib/bin/cmdwrap /usr/adic/util/sn_log_update /usr/adic
You can change these options to optimize log rolling.
-s: This option sets the directory where logs are saved (copied) to as they are rolled. This directory is typically a managed directory, where <dir> is the directory where you want the logs to reside. For example:sn_log_update [-s <dir>]
- $DEF_SIZE = 2000000: This is the default size at which logs are rolled. Edit this entry in the /usr/adic/util/sn_log_update.cfg file if you want the log sizes to be larger or smaller.
- $DEF_LOGS = 28: This is the default number of logs that are saved before they are deleted. Edit this entry in the /usr/adic/util/sn_log_update.cfg file if you want to save less than 28 logs or are saving the logs to a managed directory.