10 Backing Up and Restoring LTFS-LE

This chapter describes how to backup and restore the LTFS-LE system. The following topics are included:

Overview

The backup and restore procedure outlines the steps to follow to backup, uninstall, re-install and restore the LTFS-LE 1.0.x product, including the MySQL database and the global namespace metadata. This procedure can also be used when a complete system failure or disaster occurs.

The restore procedure may include a complete re-installation of the operating system and the LTFS-LE product components (complete system failure). The restore procedure may also be performed without re-installing the operating system. This recovery process relies on the retention of a complete database and global namespace metadata backups of the existing system and platform that is maintained externally from the current system.

This procedure is specific to only a complete LTFS-LE backup and restore where the hardware, library configuration and volume set have not changed. Other types of recovery have different procedures with different levels of completeness and point-in-time recovery service level goals.

Note:

It is very important that the expectation for the level of recovery is only up to the time of the backup being restored. For example, the database backup was taken at 1:14 AM. Any changes to the database after this time are stored in redo-logs and would be lost if a complete loss of the system (disaster) occurred.

Note:

No new product updates or versions can be introduced before the database recovery is complete. This would introduce unnecessary risk as results are unpredictable and may cause the product or platform to become unstable and not supportable.

Creating Your Backup Directory

Backup of the LTFS-LE 1.0.x MySQL database and LTFS-LE 1.0.x global namespace metadata must be automated and stored externally off the LTFS-LE system. To do this:

  1. Supply the external NFS mountpoint and manage disk space and backup rotation.

    Example Exported NFS Mountpoint:

    /mnt/backups
    
    
    

    In the example above, backups is the name of your backup directory and will be used in the examples in this chapter.

  2. Configure the off-system, external NFS mountpoint in the LTFS-LE BUI and schedule System Backups on at least a daily basis.

Backing Up LTFS-LE

For a known point-in-time backup of the LTFS-LE components, run:

# /var/opt/mysql/mysql/scripts/backupDBAndMetadata.sh /mnt/backups

Example Output:

/backups/LtfsleDB_SLV_Backup_1370896815.cur
/backups/LTFS-LE-metadata_Backup_1370896816.tar

Restoring LTFS-LE

  1. Depending of the type of restore you need to perform, select one of the following:

    • Completely re-install the operating system and LTFS-LE components (when a system failure or disaster occurs).

      Refer to the StorageTek Linear Tape File System, Library Edition 1.0 Planning and Installation Guide for more information.

    • Re-install the LTFS-LE components (without re-installing the operating system) by running the LTFS-LE uninstall program.

      Note:

      This option relies on the retention of a complete database and global namespace metadata backups of the existing system and platform that is maintained externally from the current system.

      Refer to Uninstalling LTFS-LE in the StorageTek Linear Tape File System, Library Edition 1.0 Planning and Installation Guide for more information.

      To uninstall LTFS-LE (after you have backed up LTFS-LE), change to the downloads directory and run the following uninstall script:

      manageLtfsleServices -t
      manageLtfsleServices -i
      

      Note:

      Review the output from the manageLtfsleServices -i command to verify that all the LTFS-LE services have terminated. If they have terminated, continue with the uninstall script. If they have not terminated, reboot the system, then restart the uninstall process beginning with step 1.
      ./uninstallLTFSLE.sh
      
  2. Complete a new installation of LTFS-LE 1.0.x.

    Note:

    No new product updates or versions can be introduced before the database recovery is complete. This would introduce unnecessary risk as results are unpredictable and may cause the product or platform to become unstable and not supportable.

    Follow the StorageTek Linear Tape File System, Library Edition 1.0 Planning and Installation Guide as if you were installing for the first time. You do not have to install the operating system if you have already backed up LTFS-LE.

  3. After the final restart of the LTFS-LE process, shutdown all LTFS-LE 1.0.x Linux services.

    # /var/opt/Oracle/LTFS_LE/bin/manageLtfsleServices –t
    
  4. Verify LTFS-LE 1.0.x services have been shutdown.

    # /var/opt/Oracle/LTFS_LE/bin/manageLtfsleServices –i
    
  5. Copy the most recent MySQL database and global namespace backups from the external mountpoint preserving the date and time of the file. Use -p (preserve original date and time stamp) as in the following example to a local temporary directory (example: tmp/database).

    mkdir /tmp/database
    cp -pr /backups/* /tmp/database
    
  6. Disable all LTFS-LE services to prevent any premature startup of the database.

    # /var/opt/Oracle/LTFS_LE/bin/manageLtfsleServices –d
    
  7. Restore the MySQL database.

    # /var/opt/mysql/mysql/scripts/restoreDB.sh /tmp/database
    
  8. Force a new MySQL 1.0 database backup.

    # /var/opt/mysql/mysql/scripts/backupDB.sh /backups
    

    Example Output:

    /backups/LtfsleDB_SLV_Backup_1366311254.cur
    
  9. Restore the LTFS-LE 1.0.x global namespace metadata from the TAR image backup maintained externally from the system.

    Example:

    # cd /
    # tar -xvpf /tmp/database/LTFS-LE-metadata_Backup_1363958591.tar
    
  10. Enable all previously disabled LTFS-LE 1.0.x Linux services.

    # /var/opt/Oracle/LTFS_LE/bin/manageLtfsleServices -a
    
  11. Restart the system using either of the following commands:

    • # reboot -n

    • # shutdown -n X -r

      where X is the number of minutes before the system reboots.

    Note:

    Enter # shutdown --help for additional options.
  12. Verify that all services are started quickly (3-8 minutes after startup).

    # /var/opt/Oracle/LTFS_LE/bin/manageLtfsleServices -i
    
  13. Verify that the database data has been restored by using the LTFS-LE BUI and navigating to the Storage tab.

    The LTFS-LE software automatically executes auto rediscovery on restart. Verify that the drives are online and volumes are in the same state as when the last backup was taken.