You can prepare mirroring for a dbspace, blobspace, or sbspace at any time. However, the mirroring does not start until you perform a level-0 backup.
You can use the onspaces utility to start mirroring a dbspace, blobspace, or sbspace. For example, the following onspaces command starts mirroring for the dbspace db_project, which contains two chunks, data1 and data2:
onspaces -m db_project\ -p /dev/data1 -o 0 -m /dev/mirror_data1 0\ -p /dev/data2 -o 5000 -m /dev/mirror_data2 5000
The following example shows how to turn on mirroring for a dbspace called sp1. You can either specify the primary path, primary offset, mirror path, and mirror offset in the command or in a file.
onspaces -m sp1 -f mirfile
The mirfile file contains the following line:
/ix/9.3/sp1 0 /ix/9.2/sp1mir 0
In this line, /ix/9.3/sp1 is the primary path, 0 is the primary offset, /ix/9.3/sp1mir is the mirror path, and 0 is the mirror offset.
Use the Dbspaces > Mirror option to start mirroring a dbspace.
To select the dbspace that you want to mirror, move the cursor down the list to the correct dbspace and press CTRL-B. The Mirror option then displays a screen for each chunk in the dbspace. You can enter a mirror pathname and offset in this screen. After you enter information for each chunk, press ESC to exit the option. The database server recovers the new mirror chunks, meaning it copies data from the primary to the mirror chunk. If the chunk contains logical-log files, recovery is postponed until after you create a level-0 backup.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]