If locking fails in the backup volume backup pre-processing, locking is retried to avoid a temporary access conflict with other applications. The standard retry operations are as follows:
Locking is retried one second after locking fails.
If locking is not successful after 20 retries (that is, a total of 21 locking attempts including the first attempt), then the processing is stopped and the command ends abnormally.
The maximum number of retries and the retry interval can be changed by the backup volume locking specification file for backups. In this file, the following instructions can be specified for the backup volume backup pre-processing:
Making invalid all file handles in the volume before locking is retried (this is the forced locking function)
Note
swstresback (Resource backup command) cannot back up the backup volume locking specification file for backups. In operations that use this file, the copy command, etc., must be executed to back up this file.
File name and directory
Use a name such as the one below to create a backup volume locking specification file for backups.
<Environment directory>\etc\backup\data\BBACKLOCK.INI
<Shared-disk>:\etc\opt\swstorage\etc\backup\data\BBACKLOCK.INI
Example and description rules
Examples of settings in the backup volume locking specification file for backup are listed below.
[g1d1p1] LockForceMode=on LockRetryNumber=10 LockRetryInterval=5000 [ANY] LockForceMode=off LockRetryNumber=20 LockRetryInterval=2000
An explanation of how to create a backup volume locking specification file for backups is given below.
Create a section for the volume (the one whose locking operation is to be changed) and create code parameters. In the above example, the g1d1p1 section is created. The three parameters listed in the table below may be changed. Not all of these three parameters need to be coded: code only the parameters that you want to change. The default value is used for the parameters that are not coded.
To change the default locking operation, create a section called "ANY" and create the code parameters. This enables the locking operation to be changed for all volumes except the volumes explicitly coded in the backup volume locking specification file for backups In the above example, the locking of all volumes except g1d1p1 depends on the value in the "ANY" section.
Key | Explanation |
---|---|
LockForceMode | This parameter specifies that the volume is to be dismounted before locking is retried. off (default value) = no dismount before locking is retried When the volume is dismounted, all handles opened for the volume become invalid. * If the volume is set in the used state immediately after it is dismounted, then locking may be impossible. |
LockRetryNumber | This parameter specifies the retry count. A numeric value ranging from 1 to 10,000 can be specified. |
LockRetryInterval | This parameter specifies the retry interval (in milliseconds). A numeric value ranging from 1 to 600,000 (10 minutes) can be specified. The default value is 1,000 (1 second). |