[分享]redhat 5.4 上使用rhcs搭建was924双机 _VMware, Unix及操作系统讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  VMware, Unix及操作系统讨论区 »
总帖数
2
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 1444 | 回复: 1   主题: [分享]redhat 5.4 上使用rhcs搭建was924双机         上一篇   下一篇 
    本主题由 koei123 于 2015-2-6 4:56:21 移动
liujia
注册用户
等级:上士
经验:283
发帖:26
精华:0
注册:2012-3-15
状态:离线
发送短消息息给liujia 加好友    发送短消息息给liujia 发消息
发表于: IP:您无权察看 2015-1-9 15:03:11 | [全部帖] [楼主帖] 楼主

redhat 5.4 上使用rhcs搭建was924双机,在切换节点的时候,was总是要重新启动若干次才能正常启动!

下面是一些信息:

was启动脚本内容:

[root@js2 ~]# more /etc/init.d/weblogic.sh
#!/bin/sh
# weblogic startscript
# chkconfig: 345 99 99
# description: start or stop weblogic
# /etc/rc.d/init.d/functions
# JDK Configuration
JAVA_HOME=/weblogic/bea/jrockit_150_22
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME CLASSPATH PATH
WLS_LOG_PATH=/var/
export WLS_LOG_PATH
#start weblogic
start() {
      cd /weblogic/bea/user_projects/domains/base_domain/
      rm -f nohup.out
      #nohup ./startWebLogic.sh &
nohup ./startWebLogic.sh >> ${WLS_LOG_PATH}/wls_start.log 2>&1 &
}
#stop weblogic
stop() {
      cd /weblogic/bea/user_projects/domains/base_domain/bin
      ./stopWebLogic.sh
}
case "$1" in
'start' )
start
touch /var/lock/subsys/weblogic
;;
'stop' )
stop
rm -f /var/lock/subsys/weblogic
;;
'status' )
# status weblogic
if ( netstat -atn |grep 7001 && ps -ef|grep -v grep|grep "weblogic" | grep "java" ) &> /dev/null ; then
echo "WebLogic Server is running."
exit 0
else
echo "WebLogic Server is down."
exit 1
fi
;;
'restart' )
stop
sleep 3
start
;;
*)
echo "$0 {start|stop|status|restart}"
exit 1
;;
esac


系统日志信息:

/var/log/message:
Mar 15 15:59:39 js2 clurgmgrd: [18686]: <err> script:my_weblogic: status of /etc/init.d/weblogic.sh failed (returned 1)
Mar 15 15:59:39 js2 clurgmgrd[18686]: <notice> status on script "my_weblogic" returned 1 (generic error)
Mar 15 15:59:39 js2 clurgmgrd[18686]: <notice> Stopping service service:weblogic_service
Mar 15 15:59:39 js2 avahi-daemon[2771]: Withdrawing address record for 192.168.1.250 on eth0.
Mar 15 16:00:14 js2 clurgmgrd: [18686]: <notice> Forcefully unmounting /weblogic
Mar 15 16:00:14 js2 clurgmgrd: [18686]: <warning> killing process 10970 (root java /weblogic)
Mar 15 16:00:14 js2 clurgmgrd: [18686]: <warning> killing process 10888 (root startWebL /weblogic)
Mar 15 16:00:14 js2 clurgmgrd: [18686]: <warning> killing process 10932 (root startWebL /weblogic)
Mar 15 16:00:20 js2 clurgmgrd[18686]: <notice> Service service:weblogic_service is recovering
Mar 15 16:00:20 js2 clurgmgrd[18686]: <notice> Recovering failed service service:weblogic_service
Mar 15 16:00:20 js2 kernel: kjournald starting.  Commit interval 5 seconds
Mar 15 16:00:20 js2 kernel: EXT3 FS on sdc1, internal journal
Mar 15 16:00:20 js2 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Mar 15 16:00:20 js2 avahi-daemon[2771]: Registering new address record for 192.168.1.250 on eth0.
Mar 15 16:00:21 js2 clurgmgrd[18686]: <notice> Service service:weblogic_service started
Mar 15 16:00:29 js2 clurgmgrd: [18686]: <err> script:my_weblogic: status of /etc/init.d/weblogic.sh failed (returned 1)
Mar 15 16:00:29 js2 clurgmgrd[18686]: <notice> status on script "my_weblogic" returned 1 (generic error)
Mar 15 16:00:29 js2 clurgmgrd[18686]: <notice> Stopping service service:weblogic_service
Mar 15 16:00:29 js2 avahi-daemon[2771]: Withdrawing address record for 192.168.1.250 on eth0.
Mar 15 16:01:03 js2 clurgmgrd: [18686]: <notice> Forcefully unmounting /weblogic
Mar 15 16:01:04 js2 clurgmgrd: [18686]: <warning> killing process 11391 (root java /weblogic)
Mar 15 16:01:04 js2 clurgmgrd: [18686]: <warning> killing process 11311 (root startWebL /weblogic)
Mar 15 16:01:04 js2 clurgmgrd: [18686]: <warning> killing process 11313 (root startWebL /weblogic)
Mar 15 16:01:04 js2 clurgmgrd: [18686]: <crit> Could not clean up mountpoint /weblogic
Mar 15 16:01:09 js2 clurgmgrd[18686]: <notice> Service service:weblogic_service is recovering
Mar 15 16:01:09 js2 clurgmgrd[18686]: <notice> Recovering failed service service:weblogic_service
Mar 15 16:01:10 js2 kernel: kjournald starting.  Commit interval 5 seconds
Mar 15 16:01:10 js2 kernel: EXT3 FS on sdc1, internal journal
Mar 15 16:01:10 js2 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Mar 15 16:01:10 js2 avahi-daemon[2771]: Registering new address record for 192.168.1.250 on eth0.
Mar 15 16:01:11 js2 clurgmgrd[18686]: <notice> Service service:weblogic_service started
Mar 15 16:01:19 js2 clurgmgrd: [18686]: <err> script:my_weblogic: status of /etc/init.d/weblogic.sh failed (returned 1)


