Tuxedo 版本:9.1;
操作系统版本:Red Hat Enterprise Linux Server release 4.7
执行tmshutdown -y时,出现如下告警:
[yebsale@N-YEB-TUX2 yebsale]$ tmshutdown -y
Shutting down all admin and server processes in /app/yebsale/bin/tuxconfig
tmshutdown: internal error: CMDTUX_CAT:766: ERROR: must run on master node
解决思路:
2014年3月14日工作内容:
1、 更新补丁级是否超过059。Tuxedo 9.1补丁级在低于059存在此类BUG。如下为补丁修复解释:
059. CR324969 TUX 9.1 tmshutdown fails with “CMDTUX_CAT:766: ERROR: must run on master node” on HPUX 11iv3
如下为检查结果
[yebsale@N-YEB-TUX2 20140314]$ tmadmin -v
INFO: BEA Tuxedo, Version 9.1, 64-bit, Patch Level 163
INFO: Serial #: 454493271161-2664953090480, Expiration NONE, Maxusers 1000000
INFO: Licensed to: Customer
结果:Tuxedo 9.1已更新最新补丁级 (163);
2、 Tuxedo是否配置为多机模式;
如下为检查结果
[yebsale@N-YEB-TUX2 20140314]$ tmunloadcf
*RESOURCES
IPCKEY 32789
MASTER “directserver_yeb”
UID 501
GID 500
PERM 0666
MAXACCESSERS 400
MAXACLGROUPS 16384
MAXGTT 100
DOMAINID “directA”
MAXGROUPS 100
MAXNETGROUPS 8
MAXMACHINES 256
MAXQUEUES 200
MAXDRT 0
MAXRFT 0
MAXRTDATA 4
MAXSPDATA 111024
MAXSERVERS 200
MAXSERVICES 400
MAXCONV 64
MODEL SHM
结果:Tuxedo 9.1配置为单机模式;
3、 Tuxedo配置文件( ubbconfig)中主机名与操作系统主机名是否一致;
如下为检查结果
root@N-YEB-TUX2 ~]# sysctl -a|grep hostname
kernel.hostname = N-YEB-TUX2
[yebsale@N-YEB-TUX2 20140314]$ tmunloadcf
*MACHINES
“N-YEB-TUX2″ LMID=”directserver_yeb”
结果:Tuxedo配置文件( ubbconfig)中主机名与操作系统主机名一致;
4、 查看Tuxedo启动情况
如下为检查结果
[yebsale@N-YEB-TUX2 yebsale]$ tmboot -y
Booting all admin and server processes in /app/yebsale/bin/tuxconfig
INFO: BEA Tuxedo, Version 9.1, 64-bit, Patch Level 163
INFO: Serial #: 454493271161-2664953090480, Expiration NONE, Maxusers 1000000
INFO: Licensed to: Customer
Booting admin processes …
exec BBL -A :
process id=47935 … Started.
Booting server processes …
exec yeb_ostransaction -A :
process id=47936 … Started.
exec yeb_ostransaction -A :
process id=47937 … Started.
exec yeb_ostransaction -A :
process id=47938 … Started.
exec yeb_ostransaction -A :
process id=47939 … Started.
exec yeb_ostransaction -A :
process id=47940 … Started.
exec yeb_ostransaction -A :
process id=47941 … Started.
exec yeb_ostransaction -A :
process id=47942 … Started.
exec yeb_ostransaction -A :
process id=47943 … Started.
exec yeb_ostransaction -A :
process id=47944 … Started.
exec yeb_ostransaction -A :
process id=47945 … Started.
exec yeb_ostransaction -A :
process id=47946 … Started.
exec yeb_ostransaction -A :
process id=47947 … Started.
exec yeb_ostransaction -A :
process id=47948 … Started.
exec yeb_ostransaction -A :
process id=47949 … Started.
exec yeb_ostransaction -A :
process id=47950 … Started.
exec yeb_ostransaction -A :
process id=47951 … Started.
exec yeb_ostransaction -A :
process id=47952 … Started.
exec yeb_ostransaction -A :
process id=47953 … Started.
exec yeb_ostransaction -A :
process id=47954 … Started.
exec yeb_ostransaction -A :
process id=47955 … Started.
exec yeb_querysvr -A :
process id=47956 … Started.
exec yeb_querysvr -A :
process id=47957 … Started.
exec yeb_querysvr -A :
process id=47958 … Started.
exec yeb_querysvr -A :
process id=47959 … Started.
exec yeb_querysvr -A :
process id=47960 … Started.
exec yeb_querysvr -A :
process id=47961 … Started.
exec yeb_querysvr -A :
process id=47962 … Started.
exec yeb_querysvr -A :
process id=47963 … Started.
exec yeb_querysvr -A :
process id=47964 … Started.
exec yeb_querysvr -A :
process id=47965 … Started.
exec yeb_osdealdata -A :
process id=47966 … Started.
exec WSL -A — -n //172.16.0.11:9997 -m 1 -M 5 -x 3 :
process id=47970 … Started.
exec DMADM -A :
process id=47972 … Started.
exec GWADM -A :
process id=47973 … Started.
exec GWTDOMAIN -A :
process id=47974 … Started.
36 processes started.
结果:Tuxedo 可正常启动;
5、 IPC资源清理情况
如下为检查结果
[yebsale@N-YEB-TUX2 yebsale]$ tmipcrm -y
Looking for IPC resources in TUXCONFIG file /app/yebsale/bin/tuxconfig
The following IPC recources were found:
Message Queues:
15630337
16810021
16777252
15663106
16842790
15695875
16318486
15728644
16646176
16678945
16351255
15761413
16384024
15794182
16711714
16416793
15826951
16449562
15859720
16482331
15892489
16515100
15925258
16547869
15958027
16580638
15990796
16613407
16023565
16056334
16089103
16121872
16154641
16187410
16220179
16252948
16285717
16744483
Shared Memory:
1146885
1114116
1081347
Semaphores:
2097155
2129924
2031618
Removing IPC resources …
done!
使用ipcs查看ipc资源清理情况;
ipcs -s|grep yebsale
ipcs -q|grep yebsale
ipcs -m|grep yebsale
结果:ipc资源已清理干净;
如果还有,执行ipcrm删除;
关闭脚本:
kill -9 `ps -u lmgse |awk ‘{print $1}’` 1>/dev/null 2>/dev/null
kill -9 `ps -u lmgs |awk ‘{print $1}’` 1>/dev/null 2>/dev/null
for x in `ipcs -m | grep lmgs|awk ‘{print $2}’`
do
ipcrm -m $x
done
for y in `ipcs -s | grep lmgs|awk ‘{print $2}’`
do
ipcrm -s $y
done
for z in `ipcs -q | grep lmgs|awk ‘{print $2}’`
do
ipcrm -q $z
done
for x in `ipcs -m | grep lmgse|awk ‘{print $2}’`
do
ipcrm -m $x
done
for y in `ipcs -s | grep lmgse|awk ‘{print $2}’`
do
ipcrm -s $y
done
for z in `ipcs -q | grep lmgse|awk ‘{print $2}’`
do
ipcrm -q $z
done
执行tmboot -y 后,再执行tmshutdown -y,问题解决。
--转自搜狗