Sun N1 Grid Engine 6.1 Administration Guide

Backing Up the Grid Engine System Configuration

You can back up your grid engine system configuration files automatically. The automatic backup process uses a configuration file called backup_template.conf. The backup configuration file is located by default in sge-root/util/install_modules/backup_template.conf.

The backup configuration file must define the following elements:

The backup template file looks like the following example:


##################################################
# Autobackup Configuration File Template
##################################################

# Please, enter your SGE_ROOT here (mandatory)
SGE_ROOT=""

# Please, enter your SGE_CELL here (mandatory)
SGE_CELL=""

# Please, enter your Backup Directory here
# After backup you will find your backup files here (mandatory)
# The autobackup will add a time /date combination to this dirname
# to prevent an overwriting!
BACKUP_DIR=""

# Please, enter true to get a tar/gz package
# and false to copy the files only (mandatory)
TAR="true"

# Please, enter the backup file name here. (mandatory)
BACKUP_FILE="backup.tar" 

To start the automatic backup process, type the following command on the sge_qmaster host:


inst_sge -bup -auto backup-conf

backup-conf is the full path to the backup configuration file.


Note –

You do not need to shut down any of the grid engine system daemons before you back up your configuration files.


Your backup is created in the directory specified by BACKUP_FILE. A backup log file called install.pid is also created in this directory. pid is the process ID number.

ProcedureHow to Perform a Manual Backup

  1. Type the following command to start a manual backup:


    inst_sge -bup
  2. Enter the <sge-root> directory or use the default.


    SGE Configuration Backup
    ------------------------
    
    This feature does a backup of all configuration you made
    within your cluster.
    Please enter your SGE_ROOT directory.
    Default: [/home/user/ts/u10]
  3. Enter the <sge-cell> name or use the default.


    Please enter your SGE_CELL name. Default: [default]
  4. Enter the backup destination directory or use the default.


    Where do you want to save the backupfiles?
    Default: [/home/user/ts/u10/backup]
  5. Choose whether to create a compressed tar backup file.

    If you are using different tar versions (gnu tar/ solaris tar), this option can make some trouble. In some cases the tar packages may be corrupt. Using the same tar binary for packing and unpacking works without problems.


    Shall the backup function create a compressed tarpackage with your files? (y/n) [y] >>
  6. Enter file name of backup file, default is given.


    ... starting with backup
    
    
    Please enter a filename for your backupfile. Default: [backup.tar] >>
  7. Backup will be perfomed, info output is printed.


    2007-01-11_22_43_22.dump
    bootstrap
    qtask
    settings.sh
    act_qmaster
    sgemaster
    settings.csh
    sgeexecd
    jobseqnum
    
    ... backup completed
    All information is saved in
    [/home/user/ts/u10/backup/backup.tar.gz[Z]]

ProcedureHow to Restore from a Backup

Before You Begin

Shutdown the qmaster daemon before you start the restore process.The spooling database will be changed during restore which might lead to dataloss, if restore and qmaster are trying to access the same data.

  1. Type the following command to start the restore process:


    inst_sge -rst 
  2. Read the messages on the screen and respond.


    SGE Configuration Restore
    -------------------------
    
    This feature restores the configuration from a backup you made
    previously.
    
    Hit, <ENTER> to continue!
  3. Enter the <sge-root> directory or use the default.


    Please enter your SGE_ROOT directory.
    Default: [/home/user/ts/u10]
  4. Enter the <sge-cell> name or use the default.


    Please enter your SGE_CELL name. Default: [default]
  5. Confirm the backup file format.

    The backup file can be in a format other than a compressed tar file.


    Is your backupfile in tar.gz[Z] format? (y/n) [y]
  6. Enter the full path to the backup file.


    Please enter the full path and name of your backup file.
    Default: [/home/user/ts/u10/backup/backup.tar.gz]
  7. Verify the spooling database information.

    The restore feature unpacks the backup file, and reads system information. To prevent data loss, you need to conform that the correct spooling database is detected.


    Copying backupfile to /tmp/bup_tmp_22_51_40
    
    /home/user/ts/u10/backup/backup.tar.gz
    2007-01-11_22_43_22.dump
    bootstrap
    qtask
    settings.sh
    act_qmaster
    sgemaster
    settings.csh
    sgeexecd
    jobseqnum
    
    Spooling Method: berkeleydb detected!
    
    
    The path to your spooling db is [/tmp/dom/spooldb]
    If this is correct hit <ENTER> to continue, else enter the path. >>
  8. Restart qmaster.