The method of customizing the shell script for backup pre- and post-processing is explained below.
When you do not want to unmount a transaction volume
Edit the script to delete the comment characters ("#") on the 100th to 110th, 114th, and 158th lines for a transaction volume that you do not want to unmount, and specify the target device in the if statement on the 100th line.
Make sure that any special editing of this script has not changed the line numbers quoted above or label the lines to be modified in these circumstances clearly.
Do not update the file system of the transaction volume in the period from execution of the sync command on the 97th line to backup post-processing. Otherwise, the backed-up file system may be incomplete or execution of the fsck command in the backup post-processing may result in an error.
This operation is possible only when the file system is one of the following two:
ext2
ext3
The pre-processing by the customized scripts is as follows:
State of transaction volume | preprocessing |
---|---|
It is mounted. | Updating to operating volume is deterred. |
The post-processing by the customized scripts is as follows:
preprocessing | post-processing |
---|---|
If Update to operating volume was prevented. | Restore capacity to update operating volume. |
Note
If a SDX object is operated in slice units, do not specify slice name (/dev/sfdsk/(class name)/dsk/(volume name):(sdxinfo DEVNAM value)) in Line 90. Instead, specify logical volume name (/dev/sfdsk/(class name)/dsk/(volume name)).