Your current location: Home tutorial Programming Development Oracle tutorial how to replace a private network Nic In an oracle cluster thanks to 3lian8 delivery time: Source: how to replace a private network Nic In an oracle cluster. Today is.
Your current location: home> tutorial> programming and development> Oracle tutorial> how to replace a private network Nic In an oracle cluster thanks to 3lian8 delivery time: Source: how to replace a private network Nic In an oracle cluster. Today is.
Your current location: Home> tutorial> programming> Oracle tutorial> how to replace a private network Nic In an oracle Cluster
How to replace a private network Nic In an oracle Cluster
Thanks for the 3lian8 delivery time: Source: Sanlian tutorial
How to replace a private network Nic In an oracle cluster.
Today is, and the learning progress is also in full swing. Today, I will record a small part of the experiment.
We know that the RAC network has a private network and a public network. The public network provides customer access requests and the private network provides oracle's cache fusion and node heartbeat functions, in 11G R2, four private networks can be executed for cache fusion.
But when I started the installation, I ignored it. How can I modify it after the installation? This step can simulate how to add a private Nic for oracle RAC. If the NIC is damaged.
In addition, there are several situations for network adjustment, such as changing the private host name, changing the network segment and mask, changing the private address, changing the mtu of the private network, and changing the private Nic Subnet or mask.
Today we will talk about how to change the private network card. In this case, you need to use a tool named oracle interface configuration assistant (oifcfg ).
Before 11G r2, oracle stored the network interface name and subnet information in ocr, so you can use oifcfg to complete the modification:
1. add and delete Private Network Interfaces
Add a private network interface
$ ORA_CRS_HOME/bin/oifcfg setif-global/: cluster_interconnect
Delete A Private Network Interface
$ ORA_CRS_HOME/bin/oifcfg delif-global/
2. View Nic changes
$ ORA_CRS_HOME/bin/oifcfg getif
3. Restart the Cluster
Crsctl stop crs
Crsctl start crs
So how can I modify the Intranet for oracle 11G R2 or later?
In 11.2gi, the private network configuration is not saved in ocr, but in the gpnp profile file. This file is an xml file. Manual Editing is not recommended. before configuring the private network
First, back up the file for subsequent operations. Because my lab environment is exactly 11.2.0.4, the actual modification process is recorded immediately.
1. Back up the gpnp profile file (each node must be backed up ).
Node 1:
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Root @ rac-one cdgi] # su-grid
[Grid @ rac-one ~] $ Cd/u01/app/11.2.0/grid/gpnp/rac-one/profiles/peer/
[Grid @ rac-one peer] $ ls-l
Total 12
-Rw-r -- 1 grid oinstall 1857 Feb 25 profile. old
-Rw-r -- 1 grid oinstall 1830 Feb 13 profile_orig.xml
-Rw-r -- 1 grid oinstall 1896 Feb 25 profile. xml
[Grid @ rac-one peer] $ cp profile. xml profile. xml_bak
[Grid @ rac-one peer] $ ls-ltr
Total 16
-Rw-r -- 1 grid oinstall 1830 Feb 13 profile_orig.xml
-Rw-r -- 1 grid oinstall 1857 Feb 25 profile. old
-Rw-r -- 1 grid oinstall 1896 Feb 25 profile. xml
-Rw-r -- 1 grid oinstall 1896 Mar 17 profile. xml_bak
[Grid @ rac-one peer] $
Node 2:
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Root @ rac-two ~] # Su-grid
[Grid @ rac-two ~] $ Cd/u01/app/11.2.0/grid/gpnp/rac-two/profiles/peer/
[Grid @ rac-two peer] $ ls-l
Total 12
-Rw-r -- 1 grid oinstall 1857 Feb 25 profile. old
-Rw-r -- 1 grid oinstall 1830 Feb 13 profile_orig.xml
-Rw-r -- 1 grid oinstall 1896 Feb 25 profile. xml
[Grid @ rac-two peer] $ cp profile. xml profile. xml_bak
[Grid @ rac-two peer] $ ls-ltr
Total 16
-Rw-r -- 1 grid oinstall 1830 Feb 13 profile_orig.xml
-Rw-r -- 1 grid oinstall 1857 Feb 25 profile. old
-Rw-r -- 1 grid oinstall 1896 Feb 25 profile. xml
-Rw-r -- 1 grid oinstall 1896 Mar 17 profile. xml_bak
[Grid @ rac-two peer] $
2. view the private network information of the current node
Node 2:
?
1
2
3
4
5
6
7
8
9
10
[Grid @ rac-two peer] $ oifcfg getif
Eth0 192.168.4.0 global public
Eth3 192.168.2.0 global cluster_interconnect
[Grid @ rac-two peer] $ oifcfg iflist-p-n
Eth0 192.168.4.0 PRIVATE 255.255.255.0
Eth3 192.168.2.0 PRIVATE 255.255.255.0
Eth3 169.254.0.0 UNKNOWN 255.255.0.0
Eth1 192.168.1.0 PRIVATE 255.255.255.0
Eth2 192.168.1.0 PRIVATE 255.255.255.0
[Grid @ rac-two peer] $
Node 1:
?
1
2
3
4
5
6
7
8
9
10
[Grid @ rac-one peer] $ oifcfg getif
Eth0 192.168.4.0 global public
Eth3 192.168.2.0 global cluster_interconnect
[Grid @ rac-one peer] $ oifcfg iflist-p-n
Eth0 192.168.4.0 PRIVATE 255.255.255.0
Eth1 192.168.1.0 PRIVATE 255.255.255.0
Eth2 192.168.1.0 PRIVATE 255.255.255.0
Eth3 192.168.2.0 PRIVATE 255.255.255.0
Eth3 169.254.0.0 UNKNOWN 255.255.0.0
[Grid @ rac-one peer] $
Currently, the name of the private network device connected to the cluster is eth3. You need to change the name of the private network device in the cluster from eth3 to eth1 and eth2.
3. Add new internal cluster connections
?
1
2
3
[Grid @ rac-one peer] $ oifcfg setif-global eth1/192.168.1.0: cluster_interconnect
[Grid @ rac-one peer] $ oifcfg setif-global eth2/192.168.1.0: cluster_interconnect
[Grid @ rac-one peer] $
4. Verification
Node 1:
?
1
2
3
4
5
6
[Grid @ rac-one peer] $ oifcfg getif
Eth0 192.168.4.0 global public
Eth3 192.168.2.0 global cluster_interconnect
Eth1 192.168.1.0 global cluster_interconnect
Eth2 192.168.1.0 global cluster_interconnect
[Grid @ rac-one peer] $
Node 2:
?
1
2
3
4
5
6
[Grid @ rac-two peer] $ oifcfg getif
Eth0 192.168.4.0 global public
Eth3 192.168.2.0 global cluster_interconnect
Eth1 192.168.1.0 global cluster_interconnect
Eth2 192.168.1.0 global cluster_interconnect
[Grid @ rac-two peer] $
5. Delete the internal connection of the cluster 192.168.2.0:
[Grid @ rac-two peer] $ oifcfg delif-global eth3/192.168.2.0
[Grid @ rac-two peer] $
6. Disable the cluster, disable the crs service, and restart the cluster on all nodes.
Node 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
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
Root @ rac-one cdgi] #./crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac-one'
CRS-2673: Attempting to stop 'ora. crsd' on 'rac-one'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac-one'
CRS-2673: Attempting to stop 'ora. LISTENER_SCAN1.lsnr 'on 'rac-one'
CRS-2673: Attempting to stop 'ora. GIDG. dg 'on 'rac-one'
CRS-2673: Attempting to stop 'ora. registry. acfs 'on 'rac-one'
CRS-2673: Attempting to stop 'ora. DATADG. dg 'on 'rac-one'
CRS-2673: Attempting to stop 'ora. LISTENER. lsnr 'on 'rac-one'
CRS-2677: Stop of 'ora. LISTENER_SCAN1.lsnr 'on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. scan1.vip 'on 'rac-one'
CRS-2677: Stop of 'ora. LISTENER. lsnr 'on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. rac-one.vip 'on 'rac-one'
CRS-2677: Stop of 'ora. DATADG. dg 'on 'rac-one' succeeded
CRS-2677: Stop of 'ora. scan1.vip 'on 'rac-one' succeeded
CRS-2672: Attempting to start 'ora. scan1.vip 'on 'rac-two'
CRS-2677: Stop of 'ora. registry. acfs 'on 'rac-one' succeeded
CRS-2677: Stop of 'ora. rac-one.vip 'on 'rac-one' succeeded
CRS-2672: Attempting to start 'ora. rac-one.vip 'on 'rac-two'
CRS-2676: Start of 'ora. scan1.vip 'on 'rac-two' succeeded
CRS-2672: Attempting to start 'ora. LISTENER_SCAN1.lsnr 'on 'rac-two'
CRS-2676: Start of 'ora. rac-one.vip 'on 'rac-two' succeeded
CRS-2676: Start of 'ora. LISTENER_SCAN1.lsnr 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. GIDG. dg 'on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. asm 'on 'rac-one'
CRS-2677: Stop of 'ora. asm 'on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. ons 'on 'rac-one'
CRS-2677: Stop of 'ora. ons 'on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. net1.network 'on 'rac-one'
CRS-2677: Stop of 'ora. net1.network' on 'rac-one' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac-one' has completed
CRS-2677: Stop of 'ora. crsd' on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. mdnsd' on 'rac-one'
CRS-2673: Attempting to stop 'ora. crf' on 'rac-one'
CRS-2673: Attempting to stop 'ora. ctssd 'on 'rac-one'
CRS-2673: Attempting to stop 'ora. evmd 'on 'rac-one'
CRS-2673: Attempting to stop 'ora. asm 'on 'rac-one'
CRS-2673: Attempting to stop 'ora. drivers. acfs 'on 'rac-one'
CRS-2677: Stop of 'ora. mdnsd' on 'rac-one' succeeded
CRS-2677: Stop of 'ora. crf' on 'rac-one 'succeeded
CRS-2677: Stop of 'ora. evmd 'on 'rac-one' succeeded
CRS-2677: Stop of 'ora. asm 'on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. cluster_interconnect.haip 'on 'rac-one'
CRS-2677: Stop of 'ora. ctssd 'on 'rac-one' succeeded
CRS-2677: Stop of 'ora. cluster_interconnect.haip 'on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora.css d' on 'rac-one'
CRS-2677: Stop of 'ora.css d' on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. gipcd 'on 'rac-one'
CRS-2677: Stop of 'ora. drivers. acfs 'on 'rac-one' succeeded
CRS-2677: Stop of 'ora. gipcd' on 'rac-one' succeeded
CRS-2673: Attempting to stop 'ora. gpnpd 'on 'rac-one'
CRS-2677: Stop of 'ora. gpnpd 'on 'rac-one' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac-one' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[Root @ rac-one cdgi] # crsctl disable crs
-Bash: crsctl: command not found
[Root @ rac-one cdgi] #./crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
[Root @ rac-one cdgi] #./crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[Root @ rac-one cdgi] #./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
Node 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[Root @ rac-two ~] # Cd/u01/app/11.2.0/grid/bin/
[Root @ rac-two bin] #./crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac-two'
CRS-2673: Attempting to stop 'ora. crsd' on 'rac-two'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac-two'
CRS-2673: Attempting to stop 'ora. LISTENER_SCAN1.lsnr 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. LISTENER_SCAN3.lsnr 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. GIDG. dg 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. registry. acfs 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. DATADG. dg 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. cvu 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. c1' on 'rac-two'
CRS-2673: Attempting to stop 'ora. LISTENER. lsnr 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. LISTENER_SCAN2.lsnr 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. rac-two.vip 'on 'rac-two'
CRS-2677: Stop of 'ora. LISTENER_SCAN1.lsnr 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. scan1.vip 'on 'rac-two'
CRS-2677: Stop of 'ora. cvu' on 'rac-two' succeeded
CRS-2677: Stop of 'ora. LISTENER. lsnr 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. LISTENER_SCAN3.lsnr 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. scan3.vip 'on 'rac-two'
CRS-2677: Stop of 'ora. LISTENER_SCAN2.lsnr 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. scan2.vip 'on 'rac-two'
CRS-2677: Stop of 'ora. DATADG. dg 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. rac-two.vip 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. rac-one.vip 'on 'rac-two'
CRS-2677: Stop of 'ora. registry. acfs 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. scan1.vip 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. scan3.vip 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. scan2.vip 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. rac-one.vip 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. GIDG. dg 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. asm 'on 'rac-two'
CRS-2677: Stop of 'ora. brax' on 'rac-two' succeeded
CRS-2677: Stop of 'ora. asm 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. ons 'on 'rac-two'
CRS-2677: Stop of 'ora. ons 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. net1.network 'on 'rac-two'
CRS-2677: Stop of 'ora. net1.network' on 'rac-two 'succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac-two' has completed
CRS-2677: Stop of 'ora. crsd' on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. drivers. acfs 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. crf' on 'rac-two'
CRS-2673: Attempting to stop 'ora. ctssd 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. evmd 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. asm 'on 'rac-two'
CRS-2673: Attempting to stop 'ora. mdnsd' on 'rac-two'
CRS-2677: Stop of 'ora. crf' on 'rac-two' succeeded
CRS-2677: Stop of 'ora. evmd 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. mdnsd' on 'rac-two' succeeded
CRS-2677: Stop of 'ora. asm 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. cluster_interconnect.haip 'on 'rac-two'
CRS-2677: Stop of 'ora. ctssd 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora. cluster_interconnect.haip 'on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora.css d' on 'rac-two'
CRS-2677: Stop of 'ora. drivers. acfs 'on 'rac-two' succeeded
CRS-2677: Stop of 'ora.css d' on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. gipcd 'on 'rac-two'
CRS-2677: Stop of 'ora. gipcd' on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora. gpnpd 'on 'rac-two'
CRS-2677: Stop of 'ora. gpnpd 'on 'rac-two' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac-two' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[Root @ rac-two bin] #./crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[Root @ rac-two bin] #./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[Root @ rac-two bin] #
7. Verification
?
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
68
69
[Grid @ rac-two ~] $ Crsctl status resource-t
--------------------------------------------------------------------------------