Sun One Messaging Server 5.2升级到sp2及问题!

某邮件系统的mmp经常无故crash,分析总结大量日志,遍查各种文档,仍未找到问题所在。
将coredump起来后(涉及命令 coreadm、ulimit 等),递请Sun工程师查证。结果为bug,如果是6.0 or later版本,需要打118207补丁,至少为118207-51 ,如果是ims5.2,则需要patch到最新,即ims52sp2,但Sun也不确定是否能解决该问题,建议联系tech support。
另外Sun工程师还提到可以使用6.0的mmp。

我决定首先尝试前者:升级ims到sp2。
下载、解压、安装,一切顺利。(安装时需停止所有ims服务!并用root权限安装)
但启动时失败,报错如下:
bash-2.03# ./start-msg
Starting ENS daemon
/rmail/mail/mail: Starting STORE daemon …Fatal error: must run command as the messaging server user
…………..failed.
ERROR: Failed to find process file after 90 seconds:
/rmail/pnmsmail/mail/msg-mail/config/pidfile.store
Unable to verify if the STORE daemon started.
Check the log file(s) under:     /rmail/mail/mail/msg-mail/log/default
ERROR: The following services failed to start, or were already:
        STORE daemon

ERROR: Unable to verify start of STORE daemon for:
/rmail/mail/mail
  Do NOT attempt an immediate restart.  The STORE daemon may
have started, but has not finished initializing.
  Check the process list for the ‘stored’ process; if it exists
do not attempt to restart the server until the following file exists:
/rmail/mail/mail/msg-mail/config/pidfile.store
  You may also wish to check the log file(s) under:
        /rmail/mail/mail/msg-mail/log/default
经查,各种权限均无问题。
使用perl imspatch.pl –u 卸载后启动恢复正常。
之后尝试安装ims52sp1,安装、启动也正常。
在sp1基础上安装sp2,仍然报同样的错误。
经过仔细查找,发现可能是sp2的一个bug,即在实例中有2个位置存在stored程序: %instance-root%/bin/msg/store/bin/stored%instance-root%/bin/msg/admin/bin/stored ,但sp2升级时只升级前者,而./start-msg 时实际上调用的是后者。
因此尝试将后者删除,并ln -s到前者,再次启动,无异常了。
两个问题均不常见,而且其解决都是通过分析coredump和对程序进行跟踪(truss等),这对于初级系统管理员来说难度很大,虽然可以通过购买sun tech support来解决,但这需要与sun签署服务合同。在无法获得tech support帮助的前提下,sun的论坛是解决问题的很好途径。

2 thoughts on “Sun One Messaging Server 5.2升级到sp2及问题!

  1. 您好,我使用的是ims5.2,请问为什么我在用mboxutil命令删除用户邮箱的时候提示must run command as the messaging server user?望请赐教 不胜感激

    1. 可能是你使用的用户权限不对,需要su到安装ims时填写的用户权限,而不是root或其他。通常用户名为mailsrv或mail.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注