Veritas Storage Foundation 5.0 for Oracle RAC Configuration Guide Extracts for HP Serviceguard Storage Management Suite, Second Edition, May 2008

Contents
4
Using Storage Checkpoints and Storage Rollback for Backup and Restore. . . . . . . . . . . . . . . . . . . . . . 43
About Storage Checkpoints and Storage Rollback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Determining Space Requirements for Storage Checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Performance of Storage Checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Backing up and Recovering the Database Using Storage Checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . 48
Verifying a Storage Checkpoint Using the Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Guidelines for Oracle Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Using the Storage Checkpoint Command Line Interface (CLI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Overview of Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Examples of Using the Command Line Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Creating or Updating the Repository Using dbed_update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Creating Storage Checkpoints Using dbed_ckptcreate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Displaying Storage Checkpoints Using dbed_ckptdisplay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Mounting Storage Checkpoints Using dbed_ckptmount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Unmounting Storage Checkpoints Using dbed_ckptumount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Performing Storage Rollback Using dbed_ckptrollback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Removing Storage Checkpoints Using dbed_ckptremove. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Cloning the Oracle Instance Using dbed_clonedb. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
5. Using FlashSnap for Backup and Recovery
About Veritas Database FlashSnap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Solving Typical Database Problems with Database FlashSnap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
About Database FlashSnap Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Using Database FlashSnap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Using Database FlashSnap Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Using Database FlashSnap Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Planning to Use Database FlashSnap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Selecting the Snapshot Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Preparing Hosts and Storage for Database FlashSnap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Setting Up Hosts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Creating a Snapshot Mirror of a Volume or Volume Set Used by the Database. . . . . . . . . . . . . . . . . 74
Upgrading Existing Volumes to Use Veritas Volume Manager 5.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Summary of Database Snapshot Steps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Creating a Snapplan (dbed_vmchecksnap). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Creating Multi-mirror Snapshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Validating a Snapplan (dbed_vmchecksnap) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Displaying, Copying, and Removing a Snapplan (dbed_vmchecksnap) . . . . . . . . . . . . . . . . . . . . . . . . . 97
Displaying a Snapplan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Copying a Snapplan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Removing a Snapplan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Creating a Snapshot (dbed_vmsnap) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Backing Up the Database from Snapshot Volumes (dbed_vmclonedb). . . . . . . . . . . . . . . . . . . . . . . . . 103
Mounting the Snapshot Volumes and Backing Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Cloning a Database (dbed_vmclonedb) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Using Database FlashSnap to Clone a Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107