You didn’t think there was going to be a part 2 did you?
$ORACLE_HOME/log is not included in creategoldimage which makes perfect sense as I was discussing on twitter for having garbage in a gold image but why is it being read?
For ol7-19-rac2, permission for $GRID_HOME/log has not been changed; hence, creategoldimage failed.
-exclFiles $ORACLE_HOME/.patch_storage (succeeded)
-exclFiles $ORACLE_HOME/log (failed)
[oracle@ol7-19-rac1 ~]$ ls /u01/app/19.0.0/grid/.patch_storage/ 29401763_Apr_11_2019_22_26_25 29585399_Apr_9_2019_19_12_47 29851014_Jul_5_2019_01_15_35 NApply 29517242_Apr_17_2019_23_27_10 29834717_Jul_10_2019_02_09_26 interim_inventory.txt record_inventory.txt 29517247_Apr_1_2019_15_08_20 29850993_Jul_5_2019_05_08_35 LatestOPatchSession.properties [oracle@ol7-19-rac1 ~]$ [oracle@ol7-19-rac1 ~]$ $ORACLE_HOME/gridSetup.sh -creategoldimage -exclFiles $ORACLE_HOME/.patch_storage -destinationlocation /u01/app/19.0.0/grid5 -silent Launching Oracle Grid Infrastructure Setup Wizard... Successfully Setup Software. Gold Image location: /u01/app/19.0.0/grid5/grid_home_2019-10-30_12-05-43PM.zip [oracle@ol7-19-rac1 ~]$ cd /u01/app/19.0.0/grid5/ [oracle@ol7-19-rac1 grid5]$ unzip -qo grid_home_2019-10-30_12-05-43PM.zip [oracle@ol7-19-rac1 grid5]$ ls .patch_storage ls: cannot access .patch_storage: No such file or directory [oracle@ol7-19-rac1 grid5]$ ls -l total 3203396 drwxr-xr-x. 3 oracle oinstall 22 Oct 8 20:33 acfs drwxr-xr-x. 3 oracle oinstall 18 Oct 1 23:47 acfsccm drwxr-xr-x. 3 oracle oinstall 18 Oct 1 23:47 acfsccreg drwxr-xr-x. 3 oracle oinstall 18 Oct 1 23:47 acfscm drwxr-xr-x. 3 oracle oinstall 18 Oct 1 23:47 acfsiob drwxr-xr-x. 3 oracle oinstall 18 Oct 1 23:47 acfsrd drwxr-xr-x. 3 oracle oinstall 18 Oct 1 23:47 acfsrm drwxr-xr-x. 2 oracle oinstall 102 Oct 1 23:45 addnode drwxr-xr-x. 3 oracle oinstall 18 Oct 1 23:47 advmccb drwxr-xr-x. 10 oracle oinstall 4096 Apr 17 2019 assistants drwxr-xr-x. 2 oracle oinstall 12288 Oct 30 12:05 bin drwxr-x---. 3 oracle oinstall 18 Oct 1 23:47 cdp drwxr-x---. 4 oracle oinstall 31 Oct 1 23:47 cha drwxr-xr-x. 4 oracle oinstall 87 Oct 1 23:45 clone drwxr-xr-x. 12 oracle oinstall 4096 Oct 30 12:05 crs drwx--x--x. 5 oracle oinstall 41 Oct 1 23:47 css drwxr-xr-x. 2 oracle oinstall 6 Oct 1 23:47 ctss drwxrwxr-x. 7 oracle oinstall 71 Apr 17 2019 cv drwxr-xr-x. 3 oracle oinstall 19 Apr 17 2019 dbjava drwxr-xr-x. 2 oracle oinstall 39 Oct 30 12:05 dbs drwxr-xr-x. 5 oracle oinstall 4096 Oct 1 23:45 deinstall drwxr-xr-x. 3 oracle oinstall 20 Apr 17 2019 demo drwxr-xr-x. 3 oracle oinstall 20 Apr 17 2019 diagnostics drwxr-xr-x. 13 oracle oinstall 4096 Apr 17 2019 dmu -rw-r--r--. 1 oracle oinstall 852 Aug 18 2015 env.ora drwxr-x---. 6 oracle oinstall 53 Oct 30 12:05 evm drwxr-x---. 2 oracle oinstall 6 Oct 1 23:47 gipc drwxr-x---. 2 oracle oinstall 6 Oct 1 23:47 gnsd drwxr-x---. 5 oracle oinstall 49 Oct 30 12:05 gpnp -rw-r--r--. 1 oracle oinstall 3280127704 Oct 30 12:12 grid_home_2019-10-30_12-05-43PM.zip -rwxr-x---. 1 oracle oinstall 3294 Mar 8 2017 gridSetup.sh drwxr-xr-x. 4 oracle oinstall 32 Apr 17 2019 has drwxr-xr-x. 3 oracle oinstall 19 Apr 17 2019 hs drwxr-xr-x. 11 oracle oinstall 4096 Oct 30 12:12 install drwxr-xr-x. 2 oracle oinstall 29 Apr 17 2019 instantclient drwxr-x---. 13 oracle oinstall 4096 Oct 30 12:05 inventory drwxr-xr-x. 8 oracle oinstall 82 Oct 30 12:05 javavm drwxr-xr-x. 3 oracle oinstall 35 Apr 17 2019 jdbc drwxr-xr-x. 6 oracle oinstall 4096 Oct 30 12:05 jdk drwxr-xr-x. 2 oracle oinstall 8192 Oct 8 20:28 jlib drwxr-xr-x. 10 oracle oinstall 4096 Apr 17 2019 ldap drwxr-xr-x. 4 oracle oinstall 12288 Oct 30 12:05 lib drwxr-xr-x. 5 oracle oinstall 42 Apr 17 2019 md drwxr-x---. 2 oracle oinstall 6 Oct 1 23:47 mdns drwxr-xr-x. 10 oracle oinstall 4096 Oct 30 12:05 network drwxr-xr-x. 5 oracle oinstall 46 Apr 17 2019 nls drwxr-x---. 2 oracle oinstall 6 Oct 1 23:47 ohasd drwxr-xr-x. 2 oracle oinstall 6 Oct 1 23:47 ologgerd drwxr-x---. 14 oracle oinstall 4096 Oct 1 23:45 OPatch drwxr-xr-x. 8 oracle oinstall 77 Apr 17 2019 opmn drwxr-xr-x. 4 oracle oinstall 34 Apr 17 2019 oracore drwxr-xr-x. 6 oracle oinstall 52 Apr 17 2019 ord drwxr-xr-x. 4 oracle oinstall 66 Apr 17 2019 ords drwxr-xr-x. 3 oracle oinstall 19 Apr 17 2019 oss drwxr-xr-x. 2 oracle oinstall 6 Oct 1 23:47 osysmond drwxr-xr-x. 8 oracle oinstall 4096 Oct 1 23:45 oui drwxr-xr-x. 4 oracle oinstall 33 Apr 17 2019 owm drwxr-xr-x. 5 oracle oinstall 39 Apr 17 2019 perl drwxr-xr-x. 6 oracle oinstall 78 Apr 17 2019 plsql drwxr-xr-x. 5 oracle oinstall 42 Apr 17 2019 precomp drwxr-xr-x. 2 oracle oinstall 26 Apr 17 2019 QOpatch drwxr-xr-x. 5 oracle oinstall 42 Apr 17 2019 qos drwxr-xr-x. 5 oracle oinstall 56 Oct 30 12:05 racg drwxr-xr-x. 15 oracle oinstall 4096 Oct 30 12:05 rdbms drwxr-xr-x. 3 oracle oinstall 21 Apr 17 2019 relnotes drwxr-xr-x. 7 oracle oinstall 102 Apr 17 2019 rhp -rwxr-xr-x. 1 oracle oinstall 405 Oct 1 23:45 root.sh -rwx------. 1 oracle oinstall 490 Apr 17 2019 root.sh.old -rw-r-----. 1 oracle oinstall 10 Apr 17 2019 root.sh.old.1 -rwx------. 1 oracle oinstall 405 Apr 18 2019 root.sh.old.2 -rw-r-----. 1 oracle oinstall 10 Apr 17 2019 root.sh.old.3 -rwxr-xr-x. 1 oracle oinstall 414 Oct 1 23:45 rootupgrade.sh -rwxr-x---. 1 oracle oinstall 628 Sep 3 2015 runcluvfy.sh drwxr-xr-x. 5 oracle oinstall 4096 Apr 17 2019 sdk drwxr-xr-x. 3 oracle oinstall 18 Apr 17 2019 slax drwxr-xr-x. 5 oracle oinstall 4096 Oct 8 20:26 sqlpatch drwxr-xr-x. 6 oracle oinstall 53 Oct 1 23:44 sqlplus drwxr-xr-x. 7 oracle oinstall 66 Oct 30 12:05 srvm drwxr-x---. 5 oracle oinstall 63 Oct 30 12:05 suptools drwxr-xr-x. 4 oracle oinstall 29 Apr 17 2019 tomcat drwxr-xr-x. 3 oracle oinstall 35 Apr 17 2019 ucp drwxr-xr-x. 7 oracle oinstall 71 Apr 17 2019 usm drwxr-xr-x. 2 oracle oinstall 33 Apr 17 2019 utl -rw-r-----. 1 oracle oinstall 500 Feb 6 2013 welcome.html drwxr-xr-x. 3 oracle oinstall 18 Apr 17 2019 wlm drwxr-xr-x. 3 oracle oinstall 19 Apr 17 2019 wwg drwxr-xr-x. 5 oracle oinstall 4096 Oct 8 20:35 xag drwxr-x---. 6 oracle oinstall 58 Apr 17 2019 xdk [oracle@ol7-19-rac1 grid5]$ ls /u01/app/19.0.0/grid/log/ crs diag ol7-19-rac1 procwatcher [oracle@ol7-19-rac1 grid5]$ ls /u01/app/19.0.0/grid5/log/* ls: cannot access /u01/app/19.0.0/grid5/log/*: No such file or directory [oracle@ol7-19-rac1 grid5]$ ================================================================================ [oracle@ol7-19-rac1 ~]$ $ORACLE_HOME/gridSetup.sh -creategoldimage -destinationlocation /u01/app/19.0.0/grid5 -silent Launching Oracle Grid Infrastructure Setup Wizard... Successfully Setup Software. Gold Image location: /u01/app/19.0.0/grid5/grid_home_2019-10-30_12-23-31PM.zip [oracle@ol7-19-rac1 ~]$ cd /u01/app/19.0.0/grid5/ [oracle@ol7-19-rac1 grid5]$ unzip -qo grid_home_2019-10-30_12-23-31PM.zip [oracle@ol7-19-rac1 grid5]$ ls /u01/app/19.0.0/grid/.patch_storage/ 29401763_Apr_11_2019_22_26_25 29585399_Apr_9_2019_19_12_47 29851014_Jul_5_2019_01_15_35 NApply 29517242_Apr_17_2019_23_27_10 29834717_Jul_10_2019_02_09_26 interim_inventory.txt record_inventory.txt 29517247_Apr_1_2019_15_08_20 29850993_Jul_5_2019_05_08_35 LatestOPatchSession.properties [oracle@ol7-19-rac1 grid5]$ ls /u01/app/19.0.0/grid5/.patch_storage/ 29401763_Apr_11_2019_22_26_25 29585399_Apr_9_2019_19_12_47 29851014_Jul_5_2019_01_15_35 NApply 29517242_Apr_17_2019_23_27_10 29834717_Jul_10_2019_02_09_26 interim_inventory.txt record_inventory.txt 29517247_Apr_1_2019_15_08_20 29850993_Jul_5_2019_05_08_35 LatestOPatchSession.properties [oracle@ol7-19-rac1 grid5]$ ls /u01/app/19.0.0/grid/log/ crs diag ol7-19-rac1 procwatcher [oracle@ol7-19-rac1 grid5]$ ls /u01/app/19.0.0/grid5/log/* ls: cannot access /u01/app/19.0.0/grid5/log/*: No such file or directory [oracle@ol7-19-rac1 grid5]$ ================================================================================ [oracle@ol7-19-rac2 ~]$ . oraenv <<< +ASM2 ORACLE_SID = [cdbrac2] ? The Oracle base remains unchanged with value /u01/app/oracle [oracle@ol7-19-rac2 ~]$ ls $ORACLE_HOME/log/* /u01/app/19.0.0/grid/log/diag: adrci_dir.mif asmtool clients /u01/app/19.0.0/grid/log/ol7-19-rac2: acfs admin afd chad client crsd cssd ctssd diskmon evmd gipcd gnsd gpnpd mdnsd ohasd racg srvm xag /u01/app/19.0.0/grid/log/procwatcher: ls: cannot access /u01/app/19.0.0/grid/log/procwatcher/prw.sh: Permission denied ls: cannot access /u01/app/19.0.0/grid/log/procwatcher/PRW_SYS_ol7-19-rac2: Permission denied ls: cannot access /u01/app/19.0.0/grid/log/procwatcher/prwinit.ora.org: Permission denied ls: cannot access /u01/app/19.0.0/grid/log/procwatcher/prwinit.ora: Permission denied ls: cannot access /u01/app/19.0.0/grid/log/procwatcher/prw_ol7-19-rac2.log: Permission denied prwinit.ora prwinit.ora.org prw_ol7-19-rac2.log prw.sh PRW_SYS_ol7-19-rac2 [oracle@ol7-19-rac2 ~]$ $ORACLE_HOME/gridSetup.sh -creategoldimage -exclFiles $ORACLE_HOME/log -destinationlocation /u01/app/19.0.0/grid5 -silent Launching Oracle Grid Infrastructure Setup Wizard... [FATAL] [INS-32700] The gold image creation failed. Check the install log /u01/app/oraInventory/logs/GridSetupActions2019-10-30_12-40-37PM for more details. Setup failed. [oracle@ol7-19-rac2 ~]$