上面的内容不断的重复出现。

报错信息 <err> script:my_weblogic: status of /etc/init.d/weblogic.sh failed (returned 1) 说好像是脚本状态不对,但是我实在不明白它在说什么?

下面是was启动日志信息:

/var/wls_start.log
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostnameort/console        *
***************************************************
starting weblogic with Java version:
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
BEA JRockit(R) (build R27.6.6-28_o-125824-1.5.0_22-20091214-2104-linux-ia32, compiled mode)
Starting WLS with line:
/weblogic/bea/jdk150_22/bin/java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m  -XX:MaxPermSize=128m  -Xverify:none  -da -Dplatform.home=/weblogic/bea/weblogic92 -Dwls.home=/weblogic/bea/weblogic92/server -Dwli.home=/weblogic/bea/weblogic92/integration  -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/weblogic/bea/patch_weblogic924/profiles/default/sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=/weblogic/bea/weblogic92/server/lib/weblogic.policy   weblogic.Server
[WARN ] -XX:CompileThreshold=8000 is not a valid VM option. Ignoring
[WARN ] -XX:PermSize=48m is not a valid VM option. Ignoring
[WARN ] -XX:MaxPermSize=128m is not a valid VM option. Ignoring
<Mar 15, 2012 4:01:12 PM EDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
/weblogic/bea/weblogic92/platform/lib/p13n/p13n-schemas.jar:/weblogic/bea/weblogic92/platform/lib/p13n/p13n_common.jar:/weblogic/bea/weblogic92/platform/lib/p13n/p13n_system.jar:/weblogic/bea/weblogic92/platform/lib/wlp/netuix_common.jar:/weblogic/bea/weblogic92/platform/lib/wlp/netuix_schemas.jar:/weblogic/bea/weblogic92/platform/lib/wlp/netuix_system.jar:/weblogic/bea/weblogic92/platform/lib/wlp/wsrp-common.jar>
<Mar 15, 2012 4:01:15 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.6-28_o-125824-1.5.0_22-20091214-2104-linux-ia32 from BEA Systems, Inc.>
<Mar 15, 2012 4:01:17 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP4  Thu Jul 22 09:38:14 BST 2010 1350494 >
<Mar 15, 2012 4:01:20 PM EDT> <Info> <WebLogicServer> <BEA-000215> <Loaded License : /weblogic/bea/license.bea>
<Mar 15, 2012 4:01:20 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Mar 15, 2012 4:01:20 PM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Mar 15, 2012 4:01:21 PM EDT> <Notice> <Log Management> <BEA-170019> <The server log file /weblogic/bea/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<Mar 15, 2012 4:01:26 PM EDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Mar 15, 2012 4:01:34 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<Mar 15, 2012 4:01:34 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Mar 15, 2012 4:01:39 PM EDT> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.>
<Mar 15, 2012 4:01:40 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Mar 15, 2012 4:01:40 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on fe80:0:0:0:200:ff:fe00:0%5:7001 for protocols iiop, t3, ldap, http.>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 192.168.1.227:7001 for protocols iiop, t3, ldap, http.>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.122.1:7001 for protocols iiop, t3, ldap, http.>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:217:8ff:fe2b:4744%3:7001 for protocols iiop, t3, ldap, http.>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, http.>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Development Mode>
<Mar 15, 2012 4:01:51 PM EDT> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: fe80:0:0:0:200:ff:fe00:0%5, 192.168.122.1, fe80:0:0:0:217:8ff:fe2b:4744%3, 192.168.1.227, 127.0.0.1>
<Mar 15, 2012 4:01:51 PM EDT> <Warning> <Server> <BEA-002611> <Hostname "fe80:0:0:0:217:8ff:fe2b:4744%3", maps to multiple IP addresses: fe80:0:0:0:200:ff:fe00:0%5, 192.168.122.1, fe80:0:0:0:217:8ff:fe2b:4744%3, 192.168.1.227, 127.0.0.1>
<Mar 15, 2012 4:01:51 PM EDT> <Warning> <Server> <BEA-002611> <Hostname "js2", maps to multiple IP addresses: fe80:0:0:0:200:ff:fe00:0%5, 192.168.122.1, fe80:0:0:0:217:8ff:fe2b:4744%3, 192.168.1.227, 127.0.0.1>
<Mar 15, 2012 4:01:51 PM EDT> <Warning> <Server> <BEA-002611> <Hostname "fe80:0:0:0:200:ff:fe00:0%5", maps to multiple IP addresses: fe80:0:0:0:200:ff:fe00:0%5, 192.168.122.1, fe80:0:0:0:217:8ff:fe2b:4744%3, 192.168.1.227, 127.0.0.1>
<Mar 15, 2012 4:01:51 PM EDT> <Warning> <Server> <BEA-002611> <Hostname "192.168.122.1", maps to multiple IP addresses: fe80:0:0:0:200:ff:fe00:0%5, 192.168.122.1, fe80:0:0:0:217:8ff:fe2b:4744%3, 192.168.1.227, 127.0.0.1>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Mar 15, 2012 4:01:51 PM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<Mar 15, 2012 4:02:04 PM EDT> <Alert> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by weblogic>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to SUSPENDING>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to SHUTTING_DOWN>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <Server> <BEA-002607> <Channel "Default" listening on fe80:0:0:0:200:ff:fe00:0%5:7001 was shutdown.>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <Server> <BEA-002607> <Channel "Default[3]" listening on 192.168.1.227:7001 was shutdown.>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <Server> <BEA-002607> <Channel "Default[1]" listening on 192.168.122.1:7001 was shutdown.>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <Server> <BEA-002607> <Channel "Default[2]" listening on fe80:0:0:0:217:8ff:fe2b:4744%3:7001 was shutdown.>
<Mar 15, 2012 4:02:04 PM EDT> <Notice> <Server> <BEA-002607> <Channel "Default[4]" listening on 127.0.0.1:7001 was shutdown.>
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m  -XX:MaxPermSize=128m
.
WLS Start Mode=Development
.
CLASSPATH=:/weblogic/bea/patch_weblogic924/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/weblogic/bea/jdk150_22/lib/tools.jar:/weblogic/bea/weblogic92/server/lib/weblogic_sp.jar:/weblogic/bea/weblogic92/server/lib/weblogic.jar:/weblogic/bea/weblogic92/server/lib/webservices.jar::/weblogic/bea/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/weblogic/bea/weblogic92/server/lib/xqrl.jar::
.
PATH=/weblogic/bea/weblogic92/server/bin:/weblogic/bea/jdk150_22/jre/bin:/weblogic/bea/jdk150_22/bin:/bin:/sbin:/usr/bin:/usr/sbin:/weblogic/bea/jrockit_150_22/bin
.


