10gR2 rac怎样重跑root.sh ?
原文博客链接地址:10gR2 rac怎样重跑root.sh ?
前几天遇到一客户的10205 rac,出现LMD进程IPC SEND TIMEOUT问题。
准备深入研究下Oracle RAC
的LMON,LMD以及LMS进程,发现自己的VM RAC无法启动了,最后看了下。竟然是有个节点的分区不见了。
++++Node2
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
[root@rac2 raw]# ls -ltr /dev/sdf*brw-r----- 1 root disk 8, 84 Dec 4 2013 /dev/sdf4brw-r----- 1 root disk 8, 83 Dec 4 2013 /dev/sdf3brw-r----- 1 root disk 8, 82 Dec 4 2013 /dev/sdf2brw-r----- 1 root disk 8, 81 Dec 4 2013 /dev/sdf1brwxrwxr-x 1 oracle oinstall 8, 80 Dec 4 2013 /dev/sdf[root@rac2 bin]# cat /etc/rc.d/rc.local#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in hereif you don't# want to do the full Sys V style init stuff.touch /var/lock/subsys/localchown chown chown chown chown chmod chmod chmod chmod chmod raw /dev/raw/raw1 /dev/sdf1raw /dev/raw/raw2 /dev/sdf2raw /dev/raw/raw3 /dev/sdf3raw /dev/raw/raw4 /dev/sdf4chown |
++++Node1
|
1
2
3
4
|
[root@rac1 bin]# partprobe[root@rac1 bin]# ls -ltr /dev/sdf*brwxrwxr-x 1 oracle oinstall 8, 80 Jun 29 01:37 /dev/sdf[root@rac1 bin]# |
我这里是将当中一个共享盘进行了分区,然后绑定为raw。发现当中一个节点的分区不见了,最后把节点2
reboot之后。2个节点的分区都看不到了。无语了。
印象中Linux有一些方法能够恢复partition。尝试使用gpart来试试。例如以下是我尝试:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
[root@rac1 repodata]# gpart /dev/sdfBegin scan...End Checking partitions...Ok.Guessed primary partition table:Primary partition(1)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)rPrimary partition(2)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)rPrimary partition(3)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)rPrimary partition(4)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r[root@rac1 repodata]# gpart -W /dev/sdf /dev/sdfBegin scan...End Checking partitions...Ok.Guessed primary partition table:Primary partition(1)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)rPrimary partition(2)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)rPrimary partition(3)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)rPrimary partition(4)type: 000(0x00)(unused)size: 0mb #s(0) s(0-0)chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)rEdit this table (y,n) : yEdit which partition (1..4, q to quit) : qActivate which partition (1..4, q to quit) : 1Write this partition table (y,n) : y* Warning: partition table written, you should reboot now.[root@rac1 repodata]# ls -ltr /dev/sdf*brwxrwxr-x 1 oracle oinstall 8, 80 Jun 29 03:57 /dev/sdf |
大家能够看到,我这里gpart扫出来的,尽管能看到有4个分区。可是全是空的。不知道为什么,太怪异了。
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
[root@rac1 ~]# fdisk -lDisk /dev/sda: 21.4 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sda1 * 1 6 48163+ 83 Linux/dev/sda2 7 515 4088542+ 83 Linux/dev/sda3 516 776 2096482+ 82 Linux swap / Solaris/dev/sda4 777 2610 14731605 5 Extended/dev/sda5 777 2610 14731573+ 83 LinuxDisk /dev/sdb: 524 MB, 524288000 bytes64 heads, 32 sectors/track, 500 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytesDisk /dev/sdb doesn't contain a valid partition tableDisk /dev/sdc: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdc doesn't contain a valid partition tableDisk /dev/sdd: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdd doesn't contain a valid partition tableDisk /dev/sde: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sde doesn't contain a valid partition tableDisk /dev/sdf: 2147 MB, 2147483648 bytes255 heads, 63 sectors/track, 261 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sdf1 * 1 1 0 0 EmptyPartition 1 has different physical/logical beginnings (non-Linux?):phys=(0, 0, 0) logical=(0, 0, 1)Partition 1 has different physical/logical endings:phys=(0, 0, 0) logical=(267349, 89, 4)Partition 1 does notend on cylinder boundary. |
因此,最后gpart写回去也一样没用。由于数据都没了。
由于我这里也没有ocr的备份。因此仅仅能重建了。
在10gR2 版本号中。我们能够不必要又一次安装,仅仅跑root.sh脚本就可以。那么怎么搞呢 ?
假设你直接执行root.sh,那么会遇到类似例如以下的问题:
[root@rac1 crs]# ./root.sh
WARNING: directory ‘/home/oracle/app/oracle/product/10.2.0′ is not owned by root
WARNING: directory ‘/home/oracle/app/oracle/product’ is not owned by root
WARNING: directory ‘/home/oracle/app/oracle’ is not owned by root
WARNING: directory ‘/home/oracle/app’ is not owned by root
WARNING: directory ‘/home/oracle’ is not owned by root
No value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crs
Checking to see if Oracle CRS stack is already configured
Oracle CRS stack is already configured and will be running under init(1M)
[root@rac1 crs]#
##### 清理部分文件,准备运行root.sh
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1. 删除/etc/oracle/ocr.loc[root@rac1 crs]# mv /etc/oracle/ocr.loc /etc/oracle/ocr.loc.bakmv: overwrite `/etc/oracle/ocr.loc.bak'?
2. 删除cssfatal文件[root@rac1 crs]# cd /etc/oracle/[root@rac1 oracle]# pwd/etc/oracle/scls_scr/rac1/oracle[root@rac1 oracle]# rm cssfatalrm: remove regular file `cssfatal'? n[root@rac1 oracle]# mv cssfatal cssfatal.bak3. 删除/etc/inittab中的信息 |
最后我分开运行root.sh脚本就可以,例如以下是过程:
节点1:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
[root@rac1 rac1]# /home/oracle/app/oracle/product/10.2.0/crs/root.shWARNING: directory '/home/oracle/app/oracle/product/10.2.0' is not owned by rootWARNING: directory '/home/oracle/app/oracle/product' is not owned by rootWARNING: directory '/home/oracle/app/oracle' is not owned by rootWARNING: directory '/home/oracle/app' is not owned by rootWARNING: directory '/home/oracle' is not owned by rootNo value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crsChecking to see if Oracle CRS stack is already configuredSetting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory '/home/oracle/app/oracle/product/10.2.0' is not owned by rootWARNING: directory '/home/oracle/app/oracle/product' is not owned by rootWARNING: directory '/home/oracle/app/oracle' is not owned by rootWARNING: directory '/home/oracle/app' is not owned by rootWARNING: directory '/home/oracle' is not owned by rootSuccessfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: rac1 rac1-priv rac1node 2: rac2 rac2-priv rac2Creating OCR keys for user 'root', privgrp 'root'..Operation successful.Now formatting voting device: /dev/raw/raw2Format of 1 voting devices complete.Startup will be queued to init within 30 seconds.Adding daemons to inittabExpecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes.rac1CSS is inactive on these nodes.rac2Local node checking complete.Run root.sh on remaining nodes to start CRS daemons. |
节点2:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
[root@rac2 oracle]# /home/oracle/app/oracle/product/10.2.0/crs/root.shWARNING: directory '/home/oracle/app/oracle/product/10.2.0' is not owned by rootWARNING: directory '/home/oracle/app/oracle/product' is not owned by rootWARNING: directory '/home/oracle/app/oracle' is not owned by rootWARNING: directory '/home/oracle/app' is not owned by rootWARNING: directory '/home/oracle' is not owned by rootNo value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crsChecking to see if Oracle CRS stack is already configuredSetting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory '/home/oracle/app/oracle/product/10.2.0' is not owned by rootWARNING: directory '/home/oracle/app/oracle/product' is not owned by rootWARNING: directory '/home/oracle/app/oracle' is not owned by rootWARNING: directory '/home/oracle/app' is not owned by rootWARNING: directory '/home/oracle' is not owned by rootclscfg: EXISTING configuration version 3 detected.clscfg: version 3 is 10G Release 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: rac1 rac1-priv rac1node 2: rac2 rac2-priv rac2clscfg: Arguments check out successfully.NO KEYS WERE WRITTEN. Supply -force parameter to override.-force is destructive and will destroy any previous clusterconfiguration.Oracle Cluster Registry for cluster has already been initializedStartup will be queued to init within 30 seconds.Adding daemons to inittabExpecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes.rac1rac2CSS is active on all nodes.Waiting for the Oracle CRSD and EVMD to startOracle CRS stack installed and running under init(1M)Running vipca(silent) for configuring nodeappsCreating VIP application resource on (2) nodes...Creating GSD application resource on (2) nodes...Creating ONS application resource on (2) nodes...Starting VIP application resource on (2) nodes...Starting GSD application resource on (2) nodes...Starting ONS application resource on (2) nodes...Done. |
最后我们看到,crs进程都正常起来了。例如以下:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
[root@rac1 oracle]# ps -ef|grep d.binoracle 12371 12370 0 04:34 ? 00:00:00 /home/oracle/app/oracle/product/10.2.0/crs/bin/evmd.binroot 12446 11819 0 04:34 ? 00:00:00 /home/oracle/app/oracle/product/10.2.0/crs/bin/crsd.bin rebootroot 12688 12452 0 04:34 ? 00:00:00 /home/oracle/app/oracle/product/10.2.0/crs/bin/oprocd.bin run -t 1000 -m 500oracle 12914 12520 0 04:34 ? 00:00:00 /home/oracle/app/oracle/product/10.2.0/crs/bin/ocssd.binroot 15267 5027 0 04:41 pts/1 00:00:00 grep d.bin[root@rac1 oracle]# cd /home/oracle/app/oracle/product/10.2.0/crs/bin[root@rac1 bin]# ./ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 2Total space (kbytes) : 521836Used space (kbytes) : 4604Available space (kbytes) : 517232ID : 559767577Device/File Name : /dev/raw/raw1Device/File integrity check succeededDevice/File not configuredCluster registry integrity check succeeded[root@rac1 bin]# ./crsctl query css votedisk0. 0 /dev/raw/raw4located 1 votedisk(s).[root@rac1 bin]#[root@rac2 bin]# ./crs_stat -t -vName Type R/RA F/FT Target State Host----------------------------------------------------------------------ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2[root@rac2 bin]# |
+++注冊db和asm
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[oracle@rac1 bdump]$ srvctl add database -d roger -o /home/oracle/app/oracle/product/10.2.0/db_1[oracle@rac1 bdump]$ srvctl add instance -d roger -i roger1 -n rac1[oracle@rac1 bdump]$ srvctl add instance -d roger -i roger2 -n rac2[oracle@rac1 bdump]$ srvctl add asm -n rac1 -i +ASM1 -o /home/oracle/app/oracle/product/10.2.0/db_1null[PRKS-1030 : Failed to add configuration for ASM instance "+ASM1" on node "rac1" in cluster registry, [PROC-5: User does not have permission to perform a cluster[PROC-5: User does not have permission to perform a cluster registry operation on this key. Authentication error [User does not have permission to perform this[oracle@rac1 bdump]$[root@rac2 bin]# ./crs_getperm ora.rac1.vipName: ora.rac1.vipowner:root:rwx,pgrp:oinstall:r-x,other::r--,user:oracle:r-x,[root@rac2 bin]# ./crs_getperm ora.rac2.vipName: ora.rac2.vipowner:root:rwx,pgrp:oinstall:r-x,other::r--,user:oracle:r-x,[root@rac2 bin]# |
能够看到上面运行报错了,開始以为是vip资源的问题,于是改动了owner,最后发现这是错位的步骤:
|
1
2
3
4
5
6
7
8
9
10
|
[root@rac2 bin]# ./crs_setperm ora.rac1.vip -o oracle[root@rac2 bin]# ./crs_setperm ora.rac1.vip -g oinstall[root@rac2 bin]# ./crs_setperm ora.rac2.vip -o oracle[root@rac2 bin]# ./crs_setperm ora.rac2.vip -g oinstall[root@rac2 bin]#[oracle@rac1 bdump]$ srvctl add asm -n rac1 -i +ASM1 -o /home/oracle/app/oracle/product/10.2.0/db_1null[PRKS-1030 : Failed to add configuration for ASM instance "+ASM1" on node "rac1" in cluster registry, [PROC-5: User does not have permission to perform a cluster[PROC-5: User does not have permission to perform a cluster registry operation on this key. Authentication error [User does not have permission to perform this |
尽管加入失败,我就改用root运行,进行加入,例如以下:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
[root@rac1 bin]# ./srvctl add asm -n rac1 -i +ASM1 -o /home/oracle/app/oracle/product/10.2.0/db_1[root@rac1 bin]# ./srvctl add asm -n rac2 -i +ASM2 -o /home/oracle/app/oracle/product/10.2.0/db_1[root@rac1 bin]# ./crs_stat -p|grep asmNAME=ora.rac1.ASM1.asmNAME=ora.rac2.ASM2.asm[root@rac1 bin]# ./crs_setperm ora.rac1.ASM1.asm -o oracle[root@rac1 bin]# ./crs_setperm ora.rac1.ASM2.asm -o oracle[root@rac1 bin]# ./crs_setperm ora.rac1.ASM1.asm -g oinstall[root@rac1 bin]# ./crs_setperm ora.rac2.ASM2.asm -g oinstall[oracle@rac1 bdump]$ crs_start ora.rac1.ASM1.asmAttempting to start `ora.rac1.ASM1.asm` on member `rac1`Start of `ora.rac1.ASM1.asm` on member `rac1` succeeded.[oracle@rac1 bdump]$ crs_start ora.rac2.ASM2.asmAttempting to start `ora.rac2.ASM2.asm` on member `rac2`Start of `ora.rac2.ASM2.asm` on member `rac2` succeeded.[oracle@rac1 bdump]$ crs_stat -tName Type Target State Host------------------------------------------------------------ora....SM1.asm application ONLINE ONLINE rac1ora....C1.lsnr application ONLINE OFFLINEora.rac1.gsd application ONLINE ONLINE rac1ora.rac1.ons application ONLINE ONLINE rac1ora.rac1.vip application ONLINE OFFLINEora....SM2.asm application ONLINE ONLINE rac2ora....C2.lsnr application ONLINE OFFLINEora.rac2.gsd application ONLINE ONLINE rac2ora.rac2.ons application ONLINE ONLINE rac2ora.rac2.vip application ONLINE OFFLINEora.roger.db application ONLINE ONLINE rac2ora....r1.inst application ONLINE ONLINE rac1ora....r2.inst application ONLINE ONLINE rac2 |
最后发现vip和lsnr资源死活起不来。看了下日志。才发现開始vip资源搞错了,vip资源的owner本身就应该是root才对。
通过查看crsd.log 日志。会发现例如以下信息:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
2014-06-29 09:04:56.578: [ CRSRES][2719009680]0startRunnable: setting CLI values2014-06-29 09:04:56.775: [ CRSRES][2708519824]0startRunnable: setting CLI values2014-06-29 09:04:56.820: [ CRSRES][2687540112]0startRunnable: setting CLI values2014-06-29 09:04:56.903: [ CRSRES][2719009680]0Attempting to start `ora.rac1.vip` on member `rac1`2014-06-29 09:04:56.929: [ CRSRES][2708519824]0Attempting to start `ora.rac1.ASM1.asm` on member `rac1`2014-06-29 09:04:56.951: [ CRSRES][2687540112]0Attempting to start `ora.roger.roger1.inst` on member `rac1`2014-06-29 09:04:58.798: [ CRSAPP][2719009680]0StartResource error for ora.rac1.vip error code = 12014-06-29 09:04:59.579: [ CRSRES][2719009680]0Start of `ora.rac1.vip` on member `rac1` failed.2014-06-29 09:05:00.007: [ COMMCRS][2644503440]clsc_send_msg: (0x98bede0) NS err (12571, 12560), transport (530, 111, 0)2014-06-29 09:05:00.007: [ CRSCOMM][2719009680]0CLSC connect failed torac2ret = 92014-06-29 09:05:00.008: [ CRSEVT][2719009680]0invokepeer ret 2002014-06-29 09:05:00.040: [ CRSRES][2719009680]0Remote start never sent to rac2: X_E2E_NotSent : Failed to connect to node: rac2(File: caa_CmdRTI.cpp, line: 5042014-06-29 09:05:00.040: [ CRSRES][2719009680][ALERT]0Remote start for `ora.rac1.vip` failed on member `rac2`2014-06-29 09:05:01.047: [ CRSRES][2719009680]0startRunnable: setting CLI values2014-06-29 09:05:01.147: [ CRSRES][2719009680]0Attempting to start `ora.rac1.vip` on member `rac1`2014-06-29 09:05:02.400: [ CRSAPP][2719009680]0StartResource error for ora.rac1.vip error code = 12014-06-29 09:05:03.702: [ CRSRES][2719009680]0Start of `ora.rac1.vip` on member `rac1` failed.2014-06-29 09:05:04.811: [ CRSRES][2613033872]0startRunnable: setting CLI values2014-06-29 09:05:04.967: [ CRSRES][2613033872]0Attempting to start `ora.rac1.vip` on member `rac1`2014-06-29 09:05:05.268: [ CRSAPP][2613033872]0StartResource error for ora.rac1.vip error code = 12014-06-29 09:05:06.769: [ CRSRES][2613033872]0Start of `ora.rac1.vip` on member `rac1` failed.2014-06-29 09:05:11.078: [ CRSRES][2613033872]0startRunnable: setting CLI values2014-06-29 09:05:11.342: [ CRSRES][2613033872]0Attempting to start `ora.rac1.ons` on member `rac1`2014-06-29 09:05:13.926: [ CRSRES][2613033872]0Start of `ora.rac1.ons` on member `rac1` succeeded.2014-06-29 09:05:13.966: [ CRSRES][2708519824]0Start of `ora.rac1.ASM1.asm` on member `rac1` succeeded.2014-06-29 09:05:45.321: [ CRSRES][2708519824]0CRS-1002: Resource 'ora.rac1.ons' is already running on member 'rac1'2014-06-29 09:05:46.461: [ CRSRES][2687540112]0Start of `ora.roger.roger1.inst` on member `rac1` succeeded.2014-06-29 09:05:46.472: [ CRSRES][2698029968]0Skip online resource: ora.rac1.ons2014-06-29 09:05:49.505: [ CRSRES][2687540112]0startRunnable: setting CLI values2014-06-29 09:05:49.969: [ CRSRES][2613033872]0startRunnable: setting CLI values2014-06-29 09:05:50.186: [ CRSRES][2613033872]0Attempting to start `ora.rac1.vip` on member `rac1`2014-06-29 09:05:50.307: [ CRSRES][2687540112]0Attempting to start `ora.rac1.gsd` on member `rac1`2014-06-29 09:05:50.788: [ CRSRES][2677050256]0Attempting to start `ora.rac2.vip` on member `rac2`2014-06-29 09:05:50.906: [ CRSRES][2698029968]0Attempting to start `ora.rac2.gsd` on member `rac2`2014-06-29 09:05:50.985: [ CRSRES][2719009680]0Attempting to start `ora.rac2.ons` on member `rac2`2014-06-29 09:05:51.079: [ CRSRES][2708519824]0Attempting to start `ora.roger.db` on member `rac2`2014-06-29 09:05:51.082: [ CRSAPP][2613033872]0StartResource error for ora.rac1.vip error code = 12014-06-29 09:05:51.978: [ CRSRES][2613033872]0Start of `ora.rac1.vip` on member `rac1` failed.2014-06-29 09:05:52.059: [ CRSRES][2613033872]0rac2 : CRS-1019: Resource ora.rac1.LISTENER_RAC1.lsnr (application) cannot run on rac22014-06-29 09:05:53.001: [ CRSRES][2687540112]0Start of `ora.rac1.gsd` on member `rac1` succeeded.2014-06-29 09:05:54.193: [ CRSRES][2708519824]0Start of `ora.roger.db` on member `rac2` succeeded.2014-06-29 09:05:54.505: [ CRSRES][2698029968]0Start of `ora.rac2.gsd` on member `rac2` succeeded.2014-06-29 09:05:54.869: [ CRSRES][2634013584]0CRS-1002: Resource 'ora.roger.db' is already running on member 'rac2'2014-06-29 09:05:55.054: [ CRSRES][2677050256]0Start of `ora.rac2.vip` on member `rac2` failed.2014-06-29 09:05:55.226: [ CRSRES][2677050256]0startRunnable: setting CLI values2014-06-29 09:05:55.277: [ CRSRES][2677050256]0Attempting to start `ora.rac2.vip` on member `rac1`2014-06-29 09:05:55.585: [ CRSAPP][2677050256]0StartResource error for ora.rac2.vip error code = 12014-06-29 09:05:55.714: [ CRSRES][2719009680]0Start of `ora.rac2.ons` on member `rac2` succeeded.2014-06-29 09:05:55.910: [ CRSRES][2677050256]0Start of `ora.rac2.vip` on member `rac1` failed.2014-06-29 09:05:56.363: [ CRSRES][2677050256]0Attempting to start `ora.rac2.vip` on member `rac2`2014-06-29 09:05:57.180: [ CRSRES][2677050256]0Start of `ora.rac2.vip` on member `rac2` failed.2014-06-29 09:05:57.993: [ CRSRES][2654993296]0startRunnable: setting CLI values2014-06-29 09:05:58.611: [ CRSAPP][2654993296]0StartResource error for ora.rac1.vip error code = 12014-06-29 09:05:59.333: [ CRSRES][2708519824]0startRunnable: setting CLI values2014-06-29 09:06:00.129: [ CRSAPP][2708519824]0StartResource error for ora.rac2.vip error code = 12014-06-29 09:06:06.328: [ CRSRES][2708519824]0startRunnable: setting CLI values2014-06-29 09:06:06.916: [ CRSAPP][2708519824]0StartResource error for ora.rac1.vip error code = 1 |
最后将vip资源改回为root,一切正常:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[root@rac1 bin]# ./crs_setperm ora.rac1.vip -o root[root@rac1 bin]# ./crs_setperm ora.rac1.vip -g root[root@rac1 bin]# ./crs_start ora.rac1.vipAttempting to start `ora.rac1.vip` on member `rac1`Start of `ora.rac1.vip` on member `rac1` succeeded.[root@rac1 bin]# ./crs_setperm ora.rac2.vip -o root[root@rac1 bin]# ./crs_setperm ora.rac2.vip -g root[root@rac1 bin]# ./crs_start ora.rac2.vipAttempting to start `ora.rac2.vip` on member `rac2`Start of `ora.rac2.vip` on member `rac2` succeeded.[root@rac1 bin]#[oracle@rac1 racg]$ crs_stat -t -vName Type R/RA F/FT Target State Host----------------------------------------------------------------------ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1ora.rac1.gsd application 0/5 0/0 ONLINE ONLINE rac1ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2ora.rac2.gsd application 0/5 0/0 ONLINE ONLINE rac2ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2ora.roger.db application 0/0 0/1 ONLINE ONLINE rac2ora....r1.inst application 0/5 0/0 ONLINE ONLINE rac1ora....r2.inst application 0/5 0/0 ONLINE ONLINE rac2[oracle@rac1 racg]$ |
|
1
|
非常久没有搞10gR2 rac。有点生疏了,我檫! |
10gR2 rac怎样重跑root.sh ?的更多相关文章
- 安装GRID时跑root.sh脚本报错(ORA-27091: unable to queue I/O)
在安装GRID过程中,运行root.sh脚本时报如下信息: Adding Clusterware entries to upstart CRS-2672: Attempting to start 'o ...
- centos 7安装rac 11gR2时运行root.sh报错找不到ohas服务(ohasd failed to start)
单独在linux 7中为ohasd设置一个服务.步骤如下1. 创建服务ohas.service的服务文件并赋予权限touch /usr/lib/systemd/system/ohas.servicec ...
- Oracle 11g RAC 第二节点root.sh执行失败后再次执行root.sh
Oracle 11g RAC 第二节点root.sh执行失败后再次执行root.sh前,要先清除之前的crs配置信息 # /u01/app/11.2.0/grid/crs/install/rootcr ...
- RAC安装gird,第一个节点执行root.sh报"The ora.asm resource is not ONLINE"错误
RAC版本:11.2.0.4 OS版本:linux 6.4 RAC安装gird,第一个节点执行root.sh运行失败,报"The ora.asm resource is not ONLINE ...
- Oracle 12.2.0.1 RAC for rhel 7.X 数据库安装(节点1执行root.sh失败)
说明: 最开始是用的rehat7.2安装12.2.0.1,后面安装GI节点一执行root.sh脚本失败,排查原因,最开始以为是操作系统的问题,换成rehat7.6,同样的出现问题,经过一番折腾,后面通 ...
- RAC执行root.sh报libcap.so.1: cannot open shared object file
Failed to create keys in the OLR, rc = 127, Message: /opt/app/11.2.0/grid/bin/clscfg.bin: error whil ...
- RAC安装GI时运行root.sh脚本结果
第一节点运行root.sh脚本的结果: # /u01/app//grid/root.sh Performing root user operation for Oracle 11g The follo ...
- RAC安装重新运行root.sh
rac1执行root.sh成功,rac2执行失败. 在重新执行root.sh前,在rac2上把crs等配置信息删除: # /u01/app//grid/crs/install/rootcrs.pl - ...
- Oracle:Redhat 7.4+Oracle Rac 11.2.0.4 执行root.sh报错处理
一.报错信息 二.原因分析 因为RHEL 7使用systemd而不是initd运行进程和重启进程,而root.sh通过传统的initd运行ohasd进程 三.解决办法 在RHEL 7中ohasd需要被 ...
随机推荐
- 【Codeforces Round #499 (Div. 1) B】Rocket
[链接] 我是链接,点我呀:) [题意] 让你猜到火星的距离x是多少. 已知1<=x<=m 然后你可以问系统最多60个问题 问题的形式以一个整数y表示 然后系统会回答你3种结果 -1 x& ...
- UVALive 3231 Fair Share
Fair Share Time Limit: 3000ms Memory Limit: 131072KB This problem will be judged on UVALive. Origina ...
- Java7的那些新特性
本文介绍的java 7新特性很多其它的感觉像是语法糖.毕竟java本身已经比較完好了.不完好的非常多比較难实现或者是依赖于某些底层(比如操作系统)的功能. 不过java7也实现了类似aio的强大功能. ...
- HDU 4314 Contest 2
可以知道,逃出的人中,最后一个应当是A+B最长的,这是很容易发现的.那么,最选逃出去的必定是A+B最短的.这符合最优. 于是,可以把各小矮人按A+B的和由大到小排序.定义DP[i][j]为i个人中逃出 ...
- Socket实现一个简单的半双工通信
Socket是client进行在网络与server进行数据交互的一种基本通信方式.通信有三种通信.即单工.半双工,和全双工. 所谓单工,就是仅仅可以进行单向通信,如bb机. 而半双工就是一来一回的通信 ...
- iOS企业证书网页分发全过程具体解释(图文并茂史无前例的具体哦)
iOS企业证书网页分发全过程具体解释 苹果的企业级证书公布的应用.是不用设备授权就可以直接安装,而且不限设备上限. 为了方便分发,苹果有协议实现通过网页链接直接下载安装企业级的应用. 首先须要说明它的 ...
- UVA 11294 - Wedding(Two-Set)
UVA 11294 - Wedding 题目链接 题意:有n对夫妻,0号是公主.如今有一些通奸关系(男男,女女也是可能的)然后要求人分配在两側.夫妻不能坐同一側.而且公主对面一側不能有两个同奸的人,问 ...
- SICP 习题 (1.41)解题总结
SICP 习题1.41 看似和周边的题目没有关系,突然叫我们去定义一个叫double的过程,事实上这道题的核心还是高阶函数. 题目要求我们定义一个过程double,它以一个过程作为參数,这个作为參数的 ...
- bzoj2768: [JLOI2010]冠军调查(双倍经验最小割)
2768: [JLOI2010]冠军调查 题目:传送门 题解: 双倍经验(1934) 代码: #include<cstdio> #include<cstring> #inclu ...
- m_Orchestrate learning system---十六、如何快速在一堆字符图标中找到所需
m_Orchestrate learning system---十六.如何快速在一堆字符图标中找到所需 一.总结 一句话总结:find查找字符 比如说找teacher feedback 的图标,可以多 ...