安装准备工作完成。开始安装集群软件
#配置互信 root用户执行: /home/grid/sshsetup/sshUserSetup.sh -user grid -hosts "node1 node2" -advanced exverify –confirm /home/grid/sshsetup/sshUserSetup.sh -user oracle -hosts "node1 node2" -advanced exverify -confirm #检查 安装之前使用脚本进行校验,确保所有的 failed 选项都可以忽略。 ./runcluvfy.sh stage -pre crsinst -n node1,node2 -fixup -verbose #新建/etc/oraInst.loc 文件 #在 2 个节点上新建/etc/oraInst.loc,文件中的内容如下: inventory_loc=/u01/app/oraInventory inst_group=oinstall #输入下面的命令在 oraInst.loc 文件上设置合适的拥有者,组和权限: chown oracle:oinstall /etc/oraInst.loc chmod 664 /etc/oraInst.loc
开始安装集群软件(静默安装)
./runInstaller -silent -force -noconfig -IgnoreSysPreReqs -ignorePrereq -showProgress \
INVENTORY_LOCATION=/u01/app/oraInventory \
SELECTED_LANGUAGES=en \
ORACLE_BASE=/u01/app/grid \
ORACLE_HOME=/u01/app/11.2.0/grid \
oracle.install.asm.OSDBA=asmdba \
oracle.install.asm.OSOPER=asmoper \
oracle.install.asm.OSASM=asmadmin \
oracle.install.crs.config.storageOption=ASM_STORAGE \
oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL \
oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL \
oracle.install.crs.config.useIPMI=false \
oracle.install.asm.diskGroup.name=OCR \
oracle.install.asm.diskGroup.redundancy=NORMAL \
oracle.installer.autoupdates.option=SKIP_UPDATES \
oracle.install.crs.config.gpnp.scanPort=1521 \
oracle.install.crs.config.gpnp.configureGNS=false \
oracle.install.crs.config.autoConfigureClusterNodeVIP=false \
oracle.install.option=CRS_CONFIG \
oracle.install.crs.config.ClusterType=STANDARD \
oracle.install.asm.SYSASMPassword=ps_oracle \
oracle.install.asm.monitorPassword=ps_oracle \
oracle.install.config.managementOption=NONE \
oracle.install.crs.config.ignoreDownNodes=false \
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm-disk* \
oracle.install.asm.diskGroup.disks=/dev/asm-diskab,/dev/asm-diskac,/dev/asm-diskad \
oracle.install.crs.config.gpnp.scanName=test-scan \
oracle.install.crs.config.clusterName=test-cluster \
oracle.install.crs.config.clusterNodes=node1:node1-vip,node2:node2-vip \
oracle.install.crs.config.networkInterfaceList=eth0:192.168.11.0:1,eth1:192.80.11.0:2 \
ORACLE_HOSTNAME=node1
##########################################################################
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 37622 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3951 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-08-02_11-16-15AM. Please wait ...
[grid@node1 grid]$ [WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2021-08-02_11-16-15AM.log
Prepare in progress.
.................................................. 9% Done.
Prepare successful.
Copy files in progress.
.................................................. 15% Done.
.................................................. 20% Done.
.................................................. 25% Done.
.................................................. 30% Done.
.................................................. 35% Done.
.................................................. 40% Done.
.................................................. 45% Done.
........................................
Copy files successful.
Link binaries in progress.
Link binaries successful.
.................................................. 62% Done.
Setup files in progress.
Setup files successful.
.................................................. 76% Done.
Perform remote operations in progress.
.................................................. 89% Done.
Perform remote operations successful.
The installation of Oracle Grid Infrastructure 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2021-08-02_11-16-15AM.log' for more details.
.................................................. 94% Done.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /u01/app/11.2.0/grid/root.sh
Execute /u01/app/11.2.0/grid/root.sh on the following nodes:
[node1, node2]
.................................................. 100% Done.
Execute Root Scripts successful.
As install user, execute the following script to complete the configuration.
1. /u01/app/11.2.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>
Note:
1. This script must be run on the same host from where installer was run.
2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).
Successfully Setup Software.
##########################################################################################################################
#双节点执行root.sh
[root@node1 lib64]# /u01/app/11.2.0/grid/root.sh
Check /u01/app/11.2.0/grid/install/root_node1_2021-08-02_11-28-07.log for the output of root script
[grid@node1 grid]$ tail -100f /u01/app/11.2.0/grid/install/root_node1_2021-08-02_11-28-07.log
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding Clusterware entries to upstart
CRS-2672: Attempting to start 'ora.mdnsd' on 'node1'
CRS-2676: Start of 'ora.mdnsd' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'node1'
CRS-2676: Start of 'ora.gpnpd' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node1'
CRS-2672: Attempting to start 'ora.gipcd' on 'node1'
CRS-2676: Start of 'ora.cssdmonitor' on 'node1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'node1'
CRS-2672: Attempting to start 'ora.diskmon' on 'node1'
CRS-2676: Start of 'ora.diskmon' on 'node1' succeeded
CRS-2676: Start of 'ora.cssd' on 'node1' succeeded
ASM created and started successfully.
Disk Group OCR created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 2218c656fef24f9ebf932a21b01b9cd2.
Successful addition of voting disk 8814090c047d4f1cbfaf6141fb705bbe.
Successful addition of voting disk 94182c65f9ca4f20bf12bd24da613c96.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 2218c656fef24f9ebf932a21b01b9cd2 (/dev/asm-diskab) [OCR]
2. ONLINE 8814090c047d4f1cbfaf6141fb705bbe (/dev/asm-diskac) [OCR]
3. ONLINE 94182c65f9ca4f20bf12bd24da613c96 (/dev/asm-diskad) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'node1'
CRS-2676: Start of 'ora.asm' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'node1'
CRS-2676: Start of 'ora.OCR.dg' on 'node1' succeeded
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@node2 lib64]# /u01/app/11.2.0/grid/root.sh
Check /u01/app/11.2.0/grid/install/root_node2_2021-08-02_11-35-13.log for the output of root script
tail -f /u01/app/11.2.0/grid/install/root_node2_2021-08-02_11-35-13.log
[root@node2 lib64]# tail -f /u01/app/11.2.0/grid/install/root_node2_2021-08-02_11-35-13.log
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node node1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
######################################报错解决方法##############################################
Installing Trace File Analyzer
Failed to create keys in the OLR, rc = 127, Message:
/u01/app/11.2.0/grid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
Failed to create keys in the OLR at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 7660.
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
解决:
[root@node1 ~]# cd /lib64/
[root@node1 lib64]# ll |grep libcap
lrwxrwxrwx. 1 root root 18 Jul 30 10:05 libcap-ng.so.0 -> libcap-ng.so.0.0.0
-rwxr-xr-x. 1 root root 21160 Nov 5 2010 libcap-ng.so.0.0.0
lrwxrwxrwx. 1 root root 14 Jul 30 10:05 libcap.so.2 -> libcap.so.2.16
-rwxr-xr-x. 1 root root 19016 Aug 23 2011 libcap.so.2.16
[root@node1 lib64]# ln -s libcap.so.2.16 libcap.so.1
重新执行root.sh
############################################################################################################
#执行 configToolAllCommands 脚本 (只在node1上执行即可)
[grid@node1 ~]$ /u01/app/11.2.0/grid/cfgtoollogs/configToolAllCommands
Setting the invPtrLoc to /u01/app/11.2.0/grid/oraInst.loc
perform - mode is starting for action: configure
perform - mode finished for action: configure
You can see the log file: /u01/app/11.2.0/grid/cfgtoollogs/oui/configActions2021-08-02_02-35-51-PM.log
[grid@node1 ~]$ tail -100f /u01/app/11.2.0/grid/cfgtoollogs/oui/configActions2021-08-02_02-35-51-PM.log
The action configuration is performing
------------------------------------------------------
The plug-in Update Inventory is running
/u01/app/11.2.0/grid/oui/bin/runInstaller -nowait -noconsole -waitforcompletion -ignoreSysPrereqs -updateNodeList -silent CRS=true "CLUSTER_NODES={node1,node2}" ORACLE_HOME=/u01/app/11.2.0/grid
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 3950 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
The plug-in Update Inventory has successfully been performed
------------------------------------------------------
------------------------------------------------------
The plug-in Oracle Net Configuration Assistant is running
Parsing command line arguments:
Parameter "orahome" = /u01/app/11.2.0/grid
Parameter "orahnam" = Ora11g_gridinfrahome1
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /u01/app/11.2.0/grid/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "silent" = true
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Profile configuration complete.
node1...
node2...
Oracle Net Listener Startup:
Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
The plug-in Oracle Net Configuration Assistant has successfully been performed
------------------------------------------------------
------------------------------------------------------
The plug-in Automatic Storage Management Configuration Assistant is running
The plug-in Automatic Storage Management Configuration Assistant has failed its perform method
------------------------------------------------------
The action configuration has failed its perform method
集群软件安装完成 检查集群状态
crsctl stat res -t
crsctl check cluster
srvctl status nodeapps
srvctl status asm
srvctl status listener
srvctl config listener -a
srvctl config nodeapps -a -g -s -l
srvctl status scan
srvctl config scan
cluvfy comp clocksync -verbose
