Top
ETERNUS SF AdvancedCopy Manager V16.8 Operation Guide
FUJITSU Storage

A.3.3 Customizing Shell Script

The method to customize the shell script for restore pre/post-processing is explained below.

Cluster Operations on VERITAS Cluster Server

Customization of the pre-processing and post-processing scripts is required, when performing cluster operations on VERITAS Cluster Server, and when the mount point of the transaction volume is registered in the cluster transaction.
Change the unmount/mount processing in the pre-processing and post-processing script into offline/online processing of the mount point resource.
The mount point resource relating to the Volume is immediately offline/online whilst there is a time delay before access is actually prevented when mount/unmount is used.
Note that once the online/offline command is issued there is a delay before the mount/unmount command can be executed. The "sleep" and "df" commands can be used to delay the mount/ unmount until after the process that sets the volumes online or offline has completed.

The examples below show how the pre-processing and post-processing scripts are modified.

[Example]
Changing Unmount Processing of Restore Pre-processing Script (OpcRestore.pre)

[lines 87 and 96]

(before change)

/usr/sbin/umount $mount_point

(after change)

/opt/VRTSvcs/bin/hares -offline resourceName -sys systemName
[Example]
Adding Unmount Wait Processing to Restore Pre-processing Script (OpcRestore.pre)

[line 116]

(addition)

while /usr/sbin/df -l "$device">/dev/null 2>&1; do :; done
[Example]
Changing Mount Processing of Restore Post-processing Script (OpcRestore.post)

[lines 111, 115, 122, 135, 139 and 146]

(before change)

/usr/sbin/mount $device $mount_point or
/usr/sbin/mount -F $fs $device $mount_point

(after change)

/opt/VRTSvcs/bin/hares -online resourceName -sys systemName
[Example]
Adding Mount Wait Processing to Restore Post-processing Script (OpcRestore.post)

[line 166]

(addition)

until /usr/sbin/df -l "$device">/dev/null 2>&1; do :; done