Solaris Volume Manager includes the /usr/sbin/mdmonitord daemon, which is a program that checks Solaris Volume Manager volumes for errors. By default, this program checks all volumes for errors only when an error is detected (for example, through a write error) on a volume. However, you can set this program to actively check for errors at an interval you specify.
The /etc/rc2.d/S95svm.sync script starts the mdmonitord command at boot time. Edit the /etc/rc2.d/S95svm.sync script to add a time interval for periodic checking.
Edit the /etc/rc2.d/S95svm.sync script and change the line that starts the mdmonitord command by adding a - t flag and the number of seconds between checks.
if [ -x $MDMONITORD ]; then $MDMONITORD -t 3600 error=$? case $error in 0) ;; *) echo "Could not start $MDMONITORD. Error $error." ;; esac fi
Stop and restart the mdmonitord command to activate your changes.
# /etc/rc2.d/S95svm.sync stop # /etc/rc2.d/S95svm.sync start
For more information, see mdmonitord(1M).