Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5593064
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类:

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

阅读(2435) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~