Preparing to perform a full upgrade to SF Oracle RAC 6.0.1

Perform the preparatory steps in this section if you are performing a full upgrade of the cluster. Before you upgrade, make sure that your systems meet the hardware and software requirements for this release.

To prepare to upgrade SF Oracle RAC

  1. Log in as superuser to one of the nodes in the cluster.
  2. Back up the following configuration files on your system: main.cf, types.cf, CVMTypes.cf, CFSTypes.cf, OracleTypes.cf, OracleASMTypes.cf, PrivNIC.cf, MultiPrivNIC.cf, CRSResource.cf, /etc/llttab, /etc/llthosts, /etc/gabtab, /etc/vxfentab, /etc/vxfendg, /etc/vxfenmode

    For example:

    # cp /etc/VRTSvcs/conf/config/main.cf \
    /etc/VRTSvcs/conf/config/main.cf.save
  3. Installer verifies that recent backups of configuration files in VxVM private region have been saved in /etc/vx/cbr/bk.

    If not, a warning message is displayed.

    Warning:

    Backup /etc/vx/cbr/bk directory.

  4. Stop all applications that use VxFS or VxVM disk groups, whether local or CFS.

    If the applications are under VCS control:

    # hagrp -offline grp_name -any

    If the applications are not under VCS control:

    Use native application commands to stop the application.

  5. For Oracle RAC 9i, log in as Oracle user on each node and stop gsd:
    $ $ORACLE_HOME/bin/gsdctl stop
  6. For Oracle RAC 10g and Oracle RAC 11g:

    Stop all Oracle RAC resources.

    • If the database instances are managed by VCS, take the corresponding VCS service groups offline. As superuser, enter:

      # hagrp -offline group_name -any
    • If the database instances are not managed by VCS, then run the following on one node:

      $ srvctl stop database -d db_name
    • If the Oracle database is managed by VCS, set the AutoStart value to 0 to prevent the database service group from starting automatically when VCS starts:

      # haconf -makerw
      # hagrp -modify oracle_group AutoStart 0
      # haconf -dump -makero
    • If the Oracle database is not managed by VCS, change the management policy for the database to manual:

      $ srvctl modify database -d db-name -y manual
  7. Stop VCS on all nodes:
    # hastop -all

    One way to check whether or not the configuration is valid is to check the main.cf file as follows:

    # hacf -verify /etc/VRTSvcs/conf/config

    However, this method can not verify whether all configurations are vaild. If SF Oracle RAC was running properly before the upgrade, the configurations are valid.

  8. Unmount the non-system mounts on the VxFS file system, which is not under VCS control.
    # mount -v |grep vxfs
    # umount /mount_point

    Make sure that no processes are running which make use of mounted shared file system or shared volumes.

    # fuser -cu /mount_point
  9. If you plan to continue using the Storage Foundation for Databases (SFDB) tools, you must prepare to migrate the SFDB repository database before upgrading to SF Oracle RAC 6.0.1.

    See Pre-upgrade tasks for migrating the SFDB repository database.

  10. If you plan to upgrade the operating system, stop all ports.

    If you are running version 5.1 and later, stop the ports using the installer:

    # ./installsfrac -stop

    If you are running version 5.0.1x and earlier, stop the ports manually as follows:

    # vcsmmconfig -U
    # /sbin/init.d/odm stop
    # /sbin/init.d/vxfen stop
    # /sbin/gabconfig -U 
    # kcmodule vxfen=unused
    # kcmodule odm=unused
    # kcmodule vcsmm=unused
    # kcmodule vxglm=unused
    # kcmodule vxgms=unused
    # lmxconfig -U
    # kcmodule lmx=unused
    # kcmodule gab=unused
    # lltconfig -U
    # kcmodule llt=unused
  11. Perform the following steps only if you are upgrading from HP-UX 11i v2:

    • If the cluster-wide attribute "UseFence" is set to SCSI3, then reset the value to NONE in the /etc/VRTSvcs/conf/config/main.cf file.

    • On each node, edit the /etc/vxfenmode file to configure I/O fencing in disabled mode.

      # cat /etc/vxfenmode 
      vxfen_mode=disabled

      Note:

      If you upgrade from SF Oracle RAC 4.1 on HP-UX 11iv2, create /etc/vxfenmode file and populate it as above.

    • On each node, change LLT_START=0 in the file /etc/rc.config.d/lltconf.

    • On each node, remove the following device files:

      # rm -f /dev/llt
      # rm -f /dev/gab*
      # rm -f /dev/vxfen
      # rm -f /dev/lmx
      # rm -f /dev/vcsmm