下面是我的双机配置脚本:

[root@js1 ~]# more /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster alias="new_cluster" config_version="50" name="new_cluster">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="js1" nodeid="1" votes="1">
<fence>
<method name="1">
<device name="my_ManualFencing" nodename="js1"/>
</method>
</fence>
</clusternode>
<clusternode name="js2" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="my_ManualFencing" nodename="js2"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="my_ManualFencing"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="my_HA" ordered="1" restricted="1">
<failoverdomainnode name="js1" priority="1"/>
<failoverdomainnode name="js2" priority="2"/>
</failoverdomain>
<failoverdomain name="my_HA2" ordered="1" restricted="1">
<failoverdomainnode name="js1" priority="2"/>
<failoverdomainnode name="js2" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<script file="/etc/init.d/oracledb.sh" name="my_oracle"/>
<ip address="192.168.1.249" monitor_link="1"/>
<fs device="/dev/sdb1" force_fsck="0" force_unmount="1" fsid="30741" fstype="ext3" mountpoint="/oracl
e" name="oracle_data" options="" self_fence="1"/>
<script file="/etc/init.d/weblogic.sh" name="my_weblogic"/>
<ip address="192.168.1.250" monitor_link="1"/>
<fs device="/dev/sdc1" force_fsck="1" force_unmount="1" fsid="2865" fstype="ext3" mountpoint="/weblog
ic" name="weblogic_data" options="" self_fence="1"/>
</resources>
<service autostart="1" domain="my_HA" name="oracle_service" recovery="relocate">
<script ref="my_oracle">
<ip ref="192.168.1.249"/>
</script>
<fs ref="oracle_data"/>
</service>
<service autostart="1" domain="my_HA2" name="weblogic_service" recovery="restart">
<script ref="my_weblogic">
<ip ref="192.168.1.250"/>
</script>
<fs ref="weblogic_data"/>
</service>
</rm>
</cluster>


