tuxedo 常見問題總結

tuxedo 常見問題總結

1. 非圖形界面下的安裝
./tuxedo81_aix_32bit.bin -i console 加入 -i console則不需要圖形支持

2.察看版本和patch信息
$TUXDIR/bin/tmadmin -v

3.對ubb文件只做語法檢查(不真正的load成TUXCONFIG 真正tmloadcf -y)
tmloadcf -n ubb  

4.tmboot/tmshutdown中的幾個參數介紹
-A 只啓動/停止Tuxedo管理服務,如BBL
-S 所有服務被啓動/停止
-g grpname 只啓動/停止屬於制定組名的服務
-i svrid 只啓動/停止制定ServID的服務
-s svrname 只啓動/停止制定服務名的服務

5. tuxedo有關域(domain)管理的命令
$ dmadmin
>pd -d LocalTUXDomainID 顯示與本地域關聯的其他域
>co -d LocalTUXDomainID -R RemoteDomainID 手動連接遠程域

6.如何清除IPC資源
如果你不想用tmshutdown停止或者當$TUXCONFIG文件被誤刪除而無法shutdown TUXEDO服務時,可以嘗試直接刪除當前用戶的ipc資源,如下:
ipcs | grep `logname` | awk '{print "ipcrm -"$1,$2}' |sh -x

7.反編譯tuxconfig 生成 ubb文件
a) tmunloadcf 查看當前TUXCONFIG中的ubb內容
b) export TUXCONFIG=`pwd`/tuxconfig 比較簡單的設置TUXCONFIG的命令

8.Tuxedo非正常狀態下的關閉
1) 執行tmshutdown -y,如果shutdown不成功,轉入下一步(此時一般來說,TUXEDO的狀態已經處於
不正常了)。
2)執行tmipcrm -y,如果shutdown不成功,轉入下一步。
3)要用到AWK,所以要求在Unix下,或者在WINDOWS下裝了Cygwin。
3)執行ipcrm `ipcs|grep $USER|awk '{print " -"$1" "$2}'`。
執行了3)肯定就可以關閉掉了。
一般情況下,我也懶得那麼麻煩,在非生產機上經常來一個killall -9,將該用戶所有的進程都殺掉。

9.隱藏顯示服務
隱藏服務
unadvertise (unadv) {-q qaddress [-g groupname] [-i srvid] |
-g groupname -i srvid} service
顯示服務
advertise (adv) {-q qaddress [-g groupname] [-i srvid] | -g groupname -i srvid}
service[:func]

上面兩個命令只能在單獨登錄tmadmin時使用。
重複登錄tmadmin後出現
TMADMIN_CAT:199: WARN: Cannot become administrator.Limited set of commands available.
提示不能使用上面命令。

10.sh命令直接執行tuxedo操作

$echo pclt |tmadmin
$echo pq |tmadmin |grep Machine

11.WSL配置參數
WSL的配置重點要注意其CLOPT中幾個關鍵參數的指定:
-m, -M, -x, WSH啓動的最大、最小個數,及每個WSH可同時處理的併發請求數,
"-M" * "-x" = MAXWSCLIENTS;
-I, 客戶端與服務器端建立連接的超時時間;
-N, 客戶端發起請求的響應超時時間;
-T, 客戶端在與服務器端建立連接後,允許最大的空閒時間;
-H, 穿防火牆時,防火牆的ip
-p, WSH分配的起始端口
-P, WSH分配的結束端口。 -p 9901 -P 9915 指定端口範圍 9901-9915

12.UBB文件中MAX。。的配置
MAXWSCLIENTS <= Tuxedo license
MAXSERVERS = SUM (MAX setting of servers)
MAXACCESSERS = (MAXSERVERS+MAXWSCLIENTS) * 117%

 

 

FAQ

