ASM实例启动日志:
[Oracle@rac1 bdump]$ pwd
/u01/app/oracle/admin/+ASM/bdump
[oracle@rac1 bdump]$ cat alert_+ASM1.log
Thu Mar 24 23:51:37 2011
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Interface type 1 eth1 192.168.1.0 configured from OCR for use as a cluster interconnect
Interface type 1 eth0 192.168.2.0 configured from OCR for use asa public interface
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_1 parameter default value as /u01/app/oracle/product/10.2.0/db_1/dbs/arch
Autotune of undo retention is turned off.
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
large_pool_size= 12582912
instance_type= asm
cluster_database= TRUE
instance_number= 2
remote_login_passwordfile= EXCLUSIVE
background_dump_dest= /u01/app/oracle/admin/+ASM/bdump
user_dump_dest= /u01/app/oracle/admin/+ASM/udump
core_dump_dest= /u01/app/oracle/admin/+ASM/cdump
asm_diskstring= /dev/mapper/datap1, /dev/mapper/frap1
asm_diskgroups= DATA, FRA
Cluster communication is configured to use the following interface(s) for this instance
192.168.1.42
Thu Mar 24 23:51:38 2011
cluster interconnect IPC version:Oracle UDP/IP
IPC Vendor 1 proto 2
PMON started with pid=2, OS id=27438
DIAG started with pid=3, OS id=27441
PSP0 started with pid=4, OS id=27453
LMON started with pid=5, OS id=27455
LMD0 started with pid=6, OS id=27461
LMS0 started with pid=7, OS id=27466
MMAN started with pid=8, OS id=27476
DBW0 started with pid=9, OS id=27478
LGWR started with pid=10, OS id=27480
CKPT started with pid=11, OS id=27482
SMON started with pid=12, OS id=27484
RBAL started with pid=13, OS id=27486
GMON started with pid=14, OS id=27488
Thu Mar 24 23:51:38 2011
lmon registered with NM - instance id 2 (internal mem no 1)
Thu Mar 24 23:51:39 2011
Reconfiguration started (old inc 0, new inc 1)
ASM instance
List of nodes:
1
Global Resource Directory frozen
Communication channels reestablished
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
Thu Mar 24 23:51:39 2011
LMS 0: 0 GCS shadows cancelled, 0 closed
Set master node info
Submitted all remote-enqueue requests
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
Post SMON to start 1st pass IR
Thu Mar 24 23:51:39 2011
LMS 0: 0 GCS shadows traversed, 0 replayed
Thu Mar 24 23:51:39 2011
Submitted all GCS remote-cache requests
Post SMON to start 1st pass IR
Fix write in gcs resources
Reconfiguration complete
LCK0 started with pid=15, OS id=27490
Thu Mar 24 23:51:39 2011
SQL> ALTER DISKGROUP ALL MOUNT
Thu Mar 24 23:51:39 2011
NOTE: cache registered group DATA number=1 incarn=0xf5e32eb6
NOTE: cache registered group FRA number=2 incarn=0xf5f32eb7
Thu Mar 24 23:51:39 2011
Loaded ASM Library - Generic Linux, version 2.0.4 (KABI_V2) library for asmlib interface
Thu Mar 24 23:51:39 2011
NOTE: Hbeat: instance first (grp 1)
Thu Mar 24 23:51:40 2011
NOTE: Hbeat: instance first (grp 2)
Thu Mar 24 23:51:44 2011
NOTE: start heartbeating (grp 1)
NOTE: cache opening disk 0 of grp 1: DATA path:/dev/mapper/datap1
Thu Mar 24 23:51:44 2011
NOTE: F1X0 found on disk 0 fcn 0.0
NOTE: cache mounting (first) group 1/0xF5E32EB6 (DATA)
* allocate domain 1, invalid = TRUE
Thu Mar 24 23:51:44 2011
NOTE: attached to recovery domain 1
Thu Mar 24 23:51:44 2011
NOTE: cache recovered group 1 to fcn 0.2777
Thu Mar 24 23:51:44 2011
NOTE: opening chunk 1 at fcn 0.2777 ABA
NOTE: seq=5 blk=139
Thu Mar 24 23:51:44 2011
NOTE: cache mounting group 1/0xF5E32EB6 (DATA) succeeded
SUCCESS: diskgroup DATA was mounted
Thu Mar 24 23:51:45 2011
NOTE: start heartbeating (grp 2)
NOTE: cache opening disk 0 of grp 2: FRA_0000 path:/dev/mapper/frap1
Thu Mar 24 23:51:45 2011
NOTE: F1X0 found on disk 0 fcn 0.0
NOTE: cache mounting (first) group 2/0xF5F32EB7 (FRA)
* allocate domain 2, invalid = TRUE
Thu Mar 24 23:51:45 2011
NOTE: attached to recovery domain 2
Thu Mar 24 23:51:45 2011
NOTE: cache recovered group 2 to fcn 0.1677
Thu Mar 24 23:51:45 2011
NOTE: opening chunk 1 at fcn 0.1605 ABA
NOTE: seq=4 blk=69
Thu Mar 24 23:51:45 2011
NOTE: cache mounting group 2/0xF5F32EB7 (FRA) succeeded
SUCCESS: diskgroup FRA was mounted
Thu Mar 24 23:51:47 2011
NOTE: recovering COD for group 1/0xf5e32eb6 (DATA)
SUCCESS: completed COD recovery for group 1/0xf5e32eb6 (DATA)
NOTE: recovering COD for group 2/0xf5f32eb7 (FRA)
SUCCESS: completed COD recovery for group 2/0xf5f32eb7 (FRA)
Thu Mar 24 23:51:58 2011
Reconfiguration started (old inc 1, new inc 2)
List of nodes:
0 1
Global Resource Directory frozen
Communication channels reestablished
* domain 1 valid = 1 according to instance 0
* domain 2 valid = 1 according to instance 0
Thu Mar 24 23:51:59 2011
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
Thu Mar 24 23:51:59 2011
LMS 0: 0 GCS shadows cancelled, 0 closed
Set master node info
Submitted all remote-enqueue requests
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
Thu Mar 24 23:51:59 2011
LMS 0: 18 GCS shadows traversed, 0 replayed
Thu Mar 24 23:51:59 2011
Submitted all GCS remote-cache requests
Fix write in gcs resources
Reconfiguration complete
[oracle@rac1 bdump]$
2.8启动数据库
[oracle@rac1 bdump]$srvctl start db -d rac
[oracle@rac1 bdump]$ cd /u01
[oracle@rac1 u01]$ sh crs_stat.sh
NameTargetStateHost
------------------------------ ---------- ----------------
ora.rac.dbONLINEONLINErac1
ora.rac.rac1.instONLINEONLINErac2
ora.rac.rac2.instONLINEONLINErac1
ora.rac.taf.csOFFLINEOFFLINE
ora.rac.taf.rac1.srvOFFLINE OFFLINE
ora.rac.taf.rac2.srvOFFLINEOFFLINE
ora.rac1.ASM1.asmONLINEONLINErac1
ora.rac1.LISTENER_RAC1.lsnrONLINEONLINErac1
ora.rac1.gsdONLINEONLINErac1
ora.rac1.onsONLINEONLINErac1
ora.rac1.vipONLINEONLINErac1
ora.rac2.ASM2.asmONLINEONLINErac2
ora.rac2.LISTENER_RAC2.lsnrONLINEONLINErac2
ora.rac2.gsdONLINEONLINErac2
ora.rac2.onsONLINEONLINErac2
ora.rac2.vipONLINEONLINErac2
[oracle@rac1 u01]$ crs_start ora.rac.taf.cs
Attempting to start `ora.rac.taf.cs` on member `rac2`
Start of `ora.rac.taf.cs` on member `rac2` succeeded.
[oracle@rac1 u01]$ sh crs_stat.sh
NameTargetStateHost
------------------------------ ---------- ----------------
ora.rac.dbONLINEONLINErac1
ora.rac.rac1.instONLINEONLINErac2
ora.rac.rac2.instONLINEONLINErac1
--还是反过来的
ora.rac.taf.csONLINEONLINErac2
ora.rac.taf.rac1.srvONLINEONLINErac2
ora.rac.taf.rac2.srvONLINEONLINErac1
ora.rac1.ASM1.asmONLINEONLINErac1
ora.rac1.LISTENER_RAC1.lsnrONLINEONLINErac1
ora.rac1.gsdONLINEONLINErac1
ora.rac1.onsONLINEONLINErac1
ora.rac1.vipONLINEONLINErac1
ora.rac2.ASM2.asmONLINEONLINErac2
ora.rac2.LISTENER_RAC2.lsnrONLINEONLINErac2
ora.rac2.gsdONLINEONLINErac2
ora.rac2.onsONLINEONLINErac2
ora.rac2.vipONLINEONLINErac2
至此,RAC的ASM实例名,已经修改成功了。 但是RAC实例名和节点名还是反过来的。 明天在做个测试,把RAC的实例名也修改一下。
也就是为了好奇。 顺便做下测试。不过记住了一点,安装RAC的时候,从第一个节点开始安装。不然后面会比较麻烦。
有空还是希望能研究透CRS,看看CRS是如何控制这个节点顺序的。