Solaris Volume Manager Administration Guide

Configuring the mdmonitord Command for Periodic Error Checking

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.

ProcedureHow to Configure the mdmonitord Command for Periodic Error Checking

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.

  1. Become superuser.

  2. 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
                    case $error in
                    0)      ;;
                    *)      echo "Could not start $MDMONITORD. Error $error."
  3. 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).