問題:
ULOG: 105143.test1!tmadmin.12238.1.-2: LIBTUX_CAT:577: ERROR: Unable to register because the slot is already owned by another process
$ tmadmin
tmadmin - Copyright (c) 1996-1999 BEA Systems, Inc. Portions * Copyright 1986-1997 RSA Data Security, Inc. All Rights Reserved. Distributed under license by BEA Systems, Inc. Tuxedo is a registered trademark. TMADMIN_CAT:199: WARN: Cannot become administrator.Limited set of commands available.
原因:重複打開tmadmin管理,在重複打開的tmadmin中個別命令不能使用,通過help命令可以看到當前可以使用的命令。
-------------------------------------
問題:
174304.test1!WSH.20044.1.0: gtrid x0 x47fb1049 x16e: LIBTUX_CAT:1288: ERROR: File transfer creat failed, file=/var/tmp/TUXAAAa200441, errno=不允許 174304.test1!WSH.20044.1.0: gtrid x0 x47fb1049 x16e: WSNAT_CAT:1042: ERROR: tpcall() call failed, tperrno = 7
原因:
1288 ERROR: File transfer creat failed, file=filename, errno=errno_val
DESCRIPTION
The UNIX kernel call creat () failed on filename. This temporary file was being created to transfer a large message between two TUXEDO System processes on the same machine.
ACTION
Check temporary directory's permissions. Check disk space and inode counts for the temporary file system.
-------------------------------------
問題:
105516.test0!TMUSREVT.17177.1.0: gtrid x0 x48105214 xe: CMDTUX_CAT:3129: ERROR: tpenqueue() to qname PAYQUE failed for event EVT_PLC_EFFT tperrno=24
原因:PAYQUE隊列沒有建立,用qmadmin創建隊列。
-------------------------------------
問題:
103331.test1!dydealtasksrv.21551.1.0: ERROR: msgsnd err: (LIBTUX_CAT:669: ERROR: Message operation failed because of the invalid message queue identifier) errno=22,qid=208507,buf=-9223372032559197904,bytes=293,flag=2048 103331.test1!dydealtasksrv.21551.1.0: LIBTUX_CAT:1286: ERROR: tpreturn could not send reply TPEOS - operating system error

原因:隊列沒有找到,可能是前臺在後臺返回前斷開了服務連接,所以tpreturn時找不到
接收消息隊列。或是其他原因導致隊列被刪除如 ipcrm -q qid
---------------------------------
問題:

101503.lf2qjf2!TUXAGENT.17788: LIBTUX_CAT:536: ERROR: Unable to create request queue 101503.lf2qjf2!TUXAGENT.17788: LIBTUX_CAT:248: ERROR: System init function failed, Uunixerr = : msgget: No space left on device

原因:達到OS系統最大消息上限。使用ipcs -q|wc -l 查看當時建立得消息隊列。
使用kmtune|grep msgmni 查看系統消息上限。
-----------------------------------------------------------------
問題:

111756.test1!BBL.23626.1.0: 12-11-2008: Tuxedo Version 8.1, 64-bit, Patch Level (none)
111756.test1!BBL.23626.1.0: LIBTUX_CAT:1000: ERROR: System clock has been reset to prior time. Reset again to time after Thu Dec 11 11:17:56 2008
.
111756.test1!BBL.23626.1.0: LIBTUX_CAT:248: ERROR: System init function failed, Uunixerr =
111756.test1!BBL.23626.1.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
111756.test1!tmboot.23625.1.-2: 12-11-2008: Tuxedo Version 8.1, 64-bit
111756.test1!tmboot.23625.1.-2: CMDTUX_CAT:825: ERROR: Process BBL at ANNT_TEST failed with /T tperrno (TPESYSTEM - internal system error)
111756.test1!tmboot.23625.1.-2: WARN: No BBL available on site ANNT_TEST.
Will not attempt to boot server processes on that site.

原因:系統修改OS時間導致,重新創建TLOG 日誌後此問題解決。
crdl 、crlog
------------------------------------------
問題:

ERROR: File transfer creat failed, file=/var/tmp/TUXAAAa248801, errno=Permission denied
122459.test1!Grant.24880.1.0: LIBTUX_CAT:1286: ERROR: tpreturn could not send reply TPEOS - operating system error

原因:服務器多用戶tuxedo環境時,創建的tmp裏的文件已經存在,重啓解決此問題。

發佈了2 篇原創文章 · 獲贊 4 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章