Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
The multicast DNS (mDNS) service: This service manages name resolution and
service discovery within the cluster. It resolves DNS requests on behalf of the Grid
Naming Service (GNS). A separate daemon is created within the High Availability
Services stack to support multicast DNS.
The Grid Naming Service (GNS): This service performs name resolution within the
cluster. It is implemented by the gnsd daemon, and it provides a gateway between
the cluster mDNS service and the external DNS servers.
dns
linux
zone ha-scan.grid.orcl.com {
type forward;
forward only ;
forwarders {192.168.100.185 port 53 ;};
}
windows2003
gns-vip
scan
gns-vip
dhcp
dns
oel2-priv
[oracle@oel2 ~]$
ll /dev/raw total 0
crw------- 1 oracle oinstall 162, 1 May 17
15:10 raw1 crw------- 1 oracle oinstall 162,
2 May 17 15:10 raw2 crw------- 1 oracle
oinstall 162, 3 May 17 15:10 raw3
crw------- 1 oracle oinstall 162, 4 May 17
15:10 raw4 crw------- 1 oracle oinstall 162,
5 May 17 15:10 raw5
scan name
root
oel1:orainstRoot.sh----->oel2:orainstRoot.sh------->oel1:root.sh----->oel2:root.sh
[root@oel1 ~]#
/u01/app/oraInventory/orainstRoot.sh
Changing permissions
of /u01/app/oraInventory. Adding read,write
permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
ok
[oracle@oel1 ~]$ crsctl stat res -t
-------------------------------------------------------------------------------NAME
TARGET STATE
SERVER
STATE_DETAILS
------------------------------------------------------------------------------- Local Resources
-------------------------------------------------------------------------------ora.DATA.dg
ONLINE ONLINE
oel1
ONLINE ONLINE
oel2
ora.LISTENER.
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
ONLINE
Started
ONLINE
Started
ONLINE
oel1
ONLINE
oel2
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
lsnr ora.asm
ora.eons
ora.gsd
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
oel1
oel2
ONLINE ONLINE
oel1
ONLINE ONLINE
oel2
------------------------------------------------------------------------------- Cluster Resources
------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr
1
ONLINE ONLINE
oel2
ora.LISTENER_SCAN2.lsnr
1
ONLINE ONLINE
oel1 ora.LISTENER_SCAN3.lsnr
1
ONLINE ONLINE
oel1
ora.gn
1
ONLINE ONLINE
oel1
s
ora.ons
ora.gns.vip
1
ONLINE
ONLINE
oel1
ora.oc4j
1
OFFLINE
ora.oel1.vip
1
ONLINE
oel1 ora.oel2.vip
1
ONLINE
oel2 ora.scan1.vip
1
ONLINE
oel2 ora.scan2.vip
1
ONLINE
oel1 ora.scan3.vip
1
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
oel1
ip
vip*2
gns_vip*1
scan_vip*3
6 ip
dns
C:\Users\dex>nslookup ha-scan.grid.orcl.com
: UnKnown
Address: 192.168.100.200
:
:
ha-scan.grid.orcl.com
Addresses: 192.168.100.222
192.168.100.221
192.168.100.228
C:\Users\dex>nslookup ha-scan.grid.orcl.com
: UnKnown
Address: 192.168.100.200
:
:
ha-scan.grid.orcl.com
Addresses: 192.168.100.222
192.168.100.228
192.168.100.221
lsnr
C:\Users\dex>tnsping ha-scan.grid.orcl.com
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 17-MAY2012 16:07:37
Copyright (c) 1997, 2010, Oracle.
crs_statcrs_startcrs_stop
[oracle@oel1 ~]$ srvctl config scan
SCAN name: ha-scan.grid.orcl.com, Network:
1/192.168.100.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /192.168.100.221/192.168.100.221
SCAN VIP name: scan2, IP: /192.168.100.222/192.168.100.222
SCAN VIP name: scan3, IP: /192.168.100.228/192.168.100.228
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)
(KEY=LISTENER_SCAN2))) STATUS of the LISTENER
-----------------------Alias
LISTENER_SCAN2
Version
TNSLSNR for Linux: Version 11.2.0.1.0 Production
Start Date
17-MAY-2012 15:51:24
Uptime
0 days 1 hr. 0 min. 39 sec
Trace Level
off
Security
ON: Local OS Authentication
SNMP
OFF
Listener Parameter File
/u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File
/u01/app/oracle/diag/tnslsnr/oel1/listener_scan2/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)
(KEY=LISTENER_SCAN2)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=192.168.100.222)(PORT=1521)))
The listener supports no services
The command completed successfully
without
gns
gns dns scan_listener
/etc/hosts /etc/hosts
10g scan_vip
hosts
hosts
[root@oel1 ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1
localhost
192.168.100.210 oel1.dex.com
oel1
192.168.10.210 oel1-priv.dex.com
oel1-priv
192.168.100.212 oel1-vip.dex.com
oel1-vip
192.168.100.211 oel2.dex.com
oel2
192.168.10.211 oel2-priv.dex.com
192.168.100.213 oel2-vip.dex.com
oel2-priv
oel2-vip
host ha-scan
[root@oel1 ~]#
/u01/app/oraInventory/orainstRoot.sh
Changing permissions
of /u01/app/oraInventory. Adding read,write
permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@oel2 ~]#
/u01/app/oraInventory/orainstRoot.sh
Changing permissions
of /u01/app/oraInventory. Adding read,write
permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
vi /u01/app/oraInventory/logs/installActions2012-05-19_02-56-24PM.log
INFO: Checking Single Client Access Name (SCAN)...
next
ONLINE
ONLINE
oel1
oel2
ONLINE
Started
ONLINE
Started
ONLINE
oel1
ONLINE
oel2
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
lsnr ora.asm
ora.eons
ora.gsd
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
oel1
oel2
ONLINE ONLINE
oel1
ONLINE ONLINE
oel2
------------------------------------------------------------------------------- Cluster Resources
-------------------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr
1
ONLINE ONLINE
oel1 ora.oc4j
1
OFFLINE OFFLINE
ora.oel1.vip
1
ONLINE ONLINE
oel1 ora.oel2.vip
1
ONLINE ONLINE
oel2
ora.ons
ora.scan1.vip
1
ONLINE
ONLINE
oel1
scan1 vip
15:53:05
C:\Users\dex>tnsping 192.168.100.220:1521
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 19-MAY2012 16:05:59
Copyright (c) 1997, 2010, Oracle.
gns
dns dhcp
dhcp
hosts
vip scanvip
vi /etc/hosts
Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1
localhost
192.168.100.210 oel1.dex.com
oel1
192.168.10.210 oel1-priv.dex.com
oel1-priv
192.168.100.211 oel2.dex.com
oel2
192.168.10.211 oel2-priv.dex.com
dns
vi /etc/resolv.conf
search grid.dex.com
nameserver
192.168.100.200
oel2-priv
gns
root
[root@oel1 bin]# ./srvctl add gns -i 192.168.100.123 -d grid.dex.com
network
11.2.0.2
srvctl modify network -w dhcp
network ip
scan orarootagent dhcp
vip scan_vip
[root@oel1 bin]# ./crsctl modify resource ora.net1.network -attr
"USR_ORA_AUTO=dhcp"
scan
[root@oel1 bin]# ./srvctl stop scan_listener
[root@oel1 bin]# ./srvctl remove scan f
[root@oel1 bin]# ./srvctl remove scan_listener f
[root@oel1 bin]# ./srvctl add scan -n hascan.grid.dex.com
[root@oel1
bin]#
./srvctl
confg scan
SCAN
name:
ha-scan.grid.dex.com,
1/192.168.100.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: <not
assigned> SCAN VIP name:
scan2, IP: <not assigned> SCAN
VIP name: scan3, IP: <not
assigned>
Network:
vip
./srvctl stop listener
./srvctl stop vip -n oel1
./srvctl stop vip -n oel2
./srvctl
./srvctl
./srvctl
./srvctl
stop nodeapps f
remove nodeapps -f
add nodeapps -S 192.168.100.0/255.255.255.0/eth0 -l 6100 -r 6200
confg nodeapps
ONLINE
ora.net1.netw
ork ora.ons
OFFLINE OFFLINE
OFFLINE OFFLINE
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
oel1
oel2
ONLINE ONLINE
oel1
ONLINE ONLINE
oel2
------------------------------------------------------------------------------- Cluster Resources
------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr
1
ONLINE ONLINE
oel2 ora.LISTENER_SCAN2.lsnr
1
ONLINE ONLINE
oel1 ora.LISTENER_SCAN3.lsnr
1
ONLINE ONLINE
oel1
ora.gn
1
ONLINE ONLINE
oel1
s
ora.gns.vip
1
ONLINE
oel1 ora.oc4j
1
OFFLINE
ora.oel1.vip
1
ONLINE
oel1 ora.oel2.vip
1
ONLINE
oel2 ora.scan1.vip
1
ONLINE
oel2 ora.scan2.vip
1
ONLINE
oel1 ora.scan3.vip
1
ONLINE
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
oel1
dns 192.168.100.200
C:\Users\dex>tnsping ha-scan.grid.dex.com
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 19-MAY2012 22:30:30
Copyright (c) 1997, 2010, Oracle.
gns
15:16:
33
oel1
2012/05/18
/
u01/app/11.2.0/grid/cdata/ha/backup_20120518_1
15:16:
24
oel1
2012/05/18
/
u01/app/11.2.0/grid/cdata/ha/backup_20120518_1
15:16:
19
scan scan_listener
[root@oel1 bin]# ./srvctl stop scan_listener
[root@oel1 bin]# ./srvctl stop scan
scan scan_listener
[root@oel1 bin]# ./srvctl remove scan_listener
Remove scan listener? (y/[n])
y [root@oel1 bin]# ./srvctl
remove scan Remove the
scan? (y/[n]) y
gns
[root@oel1 bin]# ./srvctl stop
gns [root@oel1 bin]# ./srvctl
remove gns Remove GNS? (y/
[n]) y
host
[root@oel1 bin]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1
localhost
192.168.100.210 oel1.dex.com
oel1
192.168.10.210 oel1-priv.dex.com
oel1-priv
192.168.100.110 oel1-vip.dex.com
oel1-vip
192.168.100.211 oel2.dex.com
oel2
192.168.10.211 oel2-priv.dex.com
192.168.100.111 oel2-vip.dex.com
192.168.100.12
oel2-priv
oel2-vip
ha-scan.dex.com ha-scan
network
[root@oel1 bin]# ./crsctl modify resource ora.net1.network -attr
"USR_ORA_AUTO= " [root@oel1 bin]# ./crsctl stat res
ora.net1.network -p
USR_ORA_AUTO=
scan
[root@oel1 bin]# ./srvctl add scan -n ha-scan.dex.com
[root@oel1 bin]# ./srvctl add scan_listener
vip
[root@oel1 bin]# ./srvctl modify nodeapps -n oel1 -A oel1vip/255.255.255.0/eth0
[root@oel1 bin]# ./srvctl modify nodeapps -n oel2 -A oel2vip/255.255.255.0/eth0
ONLINE
ONLINE
oel1
oel2
ONLINE
Started
ONLINE
Started
ONLINE
oel1
ONLINE
oel2
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
lsnr ora.asm
ora.eons
ora.gsd
ONLINE
ONLINE
ONLINE
ONLINE
oel1
oel2
oel1
oel2
ONLINE ONLINE
oel1
ONLINE ONLINE
oel2
------------------------------------------------------------------------------- Cluster Resources
------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr
1
ONLINE ONLINE
oel2
ora.ons
ora.oc4j
1
OFFLINE
ora.oel1.vip
1
ONLINE
oel1 ora.oel2.vip
1
ONLINE
oel2 ora.scan1.vip
1
ONLINE
OFFLINE
ONLINE
ONLINE
ONLINE
oel2
C:\Users\dex>tnsping 192.168.100.12
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 19-MAY2012 22:54:33
Copyright (c) 1997, 2010, Oracle.
gns oel1:root.sh
Running Oracle 11g root.sh script...
The following environment variables
are set as: ORACLE_OWNER=
oracle
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to
/usr/local/bin ... Copying
oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
acfsroot:
ACFS-9302:
No
installation
found
at
/u01/app/11.2.0/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5uekx86_64/bin.
fles
CRS-2673:
Attempting
to
stop
'ora.cssdmonitor' on 'oel1' CRS-2677: Stop of
'ora.cssdmonitor' on 'oel1' succeeded CRS2673: Attempting to stop 'ora.cssd' on 'oel1'
CRS-2677: Stop of 'ora.cssd' on 'oel1'
succeeded
CRS-2673: Attempting to stop 'ora.gpnpd'
on 'oel1' CRS-2677: Stop of 'ora.gpnpd'
on 'oel1' succeeded CRS-2673:
Attempting to stop 'ora.gipcd' on 'oel1'
CRS-2677: Stop of 'ora.gipcd' on 'oel1'
succeeded CRS-2673: Attempting to stop
'ora.mdnsd' on 'oel1' CRS-2677: Stop of
'ora.mdnsd' on 'oel1' succeeded CRS2672: Attempting to start 'ora.mdnsd' on
'oel1' CRS-2676: Start of 'ora.mdnsd' on
'oel1' succeeded CRS-2672: Attempting
to start 'ora.gipcd' on 'oel1' CRS-2676:
Start of 'ora.gipcd' on 'oel1' succeeded
CRS-2672: Attempting to start
'ora.gpnpd' on 'oel1' CRS-2676: Start of
'ora.gpnpd' on 'oel1' succeeded
CRS-2672:
Attempting
to
start
'ora.cssdmonitor' on 'oel1' CRS-2676: Start of
'ora.cssdmonitor' on 'oel1' succeeded CRS2672: Attempting to start 'ora.cssd' on 'oel1'
CRS-2672:
Attempting
to
start
'ora.diskmon' on 'oel1' CRS-2676: Start of
'ora.diskmon' on 'oel1' succeeded CRS2676: Start of 'ora.cssd' on 'oel1'
succeeded
CRS-2672: Attempting to start
'ora.ctssd' on 'oel1' CRS-2676: Start of
'ora.ctssd' on 'oel1' succeeded CRS2672: Attempting to start 'ora.asm' on
'oel1' CRS-2676: Start of 'ora.asm' on
'oel1' succeeded CRS-2672: Attempting
oel1
2012/05/
15:51:27
17
/
u01/app/11.2.0/grid/cdata/oel1/backup_20120517_1
55127.olr
Preparing packages for
installation... cvuqdisk-1.0.71
Confgure Oracle Grid Infrastructure for a Cluster ...
succeeded
Checking swap space: must be greater than 500 MB.
Actual 4083 MB
Passed
gns oel2:root.sh
[root@oel2 ~]# /u01/app/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables
are set as: ORACLE_OWNER=
oracle
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory:
[/usr/local/bin]: Copying dbhome to /usr/local/bin
...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
host oel1:root.sh
Running Oracle 11g root.sh script...
The following environment variables
are set as: ORACLE_OWNER=
oracle
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory:
[/usr/local/bin]: Copying dbhome to /usr/local/bin
...
at
ACFS-9302:
No
installation
fles
/u01/app/11.2.0/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5uekx86_64/bin.
CRS-2672: Attempting to start 'ora.gipcd'
on 'oel1' CRS-2672: Attempting to start
'ora.mdnsd' on 'oel1' CRS-2676: Start of
'ora.gipcd' on 'oel1' succeeded CRS2676: Start of 'ora.mdnsd' on 'oel1'
succeeded CRS-2672: Attempting to start
'ora.gpnpd' on 'oel1' CRS-2676: Start of
'ora.gpnpd' on 'oel1' succeeded
CRS-2672:
Attempting
to
start
'ora.cssdmonitor' on 'oel1' CRS-2676: Start of
'ora.cssdmonitor' on 'oel1' succeeded CRS2672: Attempting to start 'ora.cssd' on 'oel1'
CRS-2672:
Attempting
to
start
'ora.diskmon' on 'oel1' CRS-2676: Start of
'ora.diskmon' on 'oel1' succeeded CRS2676: Start of 'ora.cssd' on 'oel1'
succeeded
CRS-2672:
Attempting
to
start
'ora.ctssd' on 'oel1'
CRS-2676: Start of 'ora.ctssd' on 'oel1'
succeeded
ASM created and started successfully.
DiskGroup DATA created successfully.
clscfg: -install mode specifed
Successfully accumulated necessary
OCR keys. Creating OCR keys for user
'root', privgrp 'root'.. Operation
successful.
CRS-2672: Attempting to start 'ora.crsd' on 'oel1'
CRS-2676: Start of 'ora.crsd' on 'oel1' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk
50e83ca5f0614fb5bf803504ee9172f7. Successfully
replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting fle(s) successfully replaced
## STATE
File Universal Id
File Name Disk group
-- ----------------------------- --------1. ONLINE
50e83ca5f0614fb5bf803504ee9172f7
(/dev/raw/raw1) [DATA] Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'oel1'
CRS-2677: Stop of 'ora.crsd' on 'oel1'
succeeded CRS-2673: Attempting to
stop 'ora.asm' on 'oel1' CRS-2677: Stop
of 'ora.asm' on 'oel1' succeeded CRS-
host oel2:root.sh
Running Oracle 11g root.sh script...
The following environment variables
are set as: ORACLE_OWNER=
oracle
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory:
[/usr/local/bin]: Copying dbhome to /usr/local/bin
...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
fles
CRS-4402: The CSS daemon was started in exclusive mode but found an
active CSS daemon on node oel1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the
cluster
CRS-2672: Attempting to start
'ora.mdnsd' on 'oel2' CRS-2676: Start of
'ora.mdnsd' on 'oel2' succeeded CRS2672: Attempting to start 'ora.gipcd' on
'oel2' CRS-2676: Start of 'ora.gipcd' on
'oel2' succeeded CRS-2672: Attempting
to start 'ora.gpnpd' on 'oel2' CRS-2676:
Start of 'ora.gpnpd' on 'oel2' succeeded
CRS-2672:
Attempting
to
start
'ora.cssdmonitor' on 'oel2' CRS-2676: Start of
'ora.cssdmonitor' on 'oel2' succeeded CRS2672: Attempting to start 'ora.cssd' on 'oel2'
CRS-2672:
Attempting
to
start
'ora.diskmon' on 'oel2' CRS-2676: Start of
'ora.diskmon' on 'oel2' succeeded CRS2676: Start of 'ora.cssd' on 'oel2'
succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'oel2'
CRS-2676: Start of 'ora.ctssd' on 'oel2'
succeeded CRS-2672: Attempting to start
'ora.asm' on 'oel2' CRS-2676: Start of
'ora.asm' on 'oel2' succeeded CRS-2672:
Attempting to start 'ora.crsd' on 'oel2'
CRS-2676: Start of 'ora.crsd' on 'oel2'
succeeded CRS-2672: Attempting to start
'ora.evmd' on 'oel2' CRS-2676: Start of
'ora.evmd'
on 'oel2' succeeded
oel2
2012/05/
19
/
u01/app/11.2.0/grid/cdata/oel2/backup_20120519_1
Preparing packages for installation...
cvuqdisk-1.0.7-1
Confgure Oracle Grid Infrastructure for a Cluster ...
succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Actual 4094
MB
15:31:25
Passed
Good luck