Use the DEFINE LOGCOPY command to create a volume copy of an existing recovery log volume. Recovery log volume copies increase the availability of the recovery log and provide a safeguard against media failure. You can have as many as two volume copies of an existing recovery log volume. After each recovery log volume copy is defined, the server attempts to synchronize the volume copy with the recovery log.
The volume copy created via the DEFINE LOGCOPY command is also called a mirrored volume. The mirrorread and mirrorwrite options located in the server options file control the usage of mirrored volumes.
All recovery log volumes must reside on a random access volume. Volume copies must have at least the same capacity as the original volume and should be defined on separate physical devices. Any additional space on the volume copy is not used.
This command can generate a background process that can be canceled with the CANCEL PROCESS command. If a DEFINE LOGCOPY background process is canceled, the volume copy is created; however, synchronization processing is canceled leaving the volume in a stale state. To display information on background processes, use the QUERY PROCESS command.
Privilege Class
To issue this command, you must have system privilege or unrestricted storage privilege.
Syntax
>>-DEFine LOGCopy--volname--copyvolname------------------------><
Parameters
This file name can be entered with either the fully qualified path name or the name relative to the server's current working directory. For example, if the file name is log2.dsm, enter the path name as:
/usr/lpp/adsmserv/bin/log2.dsm
Examples
Task
Create a database volume copy named LOG.2 for the recovery log volume named LOG.1.
Related Commands
Table 53. Commands Related to DEFINE LOGCOPY
| Command | Description |
|---|---|
| CANCEL PROCESS | Cancels a background server process. |
| DEFINE LOGVOLUME | Defines a disk volume to the recovery log. |
| DELETE LOGVOLUME | Deletes a volume from the recovery log. |
| QUERY LOGVOLUME | Displays information about one or more log volumes. |
| QUERY PROCESS | Displays information about one or all background server processes. |