肯请大家多多指点!

--转自 北京联动北方科技有限公司



该贴由koei123转至本版2015-2-6 4:56:21



赞(0)    操作        顶端 
联动大白
注册用户
等级:新兵
经验:79
发帖:0
精华:0
注册:2015-5-27
状态:离线
发送短消息息给联动大白 加好友    发送短消息息给联动大白 发消息
发表于: IP:您无权察看 2017-9-11 11:00:00 | [全部帖] [楼主帖] 2  楼

为了方便大家阅读,我对文章中错误号来解释一下吧!

Error Id: BEA-000215

Title: Loaded license: {0}.

Action:

No action is needed.

Cause:

This prints from the location from which the license file was loaded.


Error Id: BEA-000331

Title: Started the WebLogic Server Administration Server "{0}" for domain "{1}" running in development mode.

Action:

Set the weblogic.ProductionModeEnabled property of the domain in the configuration script to change the server mode.

Cause:

The production mode of the server is disabled (default).


Error Id: BEA-000360

Title: The server started in {0} mode.

Action:

No action is required.

Cause:

The startup mode was set to SUSPENDED.


Error Id: BEA-000365

Title: Server state changed to {0}.

Action:

No action is required.

Cause:

The server progressed through the startup or shutdown sequence.


Error Id: BEA-000377

Title: Starting WebLogic Server with {0} Version {1} from {2}.

Action:

No action is needed.

Cause:

The server is starting.


Error Id: BEA-000395

Title: The following extensions directory contents added to the end of the classpath: {0}.

Action:

No action is needed.

Cause:

Extensions directory contents were added to the classpath.


Error Id: BEA-000396

Title: Server {0} has been requested by {1}.

Action:

No action is needed.

Cause:

A request was made to perform the specified server operation.


Error Id: BEA-002607

Title: Channel "{2}", listening on {0}:{1,number,0}, was shut down.

Action:

No action is required. If this was an unexpected error, contact My Oracle Support.

Cause:

The server or channel was shut down.


Error Id: BEA-002611

Title: The hostname "{0}", maps to multiple IP addresses: {1}.

Action:

Check if this was done on purpose.

Cause:

The host name of the server resolved to multiple IP addresses, which can cause problems for the Administration Server.


Error Id: BEA-002613

Title: Channel "{2}" is now listening on {0}:{1,number,0} for protocols {3}.

Action:

No action is required.

Cause:

The server successfully started the listen thread and server socket.


Error Id: BEA-002900

Title: Initializing self-tuning thread pool.

Action:

No action is required.

Cause:

The server is starting.


Error Id: BEA-090082

Title: Security initializing using security realm {0}.

Action:

Verify the correct security realm is configured.

Cause:

This message is for informational purposes.


Error Id: BEA-141107

Title: Version: {0}

Action:

No action is required.

Cause:

This is normal system initialization processing.


Error Id: BEA-170019

Title: The server log file {0} is opened. All server side log events will be written to this file.

Action:

No action is needed.

Cause:

This message is for informational purposes.


Error Id: BEA-170027

Title: The server has successfully established a connection with the Domain level Diagnostic Service.

Action:

No action is needed.

Cause:

The server has successfully established contact with the Domain Diagnostic Service.


也许你已明白,但对一个人有用也是我存在的理由!^_^ By:持之以恒的大白

-- 来自: 北京联动北方科技有限公司



赞(0)    操作        顶端 
总帖数
2
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论