- 论坛徽章:
- 0
|
谢谢,按照你说的修改成shutdown ,在节点一上停止成功,但是节点2没有启动包,是为什么呢,还请帮忙看一看。
日志如下:
# cmhaltnode -f -v calldb
Disabling all packages from starting on nodes to be halted.
Disabling all packages from running on calldb.
Warning: Do not modify or enable packages until the halt operation is completed
.
Disabling automatic failover for failover packages to be halted.
Halting package ora
Successfully halted package ora
Enabling switching for Package ora.
Waiting for nodes to halt ..... done
Successfully halted all nodes specified.
Halt operation complete.
# cmviewcl -v
CLUSTER STATUS
clusterdb up
NODE STATUS STATE
calldb down halted
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vglock /dev/dsk/c6t0d1 unknown
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY unknown 0/3/1/0/6/0 lan0
PRIMARY unknown 0/4/2/0 lan1
STANDBY unknown 0/6/1/0/6/0 lan3
NODE STATUS STATE
calldb2 up running
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vglock /dev/dsk/c6t0d1 up
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 0/3/1/0/6/0 lan0
PRIMARY up 0/4/2/0 lan1
STANDBY up 0/6/1/0/6/0 lan3
UNOWNED_PACKAGES
PACKAGE STATUS STATE AUTO_RUN NODE
ora down halted disabled unowned
Policy_Parameters:
POLICY_NAME CONFIGURED_VALUE
Failover configured_node
Failback manual
Script_Parameters:
ITEM STATUS NODE_NAME NAME
Subnet unknown calldb 10.227.8.0
Subnet up calldb2 10.227.8.0
Node_Switching_Parameters:
NODE_TYPE STATUS SWITCHING NAME
Primary down calldb
Alternate up enabled calldb2
# tail -50 /var/adm/syslog/syslog.log
Jun 18 08:36:34 calldb cmcld[2055]: New node calldb2 is joining the cluster
Jun 18 08:36:36 calldb cmcld[2055]: Turning on safety time protection
Jun 18 08:36:32 calldb cmcld[2055]: Attempting to form a new cluster
Jun 18 08:36:36 calldb above message repeats 11 times
Jun 18 08:36:36 calldb cmcld[2055]: 2 nodes have formed a new cluster, sequence
#1
Jun 18 08:36:32 calldb cmcld[2055]: Beginning standard election
Jun 18 08:36:36 calldb above message repeats 11 times
Jun 18 08:36:36 calldb cmcld[2055]: The new active cluster membership is: calldb
(id=1), calldb2(id=2)
Jun 18 08:36:36 calldb cmlvmd[2080]: Clvmd initialized successfully.
Jun 18 08:36:36 calldb cmcld[2055]: Request from node calldb to start package or
a on node calldb.
Jun 18 08:36:36 calldb cmcld[2055]: Executing '/etc/cmcluster/pkg/ora.sh start'
for package ora, as service PKG*19713.
Jun 18 08:36:37 calldb LVM[2101]: vgchange -a e vgdata
Jun 18 08:36:37 calldb syslog: cmmodnet -a -i 10.227.8.3 10.227.8.0
Jun 18 08:36:37 calldb su: + tty?? root-oracle
Jun 18 08:36:53 calldb syslog: cmrunserv -r 3 ora >> /etc/cmcluster/pkg/ora.sh.l
og 2>&1 /etc/cmcluster/pkg/oracle10g.sh monitor
Jun 18 08:36:53 calldb cmcld[2055]: Service PKG*19713 terminated due to an exit(
0).
Jun 18 08:36:53 calldb cmcld[2055]: Started package ora on node calldb.
Jun 18 08:46:15 calldb syslog: cmhaltnode -f -v calldb
Jun 18 08:46:15 calldb cmcld[2055]: Request from root on node calldb to halt the
cluster on this node
Jun 18 08:46:15 calldb cmcld[2055]: Request from node calldb to disable node swi
tching for package ora on node calldb.
Jun 18 08:45:55 calldb su: + tty?? root-oracle
Jun 18 08:46:15 calldb above message repeats 19 times
Jun 18 08:46:15 calldb cmcld[2055]: Disabled package ora on node calldb.
Jun 18 08:46:15 calldb cmcld[2055]: Request from node calldb to disable global s
witching for package ora.
Jun 18 08:46:16 calldb cmcld[2055]: Disabled switching for package ora.
Jun 18 08:46:16 calldb cmcld[2055]: Halting package ora on node calldb as reques
ted by user.
Jun 18 08:46:16 calldb cmcld[2055]: Request from node calldb to begin the haltin
g process for package ora on node calldb.
Jun 18 08:46:16 calldb cmcld[2055]: Request from node calldb to halt package ora
on node calldb.
Jun 18 08:46:16 calldb cmcld[2055]: Request from root on node calldb to halt the
cluster on this node
Jun 18 08:46:16 calldb above message repeats 2 times
Jun 18 08:46:16 calldb cmcld[2055]: Executing '/etc/cmcluster/pkg/ora.sh stop'
for package ora, as service PKG*19713.
Jun 18 08:46:16 calldb syslog: cmhaltserv ora
Jun 18 08:46:16 calldb su: + tty?? root-oracle
Jun 18 08:46:29 calldb syslog: cmmodnet -r -i 10.227.8.3 10.227.8.0
Jun 18 08:46:29 calldb LVM[2638]: vgchange -a n vgdata
Jun 18 08:46:29 calldb cmcld[2055]: Service PKG*19713 terminated due to an exit(
0).
Jun 18 08:46:22 calldb su: + tty?? root-oracle
Jun 18 08:46:29 calldb cmcld[2055]: Halted package ora on node calldb.
Jun 18 08:46:29 calldb cmcld[2055]: Request from root on node calldb to halt the
cluster on this node
Jun 18 08:46:29 calldb cmcld[2055]: Request from node calldb to enable global sw
itching for package ora.
Jun 18 08:46:30 calldb cmcld[2055]: Enabled switching for package ora.
Jun 18 08:46:30 calldb cmcld[2055]: Service cmlvmd terminated due to an exit(0).
Jun 18 08:46:30 calldb cmcld[2055]: Service cmdisklockd terminated due to an exi
t(0).
Jun 18 08:46:30 calldb cmcld[2055]: Service cmlockd terminated due to an exit(0)
.
Jun 18 08:46:30 calldb cmcld[2055]: Turning off safety time: node halting
Jun 18 08:46:30 calldb cmcld[2055]: Service cmnetd terminated due to an exit(0).
Jun 18 08:46:30 calldb cmsrvassistd[2071]: Service assistant daemon halted.
Jun 18 08:46:33 calldb cmcld[2055]: This node (calldb) has ceased cluster activi
ties.
Jun 18 08:46:33 calldb cmcld[2055]: Daemon exiting
Jun 18 08:46:33 calldb cmclconfd[2587]: The cluster daemon aborted our connectio
n (231).
# tail -50 /etc/cmcluster/pkg/ora.sh.log
stty: : Not a typewriter
stty: : Not a typewriter
Monitored process = tnslsnr, pid = 2205
ttytype: couldn't open /dev/tty for reading
stty: : Not a typewriter
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
Monitored process = tnslsnr, pid = 2205
########### Node "calldb": Halting package at 2011年6月18日 星期六, 08:4
6:16 ###########
6月 18 08:46:16 - Node "calldb": Halting service ora
/etc/cmcluster/pkg/oracle10g.sh[19]: ora_ckpt_ora: 未找到。
/etc/cmcluster/pkg/oracle10g.sh[20]: ora_reco_ora: 未找到。
*** /etc/cmcluster/pkg/oracle10g.sh called with shutdown argument. ***
"calldb": Shutting down Oracle SESSION ora at 2011年6月18日 星期六, 08:46:16
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Jun 18 08:46:16 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
- 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Oracle shutdown done.
LSNRCTL for HPUX: Version 10.2.0.4.0 - Production on 18-JUN-2011 08:46:22
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
6月 18 08:46:29 - Node "calldb": Remove IP address 10.227.8.3 from subnet 10.227
.8.0
6月 18 08:46:29 - Node "calldb": Unmounting filesystem on /dev/vgdata/lvol-orada
ta
6月 18 08:46:29 - Node "calldb": Unmounting filesystem on /dev/vgdata/lvol-oracl
e
6月 18 08:46:29 - Node "calldb": Deactivating volume group vgdata
Deactivated volume group in Exclusive Mode.
卷组 "vgdata" 已经改变。
########### Node "calldb": Package halt completed at 2011年6月18日 星期
六, 08:46:29 ###########
# ps -ef |grep oracle
root 2657 2512 0 08:52:00 pts/ta 0:00 grep oracle
# |
|