分类:
2005-10-19 10:58:27
The following task map identifies the procedures that are needed to manage error reporting for solaris volume manager:
1,configure the mdmonitord daemon to periodically check for errors:
configure the error-checking interval used by the mdmonitord daemon by editing the /lib/svc/method/svc-mdmonitor script
2,configure the solaris volume manager SNMP agent:
edit the configuration files in the /etc/snmp/conf directory so that solaris volume manager will throw traps appropiately, to the correct system
3,monitor solaris volume manager with scripts run by the cron command:
create or adapt a script to check for errors, then run the script from the cron command
solaris卷管理器包括/usr/sbin/mdmonitord进程,当磁盘发生错误的时候,solaris卷管理器就检测故障并生成一个错误记录,这个错误记录直接触发mdmonitord进程执行对RAID-1卷以及RAID-5卷以及热插拔组件的检查
可以通过编辑/lib/svc/method/svc-mdmonitor脚本来添加一段时间间隔来进行定期检查,具体步骤:
1,成为超级用户
2,打开/lib/svc/method/svc-mdmonitor脚本,定位到下面的部分:
$MDMONITORD
error=$?
case $error in
0) exit 0
;;
*) echo "Could not start $MDMONITORD. Error $error."
exit 0
3,添加检查的时间间隔:
$MDMONITORD -t 3600
error=$?
case $error in
0) exit 0
;;
*) echo "Could not start $MDMONITORD. Error $error."
exit 0
;;
esac
4,重启mdmonitord命令来激活所作的变化
# svcadm restart system/mdmonitor