06.08.2015 Views

IBM XIV Storage System Copy Services and Migration

IBM XIV Storage System: Copy Services and Migration - Common ...

IBM XIV Storage System: Copy Services and Migration - Common ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To show that the restore operation is working, the database is dropped (Figure 1-50) <strong>and</strong> allthe data is lost. After the drop operation is complete, the database is permanently removedfrom MySQL. It is possible to perform a restore action from the incremental backup. For thisexample, the snapshot function is used to restore the entire database.Figure 1-50 Dropping the databaseThe restore script, shown in Example 1-19, stops the MySQL daemon <strong>and</strong> unmounts theLinux file systems. Then the script restores the snapshot <strong>and</strong> finally remounts <strong>and</strong> startsMySQL.Example 1-19 Restore script[root@x345-tic-30 ~]# cat mysql_restore# This resotration just overwrites all in the database <strong>and</strong> puts the# data back to when the snapshot was taken. It is also possible to do# a restore based on the incremental data; this script does not h<strong>and</strong>le# that condition.# Report the time of backing update# First shutdown mysqlmysqladmin -u root -p password shutdown# Unmount the filesystemsumount /xiv_pfe_1umount /xiv_pfe_2#List all the snap groups/root/<strong>XIV</strong>GUI/xcli -c xiv_pfe snap_group_list cg="MySQL Group"#Prompt for the group to restoreecho "Enter Snapshot group to restore: "read -e snap_groupChapter 1. Snapshots 37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!