Top
ETERNUS SF Express V15.0 Operation Guide

5.2.2 Restoring Express Environment (Linux)

If any failure occurs in the Management Server, perform the following procedure to restore Management Server environment.
All operations are performed on the Management Server.

Information

About description in the procedure:

Directory name

Explanation

$BAK_DIR

This is a backup destination directory.

  1. Reconfigure the Express's manager.

    Install the ETERNUS SF Manager, and set up it as the Express's manager.
    For details on how to install and setup, refer to "Installation of ETERNUS SF Manager" and "Setup of ETERNUS SF Manager" in the "ETERNUS SF Installation and Setup Guide".

  2. Stop the ETERNUS SF Manager Web service.

    Execute the following shell script to stop the service.

    /opt/FJSVesfcm/bin/stop-webservice.sh
  3. Restore a backup data.

    Execute the following command. Specify 15432 to <port number> by default. If you have changed the port number, specify that port number to <port number>.

    /opt/FJSVesfcm/postgres/bin/psql -U esfpostgres -p <port number> postgres

    The prompt is displayed, and waiting for input. Input the following strings in order.

    master01!
    drop database esfdb;
    /q

    Execute the following command to restore the backup data. Specify 15432 to <port number> by default. If you have changed the port number, specify that port number to <port number>. The <file_name> is the file name specified when the backup data was created.

    /opt/FJSVesfcm/postgres/bin/psql -U esfpostgres -p <port number> -f $BAK_DIR/Common/<file_name> postgres

    The prompt is displayed, and waiting for input. Input the following strings.

    master01!
  4. Execute the following shell script to stop the ETERNUS SF Manager services.

    /opt/FJSVesfcm/bin/stopesf.sh

    Note

    When the batch is executed, the message that ETERNUS SF Manager Web Service has been already stopped is displayed many times. Please ignore because there is no problem.

  5. Restore the management information for disk storage system.

    Delete files under the following restore destination directory.
    However, do not delete the following directory itself. If the directory does not exist, create it.

    rm -rf /var/opt/FJSVssmgr/current/opencimom/logr/*

    Copy the files from the destination directory.

    cp -Rp $BAK_DIR/var/opt/FJSVssmgr/current/opencimom/logr/* /var/opt/FJSVssmgr/current/opencimom/logr/
  6. Restore the essential file.

    Delete the following restore destination file.

    rm -f /var/opt/FJSVssmgr/current/systemevent.csv

    Copy the following source file from the destination file. If the file does not exist, this step is unnecessary.

    cp -p $BAK_DIR/var/opt/FJSVssmgr/current/systemevent.csv /var/opt/FJSVssmgr/current/
  7. Restore files that are related to the performance management function.

    If you are not using the performance management function or the files related to the performance management function are not backed up, this step is unnecessary.

    Delete files and subdirectories under following restore destination directory.

    However, do not delete the restore destination directory itself. If the restore destination directory does not exist, create it.

    rm -f /etc/opt/FJSVssmgr/current/perf.conf
    rm -rf /etc/opt/FJSVssmgr/current/perfconf/*
    rm -rf /var/opt/FJSVssmgr/current/perf/*

    Copy the subdirectories and files from the destination directory.

    cp -p $BAK_DIR/etc/opt/FJSVssmgr/current/perf.conf /etc/opt/FJSVssmgr/current/
    cp -p $BAK_DIR/etc/opt/FJSVssmgr/current/perfconf/* /etc/opt/FJSVssmgr/current/perfconf/
    cp -Rp $BAK_DIR/var/opt/FJSVssmgr/current/perf/* /var/opt/FJSVssmgr/current/perf/
  8. Restore customizable files.

    Restore only the files and directories which were backed up.

    Delete files and subdirectories under following restore destination directory.

    However, do not delete the restore destination directory itself. If the restore destination directory does not exist, create it.

    rm -f /etc/opt/FJSVssmgr/current/sanma.conf
    rm -rf /etc/opt/FJSVssmgr/current/eventmail/*

    Copy the subdirectories and files from the destination directory.

    cp -p $BAK_DIR/etc/opt/FJSVssmgr/current/sanma.conf /etc/opt/FJSVssmgr/current/
    cp -Rp $BAK_DIR/etc/opt/FJSVssmgr/current/eventmail/* /etc/opt/FJSVssmgr/current/eventmail/
  9. Restore the polling service setting file.

    This restoration is unnecessary for the files which have not been backed up.

    Copy the file from the backup location.

    # cp -p $BAK_DIR/etc/opt/FJSVssmgr/current/polling/*.xml /etc/opt/FJSVssmgr/current/polling/
  10. Restore the files associated with definition of copy group and copy pair.

    This step is required only when using Advanced Copy function.

    Delete files under the following restore destination directory.

    rm -rf /etc/opt/FJSVccm/db/cg/*
    rm -f /etc/opt/FJSVccm/prop/user.properties
    rm -f /etc/opt/FJSVccm/accc/etc/stxc.alias
    rm -f /etc/opt/FJSVccm/accc/etc/stxc_ext.alias
    rm -f /etc/opt/FJSVccm/accc/etc/stxcvolinf

    Copy the subdirectories and files from the destination directory.
    It is unnecessary to restore the files which are not existed.

    cp -p $BAK_DIR/CCM/etc/db/eternus.xml /etc/opt/FJSVccm/db
    cp -p $BAK_DIR/CCM/var/micc/database/DeviceRegList.xml /var/opt/FJSVccm/micc/database
    cp -p $BAK_DIR/CCM/etc/prop/user.properties /etc/opt/FJSVccm/prop
    cp -p $BAK_DIR/CCM/etc/stxc.alias /etc/opt/FJSVccm/accc/etc
    cp -p $BAK_DIR/CCM/etc/stxc_ext.alias /etc/opt/FJSVccm/accc/etc
    cp -p $BAK_DIR/CCM/etc/stxcvolinf /etc/opt/FJSVccm/accc/etc
    cp -Rp $BAK_DIR/CCM/etc/db/cg/* /etc/opt/FJSVccm/db/cg
  11. Restore the license management database.

    Execute the following command. The <file_name> is the file name specified when the backup data was created.

    /opt/FJSVccm/bin/esflm restore $BAK_DIR/LM/<file_name>
  12. Execute the following shell script to start the ETERNUS SF Manager services.

    /opt/FJSVccm/bin/startesf.sh