博客首页 注册 建议与交流 排行榜 加入友情链接         宝宝相册的专门空间
推荐 投诉 搜索: 帮助

好好学习,天天向SUN

联系方式: leiyu530@163.com
  penguinstorm.cublog.cn

关于作者
姓名:雷宇
昵称:storm
职业:IT
年龄:26
位置:北京
个性介绍:没啥个性
不聊MSN/QQ
本着资源共享的精神,所有文章欢迎转载
|| << >> ||
我的分类


ES222:chapter24-monitoring and error reporting

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

发表于: 2005-10-19,修改于: 2005-10-19 10:58,已浏览788次,有评论0条 推荐 投诉


网友评论
 发表评论