测试需要,给一台1/4 rack的X8M HC刷机,使用oeda配置好的xml文件,执行命令列出本次刷机的所有步骤:
[root@dbm11dbadm01 linux-x64]# ./install.sh -cf osc-dbm11.xml -l
Initializing
1. Validate Configuration File
2. Setup Required Files
3. Create Users
4. Setup Cell Connectivity
5. Calibrate Cells
6. Create Cell Disks
7. Create Grid Disks
8. Install Cluster Software
9. Initialize Cluster Software
10. Install Database Software
11. Relink Database with RDS
12. Create ASM Diskgroups
13. Create Databases
14. Create Pluggable Databases
15. Apply Security Fixes
16. Install Autonomous Health Framework
17. Create Installation Summary
18. Resecure Machine
可以后台运行刷机命令,防止过程中会话中断,对应日志也方遍整体记录:
nohup /u01/soft/onecommand/linux-x64/install.sh -cf osc-dbm11.xml -s 1 &
nohup /u01/soft/onecommand/linux-x64/install.sh -cf osc-dbm11.xml -r 2-17 &
通常最后一步的Resecure Machine不需要执行,其他步骤可使用“-s”参数依次单独执行,也可以使用“-r”参数顺序执行。
顺利的话2h内基本就会全部执行成功。
但这次执行脚本在第二步就报错退出了:
inflating: /u01/app/grid/Oeda/Software/Patches/database/19.8.0.0.200714/31219897/PatchSearch.xml
bad CRC 06f8ea53 (should be eadebb4c)
Error: Errors occurred...
Collecting diagnostics...
Errors occurred. Send /u01/soft/onecommand/linux-x64/WorkDir/Diag-201202_220449.zip to Oracle to receive assistance.
ERROR:
Errors occurred...
Error: Errors occurred...
Errors occured, exiting...
可使用“-u”参数回退掉报错的步骤:
[root@dbm11dbadm01 linux-x64]# /u01/soft/onecommand/linux-x64/install.sh -cf osc-dbm11.xml -u 2
Initializing
Undoing Setup Required Files
Zip files have been deleted. If you want to delete patch and ship home directories, re-run this step with -delete flag
Successfully completed execution of step Setup Required Files [elapsed Time [Elapsed = 12139 mS [0.0 minutes] Wed Dec 02 22:13:13 CST 2020]]
[root@dbm11dbadm01 linux-x64]#
这种“bad CRC”的错误,怀疑是对应的介质本身有问题,若尝试解压会发现解压过程中某个文件同样存在CRC报错,重新在MOS下载此压缩包,比对md5果然不一样,重新上传正确的文件再次执行不再报错,问题解决。