InfoScale™ 9.0 Storage and Availability Management for DB2 Databases - AIX, Linux
- Section I. Storage Foundation High Availability (SFHA) management solutions for DB2 databases
- Overview of Storage Foundation for Databases
- About Veritas File System
- Overview of Storage Foundation for Databases
- Section II. Deploying DB2 with InfoScale products
- Deployment options for DB2 in a Storage Foundation environment
- Deploying DB2 with Storage Foundation
- Deploying DB2 in an off-host configuration with Storage Foundation
- Deploying DB2 with High Availability
- Deployment options for DB2 in a Storage Foundation environment
- Section III. Configuring Storage Foundation for Database (SFDB) tools
- Configuring and managing the Storage Foundation for Databases repository database
- Configuring the Storage Foundation for Databases (SFDB) tools repository
- Configuring authentication for Storage Foundation for Databases (SFDB) tools
- Configuring and managing the Storage Foundation for Databases repository database
- Section IV. Improving DB2 database performance
- About database accelerators
- Improving database performance with Quick I/O
- About Quick I/O
- Improving DB2 database performance with Veritas Concurrent I/O
- Section V. Using point-in-time copies
- Understanding point-in-time copy methods
- Volume-level snapshots
- Storage Checkpoints
- Considerations for DB2 point-in-time copies
- Administering third-mirror break-off snapshots
- Administering Storage Checkpoints
- Database Storage Checkpoints for recovery
- Backing up and restoring with Netbackup in an SFHA environment
- Understanding point-in-time copy methods
- Section VI. Optimizing storage costs for DB2
- Section VII. Storage Foundation for Databases administrative reference
- Storage Foundation for Databases command reference
- Tuning for Storage Foundation for Databases
- Troubleshooting SFDB tools
Cloning a database on the secondary host
You can use the vxsfadm command to perform end operations without performing the intermediate operations. For example, you need to perform the steps outlined in Figure: Creating a Clone - Basic Workflow .
However, you can use vxsfadm to go directly from Validate to Clone for cloning a database on the secondary host. Figure: Creating a Clone - Without Intermediate Operations outlines the steps for doing this operation.
To clone a database on the secondary host
- Enter the following command.
$ vxsfadm -s flashsnap \ -a db2 -o clone --db2instance db2inst1 \ --db2database proddb --flashsnap_name dailysnap \ --secondary_host host2 --app_mode online \ --clone_path /tmp/testclonepath --clone_name clone1 Retrieving snapshot information ... Done Importing snapshot diskgroups ... Done Mounting snapshot volumes ... Done Relocating/ Renaming clone database clone1 ... Done Initializing clone database clone1 ... Done Activating clone database clone1 ... Done
In a 2-host setup with the primary host host1 and the secondary host host2, this command creates a clone database on host2.
The database name of clone database is clone1 and it is mounted in the
/tmp/testclonepath
directory. The DB2INSTANCE and the uid of the db2insatnce user should be same on both the hosts. Default values are assigned to all of the other parameters.