Sun N1 Grid Engine 6.1 Installation Guide

ProcedureHow to Upgrade to 6.1 Software Using Berkeley DB Server


64-bit SPARC only –

For 64–bit Solaris systems, a 64–bit Berkeley DB server was not available. The 32–bit server was used instead. For doing a backup or a restore, the 32–bit db_dump and db_load binaries are recommended. The Solaris 32–bit packages have to be installed also. For all N1 Grid Engine releases and patches earlier than 6.0 Update 9, use the ./inst_sge -bup command for doing a backup.

In N1 Grid Engine 6.0 Update 10, the backup still looks for the libdb-4.2.so file, which is not available. This leads to a backup failure. In this case, type the following command to enable the backup to function:


% touch $SGE_ROOT/lib/sol-sparc/libdb-4.2.so

  1. Shut down the entire cluster.

    Type the following command:


    % qconf -ke all -ks -km
    
  2. Shut down the Berkeley DB server.

    Type the following command:


    % sgebdb stop
    
  3. Back up your cluster.

    Type the following command:


    # inst_sge -bup
    
  4. Update the database structures.

    Due to changes in the Berkeley DB software, the internal database structures changed. To adjust the structures, follow these steps:

    1. On the qmaster host, type the following command as sgeadmin user:


      # $SGE_ROOT/utilbin/<arch>/db_dump -f /tmp/dump.out -h <db_home> sge
      

      Note –

      If you are using a Berkeley DB RPC Server, you must execute this command on the RPC Server host rather than on the qmaster host.


    2. Verify that the command was executed correctly and the file /tmp/dump.txt is not empty.

    3. If the command succeeded, type the following commands as sgeadmin user to remove the previous Berkeley DB database files:


      # cd db_home
      # rm -f *
      

      Caution – Caution –

      Do not delete the directory. Only delete the files within the directory.


  5. Extract the new binaries and common files to the $SGE_ROOT directory.

    Replace the old files with the new files.

  6. Restore the Berkeley DB database.

    On the qmaster host, type the following command as sgeadmin user:


    # $SGE_ROOT/utilbin/<arch>/db_load -f /tmp/dump.out -h <db_home> sge
    

    Note –

    If you are using a Berkeley DB RPC Server, you must execute this command on the RPC Server host rather than on the qmaster host.


  7. Initiate the upgrade procedure.

    Type the following command:


    % ./inst_sge -upd
    

    Follow the instructions and answer the questions presented to you.

    The upgrade will create new settings and rc-script files. The old files will be saved under the same filename with a time stamp attached. The upgrade procedure starts the qmaster and scheduler daemon automatically. You have to start execution host daemons manually.

    After the upgrade procedure completes, check the newly created settings files and copy the new rc-scripts to your startup location (for example, /etc/init.d).

  8. Restart the execution daemons.

    Use the sgeexecd rc file.

    Upgrade is complete.