Monday, March 10, 2014

Preparing the Oracle Clusterware Home for Cloning

The following procedure is used to prepare the Oracle Clusterware home for cloning:

  1. Install Oracle Clusterware on the first machine.
    • Use the Oracle Universal Installer (OUI) GUI interactively.
    • Install patches that are required (for example, 11.1.0.n).
    • Apply one-off patches, if necessary.
  2. Shut down Oracle Clusterware.
    • # crsctl stop crs -wait
  3. Make a copy of the Oracle Clusterware home.
    • # mkdir /stagecrs
    • # cp –prf /u01/app/11.2.0/grid /stagecrs
  4. Remove files that pertain only to the source node.
    • # cd /stagecrs/grid
    • # rm -rf /stagecrs/grid/log/<hostname>
    • # rm -rf log/<hostname>
    • # rm -rf gpnp/<hostname>
    • # find gpnp -type f -exec rm -f {} \;
    • # rm -rf root.sh*
    • # rm -rf gpnp/*
    • # rm -rf crs/init/*
    • # rm -rf cdata/*
    • # rm -rf crf/*
    • # rm -rf network/admin/*.ora
    • # find . -name '*.ouibak' -exec rm {} \;
    • # find . -name '*.ouibak.1' -exec rm {} \;
    • # find cfgtoollogs -type f -exec rm -f {} \;
  5. Create an archive of the source.
    • # cd /stagecrs/grid
    • # tar –zcvpf /tmp/crs111060.tgz .
  6. Restart Oracle Clusterware.
    • # crsctl start crs


No comments:

Post a Comment