Hello,
I'm trying to clone an existing RAC 12.1.0.2 installation for a new two-nodes cluster to be setup.
Target nodes seems ok from a pre-configuration point of view (let me know if any particular command has to be run).
I'm following official docs for cloning clusterware here:
https://docs.oracle.com/database/121/CWADD/clonecluster.htm#CWADD92116
If successful, I'm going to continue with Oracle RAC part as described here:
https://docs.oracle.com/database/121/RACAD/clonerac.htm#RACAD7333
I'm stuck with clusterware part.
BTW: it seems strange that the procedure is only about GRID_HOME and tells nothing about GRID_BASE that is about 7.5Gb on source node...
Just for starting tere is a problem with ownership of at least $ORACLE_HOME/bin directory.
On source server is owned by root
[root@ractest2 grid]# ll -d $ORACLE_HOME/bin
drwxr-xr-x. 2 root oinstall 12288 Nov 12 12:41 /u01/app/12.1.0/grid/bin
and the clone.pl script would not be able to backup files if I don't, at least initially, change group to oinstall:
Could not backup file /u01/app/12.1.0/grid/bin/srvconfig to /u01/app/12.1.0/grid/bin/srvconfig.ouibak
Could not backup file /u01/app/12.1.0/grid/bin/bndlchk to /u01/app/12.1.0/grid/bin/bndlchk.ouibak
Could not backup file /u01/app/12.1.0/grid/bin/kfod to /u01/app/12.1.0/grid/bin/kfod.ouibak
Could not backup file /u01/app/12.1.0/grid/bin/onsctl to /u01/app/12.1.0/grid/bin/onsctl.ouibak
Could not backup file /u01/app/12.1.0/grid/bin/lsnodes to /u01/app/12.1.0/grid/bin/lsnodes.ouibak
# chmod 775 $ORACLE_HOME/bin
restarting from scratch and after running the clone.pl script it arrives at 85% and exits with return code 255.
[grid@ractest2 ~]$ ./start.sh
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/grid" "ORACLE_HOME=/u01/app/12.1.0/grid" "ORACLE_HOME_NAME=OraGridHome1" "INVENTORY_LOCATION=/u01/app/grid/../oraInventory" "CLUSTER_NODES={ractest1,ractest2}" "LOCAL_NODE=ractest2" "CRS=TRUE" -silent -paramFile /u01/app/12.1.0/grid/clone/clone_oraparam.ini
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 4377 MB Passed
Checking swap space: must be greater than 500 MB. Actual 2047 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-03-22_02-41-36PM. Please wait ...You can find the log of this install session at:
/u01/app/grid/../oraInventory/logs/cloneActions2016-03-22_02-41-36PM.log
.................................................. 5% Done.
...
.................................................. 85% Done.
..........[grid@ractest2 ~]$ echo $?
255
I find this at the end of log file /u01/app/grid/../oraInventory/logs/cloneActions2016-03-22_02-41-36PM.log
INFO: Checkpoint:Initializing checkpoint session in oiifwinstallphasewcce.
INFO: Checkpoint:Index session object added to oiicexitops.
INFO: Starting Installations
INFO: Starting Installations
INFO: Link phase has been specified as needed
INFO: Setup phase has been specified as needed
INFO: Synchronizing inventory. Please wait...
INFO: Synchronizing inventory. Please wait...
INFO:
INFO:
INFO: Restoring all templates saved during installation to the Oracle home being cloned.
SEVERE: oracle.sysman.oii.oiif.oiifb.OiifbEndIterateException: Failed to restore the saved templates to the Oracle home being cloned. Aborting the clone operation.
at oracle.sysman.oii.oiic.OiicCloneAPISession.doOperation(OiicCloneAPISession.java:319)
at oracle.sysman.oii.oiic.OiicAPIInstaller.doOperation(OiicAPIInstaller.java:1023)
at oracle.sysman.oii.oiic.OiicAPIInstaller.doOperation(OiicAPIInstaller.java:971)
at oracle.install.driver.oui.OUISetupDriver.setup(OUISetupDriver.java:360)
at oracle.install.driver.oui.SetupJob.call(SetupJob.java:320)
at oracle.install.driver.oui.SetupJob.call(SetupJob.java:53)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:682)
INFO: Update the state machine to STATE_READY
INFO: isSuccessfullInstallation: false
INFO: isSuccessfullRemoteInstallation: true
INFO: Adding ExitStatus FAILURE to the exit status set
INFO: Shutting down OUISetupDriver.JobExecutorThread
SEVERE: Failed to restore the saved templates to the Oracle home being cloned. Aborting the clone operation.
INFO: Dispose the current Session instance
INFO: Dispose the install area control object
INFO: Update the state machine to STATE_CLEAN
INFO: Finding the most appropriate exit status for the current application
INFO: Exit Status is -1
INFO: Shutdown Application
INFO: Unloading Setup Driver
I found nothing at the moment on metalink about this "Templates" problem...
Any tip?
Thanks in advance.
Gianluca
PS: I'm finding both 12.1.0.1 and 12.1.0.2 versions of Oracle the worse ever piece of software made by Oracle from a quality point of view, at least on Linux platform I'm on.
Sometimes it seems to me to have come back to the end of 1990 when I tested one of the first 8.0.5 versions for Linux that had one famous problem when you made a commit, the write on filesystem was not sync...