OS : redhat 7.6
RDBMS :12.2.0.1
今天在安装Oracle restart的时候,运行root.sh,提示错误。root.sh结果如下:
[root@asm12c grid]# sh root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/12.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 ...
Creating /etc/oratab file...
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/12.2.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/asm12c/crsconfig/roothas_2020-11-23_09-35-41AM.log
2020/11/23 09:35:41 CLSRSC-363: User ignored prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node asm12c successfully pinned.
2020/11/23 09:36:35 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2020/11/23 09:37:54 CLSRSC-400: A system reboot is required to continue installing.
The command '/u01/app/12.2.0/grid/perl/bin/perl -I/u01/app/12.2.0/grid/perl/lib -I/u01/app/12.2.0/grid/crs/install /u01/app/12.2.0/grid/crs/install/roothas.pl ' execution failed
[root@asm12c grid]#
看安装的log,里面记录的内容如下:
> ACFS-9504: Copying file '/u01/app/12.2.0/grid/usm/install/cmds/bin/acfsdbg' to the path '/sbin/acfsdbg'
> ACFS-9504: Copying file '/u01/app/12.2.0/grid/usm/install/cmds/bin/acfsdbg.bin' to the path '/sbin/acfsdbg.bin'
> ACFS-9504: Copying file '/u01/app/12.2.0/grid/usm/install/cmds/bin/acfsutil' to the path '/sbin/acfsutil'
> ACFS-9504: Copying file '/u01/app/12.2.0/grid/usm/install/cmds/bin/acfsutil.bin' to the path '/sbin/acfsutil.bin'
> ACFS-9504: Copying file '/u01/app/12.2.0/grid/usm/install/cmds/bin/umount.acfs' to the path '/sbin/umount.acfs'
> ACFS-9504: Copying file '/u01/app/12.2.0/grid/usm/install/cmds/bin/umount.acfs.bin' to the path '/sbin/umount.acfs.bin'
> ACFS-9176: Entering 'ga admin name'
> ACFS-9178: Return code = CACHED_ASMADMIN
> ACFS-9177: Return from 'ga admin name'
> ACFS-9176: Entering 'getparm'
> ACFS-9178: Return code = grid
> ACFS-9177: Return from 'getparm'
> ACFS-9504: Copying file '/u01/app/12.2.0/grid/lib/libacfs12.so' to the path '/opt/oracle/extapi/64/acfs/orcl/1/'
> ACFS-9308: Loading installed ADVM/ACFS drivers.
> ACFS-9321: Creating udev for ADVM/ACFS.
> ACFS-9323: Creating module dependencies - this may take some time.
> ACFS-9176: Entering 'ld usm drvs'
> ACFS-9154: Loading 'oracleoks.ko' driver.
> modprobe: FATAL: Module oracleoks not found.
> ACFS-9109: oracleoks.ko driver failed to load.
> ACFS-9178: Return code = USM_FAIL
> ACFS-9177: Return from 'ld usm drvs'
> ACFS-9428: Failed to load ADVM/ACFS drivers. A system reboot is recommended.
> ACFS-9310: ADVM/ACFS installation failed.
> ACFS-9178: Return code = USM_REBOOT_RECOMMENDED
> ACFS-9177: Return from 'install'
> ACFS-9176: Entering 'acroot ex'
> ACFS-9178: Return code = 3
> ACFS-9177: Return from 'acroot ex'
>End Command output
2020-11-23 09:54:01: /u01/app/12.2.0/grid/bin/crsctl disable has ... disabling CRS in preparation for reboot.
2020-11-23 09:54:01: Executing cmd: /u01/app/12.2.0/grid/bin/crsctl disable has
2020-11-23 09:54:01: Command output:
> CRS-4621: Oracle High Availability Services autostart is disabled.
>End Command output
2020-11-23 09:54:01: /u01/app/12.2.0/grid/bin/crsctl disable has ... CRS disabled, ready for reboot.
2020-11-23 09:54:01: USM driver install status is 3
2020-11-23 09:54:01: ACFS drivers unable to be installed.
2020-11-23 09:54:01: Executing cmd: /u01/app/12.2.0/grid/bin/clsecho -p has -f clsrsc -m 400
2020-11-23 09:54:01: Command output:
> CLSRSC-400: A system reboot is required to continue installing.
>End Command output
2020-11-23 09:54:01: CLSRSC-400: A system reboot is required to continue installing.
2020-11-23 09:54:01: Invoking "/u01/app/12.2.0/grid/bin/cluutil -ckpt -oraclebase /u01/app/grid -writeckpt -name ROOTHAS_ACFSINST -state FAIL"
2020-11-23 09:54:01: trace file=/u01/app/grid/crsdata/asm12c/crsconfig/cluutil9.log
2020-11-23 09:54:01: Running as user grid: /u01/app/12.2.0/grid/bin/cluutil -ckpt -oraclebase /u01/app/grid -writeckpt -name ROOTHAS_ACFSINST -state FAIL
2020-11-23 09:54:01: s_run_as_user2: Running /bin/su grid -c ' echo CLSRSC_START; /u01/app/12.2.0/grid/bin/cluutil -ckpt -oraclebase /u01/app/grid -writeckpt -name ROOTHAS_ACFSINST -state FAIL '
2020-11-23 09:54:01: Removing file /tmp/GGwoXlLdRR
2020-11-23 09:54:01: Successfully removed file: /tmp/GGwoXlLdRR
2020-11-23 09:54:01: pipe exit code: 0
2020-11-23 09:54:01: /bin/su successfully executed
2020-11-23 09:54:01: Succeeded in writing the checkpoint:'ROOTHAS_ACFSINST' with status:FAIL
处理方式,第一次是卸载了GI,重新安装,重新安装的时候,还提示这个,就直接忽略了, 忽略后,继续安装正常,安装完毕后,查看集群状态,正常。安装Oracle正常,dbca建库,提示ASM磁盘错误,retry后正常了。
[grid@asm12c ~]$ crsctl status resource -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE asm12c STABLE
ora.LISTENER.lsnr
ONLINE ONLINE asm12c STABLE
ora.asm
ONLINE ONLINE asm12c Started,STABLE
ora.ons
OFFLINE OFFLINE asm12c STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE asm12c STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.driver.afd
1 ONLINE ONLINE asm12c STABLE
ora.evmd
1 ONLINE ONLINE asm12c STABLE
ora.test.db
1 ONLINE ONLINE asm12c Open,HOME=/u01/app/o
racle/product/12.2.0
/dbhome_1,STABLE
--------------------------------------------------------------------------------
[grid@asm12c ~]$
-- MOS上的一些文档,可以参考。
Bug 27769638 - standalone gi upgrade (o. restart) from 12.1 to 12.2 fails with: "clsrsc-400" (Doc ID 27769638.8)
While Manually Installing a Patch 'rootcrs.sh -patch' Fails with - CLSRSC-400: A system reboot is required to continue installing. (Doc ID 2360097.1)
ALERT: root.sh Fails With "CLSRSC-400" While Installing GI 12.2.0.1 on RHEL or OL with RedHat Compatible Kernel (RHCK) 7.3 (Doc ID 2284463.1)
Root.sh Failed with AFD Error (Doc ID 2323316.1)
END