Backup
Backing up your data when using Db2® Mirror has some additional considerations.
Backup strategy
Primary node backup
Perform full system backups on the primary node. Full system backups will save both replicated and non-replicated data.
Use option 21 from the GO SAVE menu to back up the full system.
- Save option 21 performs an ENDSBS *ALL; therefore it is considered a planned outage. To allow production work to continue, you must perform a role swap before and after the option 21 backup so the save is run on the secondary node. See Planned outages for more information.
- Ensure data area QTEMP/SRMIRCTL does NOT exist prior to starting the GO SAVE 21.
- All independent auxiliary storage pools (IASPs) that are registered for database replication must be in AVAILABLE state on the primary node.
- Any IASPs that are not registered for database replication that you want to back up must be made AVAILABLE so their IASP data is included in the backup.
- IBM® recommends that non-replicated objects with the same library qualified names do not exist on both the primary and secondary nodes.
- If a full system FlashCopy® of the primary node exists, the full system backup can be done using that system. Since the save is done on a different system, there are restore considerations, see Restoring objects from the mirrored node in Restoring specific types of information.
Secondary node backup
CRTDTAARA DTAARA(QTEMP/SRMIRCTL) TYPE(*CHAR) VALUE('1')After the data area is created, use option 23 from the GO SAVE menu to save all user data.
- Primary and secondary independent auxiliary storage pools (IASPs) that are registered for database replication must be in AVAILABLE status on the secondary node.
- Any IASPs that are not registered for database replication that you want to back up must be made AVAILABLE so the data is included in the backup.
- IFS IASPs that were backed up on the primary node should not be made AVAILABLE on the secondary node.
- If a full system FlashCopy of the secondary node exists, the full system backup can be done using that system. Since the save is done on a different system, there are restore considerations, see Restoring objects from the mirrored node in Restoring specific types of information.
Locking
Save operations lock objects on a node as described in Save-while-active object locking rules. These locks will restrict operations on replicated objects on both the source node and the target node.
Storage (STG) parameter
The Storage (STG) parameter can be used on save commands to free object storage as part of the save operation. However, the STG parameter is ignored for replicated objects. For more information about freeing storage, see Freeing storage when saving.