errdemon 进程持续检查 /dev/error 文件,收集error信息。
命令格式:
- Usage:
 - errdemon -i filename -s value -B value [ -d | -D -m maxdups -t time ] | -l
 - -i filename Uses the error log file specified by the filename parameter.
 - If this flag is not specified, the default system error log file,
 - /var/adm/ras/errlog, is used.
 - -s value Set the error log file maximum size.
 - Valid range is 8192 bytes to your ulimit in bytes.
 - -B value Set the error log file memory buffer size.
 - This must be a minimum of 8192 bytes.
 - -d Turn duplicate checking off.
 - -D Turn duplicate checking on (the default).
 - -m maxdups Maximum accumulated duplicates.
 - -t time Duplicate handling time interval.
 - -l Show the error log attributes.
 
启动:
  
- # /usr/lib/errdemon
 
备注:默认已随系统启动,再次启动提示如下:
0315-100 The error log device driver, /dev/error, is already open.
The error demon may already be active. 修改错误日志文件大小:
- /usr/lib/errdemon -s 1638400
 
修改缓存大小:
- # /usr/lib/errdemon -B 65536
 - 0315-175 The error log memory buffer size you supplied will be rounded up
 - to a multiple of 4096 bytes.
 
结果:
- # /usr/lib/errdemon -l
 - Error Log Attributes
 - --------------------------------------------
 - Log File /var/adm/ras/errlog
 - Log Size 1638400 bytes
 - Memory Buffer Size 65536 bytes
 - Duplicate Removal true
 - Duplicate Interval 10000 milliseconds
 - Duplicate Error Maximum 1000
 
停止命令:
- /usr/lib/errstop
 
转载于:https://blog.51cto.com/hunt1574/1039780