Data Consistency, Recovery, and Migration 4-15

Beginning

Recover a mirrored chunk through theDB-Monitor Dbspaces menu, Status
optionor through the tbspaces utility (change the status of the failed chunk
from down, D, to online,O). When you initiate recovery, OnLine puts the
down chunk in recovery mode and copies the information from the online
chunk to the recovery chunk. When the recovery is complete, the chunk
automatically receives online status. You perform the same steps whether
you are recovering the primary chunk of a mirrored pair or recovering the
mirrorchunk. (For information about monitoring chunk status codes, refer to
page 3-70.)
Beginning
Mirroring begins immediately after you create the mirror chunk, in most
cases.(The one exception occurs when you start mirroring for a dbspace that
contains logical log files. This topic is addressed in the next section.)
Thenew mirror chunk enters recovery mode automatically.A mirror-recovery
process copies information from the primary chunk to the mirror chunk.
Whenthe two chunks are considered equal, the mirror chunk automatically
receivesonline status (O). From this point on, the mirror chunk reports that it
has zero free pages.
Datafrom the online chunk is copied to the chunk in recovery in eight-page
increments.During the copy, these blocks of pages are frozen. Any modifica-
tions that affect those pages must wait until the copy to the recovery chunk
iscomplete.
Recovery time is almost instantaneous when the primary chunk and mirror
chunk are being created in the same operation. If you are adding a mirror
chunkto an existing chunk, the recovery time depends on the amount of data
in the chunk.
The recovery procedure that marks the beginning of mirroring is delayed if
youare starting to mirror a dbspace that contains a logical log. Mirroring for
this dbspace does not begin until you create a level-0 archive.