- 论坛徽章:
- 0
|
1. Sun Cluster oracle log:/var/opt/SUNWscor/oracle_server/
系统在运行其中,强烈不建议做ORACLE的切换测试,对于需要手工停止数据库,请先停止Sun Cluster对Oracle数据库的监控。否则不允许手工关闭数据库。
#scswitch -n -M -j ora_server /*disable ora_server Resource Monitor
#scswitch -n -M -j ora_listener /*disable ora_listener Resource Monitor
#scswitch -e -M -j ora_server /*enable ora_server Resource Monitor
#scswitch -e -M -j ora_listener /*enable ora_listener Resource Monitor
2.
#scswitch -n -j ora_server /*disable ora_server Resource
#scswitch -n -j ora_listener /*disable ora_listener Resource
#scswitch -e -j ora_server /*enable ora_server Resource
#scswitch -e -j ora_listener /*enable ora_listener Resource
3.
#scswitch -S -h
"switch from to "
4.
#scswitch -z -g -h
online on
5.
#scswitch -Z -g oracle /*online oracle resource group 会启动oracle(若是在Cluster里disable oracle的话)
6.
#scswitch -F -g oracle /*offline oracle resource group
7.
#scswitch -m D ipasdg 将ipasdg设置在maintense模式
8.
#scrgadm -r -j ora_server
#scrgadm -r -j ora_listener
9.
#scconf -p list sun cluster configuration
10.
OK boot -x 以非Cluster模式启动操作系统
#scstat
------------------------------------------------------------------
-- Cluster Nodes --
Node name Status
--------- ------
Cluster node: sd_sms1 Online
Cluster node: sd_sms2 Online
------------------------------------------------------------------
-- Cluster Transport Paths --
Endpoint Endpoint Status
-------- -------- ------
Transport path: sd_sms1:qfe3 sd_sms2:qfe3 Path online
Transport path: sd_sms1:ce1 sd_sms2:ce1 Path online
------------------------------------------------------------------
-- Quorum Summary --
Quorum votes possible: 3
Quorum votes needed: 2
Quorum votes present: 3
-- Quorum Votes by Node --
Node Name Present Possible Status
--------- ------- -------- ------
Node votes: sd_sms1 1 1 Online
Node votes: sd_sms2 1 1 Online
-- Quorum Votes by Device --
Device Name Present Possible Status
----------- ------- -------- ------
Device votes: /dev/did/rdsk/d4s2 1 1 Online
------------------------------------------------------------------
-- Device Group Servers --
Device Group Primary Secondary
------------ ------- ---------
Device group servers: datadg - -
-- Device Group Status --
Device Group Status
------------ ------
Device group status: datadg Offline
------------------------------------------------------------------
-- Resource Groups and Resources --
Group Name Resources
---------- ---------
Resources: smsc-rg sd_sms ha-plus nfs-res
-- Resource Groups --
Group Name Node Name State
---------- --------- -----
Group: smsc-rg sd_sms1 Offline
Group: smsc-rg sd_sms2 Offline
-- Resources --
Resource Name Node Name State Status Message
------------- --------- ----- --------------
Resource: sd_sms sd_sms1 Offline Offline - LogicalHostname offline.
Resource: sd_sms sd_sms2 Offline Offline - LogicalHostname offline.
Resource: ha-plus sd_sms1 Offline Offline
Resource: ha-plus sd_sms2 Offline Offline
Resource: nfs-res sd_sms1 Offline Offline - Completed successfully.
Resource: nfs-res sd_sms2 Offline Offline - Completed successfully.
------------------------------------------------------------------
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/11147/showart_54041.html |
|