測試須要,給一臺1/4 rack的X8M HC刷機,使用oeda配置好的xml文件,執行命令列出本次刷機的全部步驟:linux
[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
能夠後臺運行刷機命令,防止過程當中會話中斷,對應日誌也方遍總體記錄:shell
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內基本就會所有執行成功。
但此次執行腳本在第二步就報錯退出了:app
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果真不同,從新上傳正確的文件再次執行再也不報錯,問題解決。ui