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

Using FlashSnap for Backup and Recovery
Cloning a Database (dbed_vmclonedb)
Chapter 5
112
dbed_vmclonedb ended at 2006-03-09 23:04:50
Shutting Down the Clone Database and Unmounting File Systems
When you are done using the clone database, you can shut it down and unmount all
snapshot file systems with the dbed_vmclonedb -o umount command. If the clone
database is used on a secondary host that has shared disks with the primary host, the -o
umount option also deports the snapshot disk group.
NOTE Any Storage Checkpoints mounted need to be unmounted before running
dbed_vmclonedb -o umount command.
To shut down the clone database and unmount all snapshot file systems
•Use the dbed_vmclonedb command as follows:
$ /opt/VRTS/bin/dbed_vmclonedb -o umount,new_sid=new_sid \
-f SNAPPLAN [-r relocate_path]
In this example, the clone database is shut down and file systems are unmounted for a
clone on the same host as the primary database (a single-host configuration).
$ /opt/VRTS/bin/dbed_vmclonedb -o umount,new_sid=NEWPROD \
-f snap1 -r /clone
dbed_vmclonedb started at 2006-03-02 15:11:22
dbed_vmclonedb ended at 2006-03-02 15:11:47
In this example, the clone database is shut down, file systems are unmounted, and the
snapshot disk group is deported for a clone on a secondary host (a two-host
configuration).
$ /opt/VRTS/bin/dbed_vmclonedb -o umount,new_sid=NEWPROD \
-f snap2
dbed_vmclonedb started at 2006-03-09 23:09:21
dbed_vmclonedb ended at 2006-03-09 23:09:50
Restarting a Clone Database
If the clone database is down as a result of using dbed_vmclonedb -o umount or
rebooting the system, you can restart it with the -o restartdb option.
NOTE This option can only be used when a clone database is created successfully. If the clone
database is recovered manually, -o update_status must be run to update the status
before -o restartdb will work.
To start the clone database
•Use the dbed_vmclonedb command as follows:
$ /opt/VRTS/bin/dbed_vmclonedb -S ORACLE_SID -g snap_dg \
-o restartdb,new_sid=new_sid,server_name=server_name\
-f SNAPPLAN [-H ORACLE_HOME] \
[-r relocate_path]