PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Solaris(TM) Operating System)
Contents PreviousNext

Chapter 6 Backing Up and Restoring> 6.4 Online Backup and Instant Restore through Proxy Volume

6.4.3 Instant Restore

By keeping proxy volumes parted from master volumes used for services, in the event of a data error in a master volume, data can be restored back from the proxy volume to the master volume (unless background copying is in process after instant snapshot creation).

The master volume must be stopped temporarily for restoration, but you may start the master volume and make it accessible immediately after the restore is initiated without waiting until the copying is complete.

Restore from Tape
If an error occurs in master volume data while the master volume used for the services operation and a proxy volume are joined, the same error occurs in data of the proxy volume and instant restore becomes unavailable. If this happens, restore data back to the master volume following the procedure described in "Restoring."

 

[Figure: Schedule for Instant Restore]


Instant Restore with Disk Unit's Copy Functions
For restore, only (R)OPC is available, but (R)EC, EMC TimeFinder or EMC SRDF is unavailable. For details, see "Using the Advanced Copy Function in a Proxy Configuration."

Procedure

1) Viewing the state of the proxy volume

Confirm that proxy volume Volume2 has been parted from master volume Volume1.

# sdxinfo -V -c Class1 -o Volume2 -e long

OBJ     NAME     TYPE     CLASS    GROUP     DISK    MASTER   PROXY ...
------  -------  ------   -------  -------   ------  ------   ----- ...
volume  *        mirror   Class1   Group2    *       *        *     ...
volume  Volume2  mirror   Class1   Group2    *       Volume1  Part  ...
volume  *        mirror   Class1   Group2    *       *        *     ...


If Part is displayed in the PROXY field, the proxy volume has been parted.

If Join is displayed in the PROXY field, the proxy volume has been joined to the master volume and instant restore is unavailable. In this situation, data must be restored from tape. For more details, see "Restore from Tape" described above.

 

2) Stopping the services

2a) When the master volume is being used for a cluster application

Inactivate the cluster application.

2b) When the master volume is not being used for a cluster application

2b-1) Stop the services for which the master volume is being used.

2b-2) When the master volume is being used as a file system, unmount the file system. This example shows the procedure when the mount point is /DATA.

# cd /
# umount /DATA


2b-3) Stopping the master volume

Stop master volume Volume1. If Class1 is a shared class, specify the "-e allnodes" option to stop Volume1 on all nodes.

# sdxvolume -F -c Class1 -v Volume1



When using GDS Management View, select a master volume and execute [Operation]:[Stop Volume] in the Main Screen.

 

3) Restoring data from the proxy volume

Execute the following commands on a node that belongs to the scope of class Class1.

3a) When the OPC function is unavailable

3a-1) Stop proxy volume Volume2. If Class1 is a shared class, specify the "-e allnodes" option to stop Volume2 on all nodes.

# sdxvolume -F -c Class1 -v Volume2



When using GDS Management View, select a proxy volume and execute [Operation]:[Stop Volume] in the Main Screen.

3a-2) Restore data from proxy volume Volume2 back to master volume Volume1.

# sdxproxy RejoinRestore -c Class1 -p Volume2 -e instant


When returning from the command, the restore of Volume1 will be complete. Subsequently, synchronization copying from Volume2 to Volume1 is performed, and you may go on to step 4) without waiting until the copying is complete.


When using GDS Management View, see "Restore" in "Restore." For settings of the restore environment, select "Yes" to "Rejoin" and "Yes" to "Instant Restore."

3b) When the OPC function is available

Restore data from proxy volume Volume2 back to master volume Volume1.

# sdxproxy Restore -c Class1 -p Volume2 -e instant


When returning from the command, the restore of Volume1 will be complete. Subsequently, background OPC physical copying from Volume2 to Volume1 is performed, and you may go on to step 4) without waiting until the copying is complete.


When using GDS Management View, see "Restore." For settings of the restore environment, select "No" to "Rejoin" and "yes" to "Instant Restore."

Master Volumes with the Mirroring Multiplicity of Two and Higher
By executing the sdxproxy Restore command in step 3b), OPC starts, copying from one of proxy volume's slices to one of master volume's slices. Among slices of the master volume, slices other than the OPC copy destination are excluded from mirroring and thus the data statuses become invalid (INVALID). To recover the master volume mirroring status, perform master volume resynchronization copying by using the sdxcopy -B command. If not executing the sdxcopy -B command, master volume resynchronization copying automatically starts when starting the master volume in step 4) and data will be copied from the OPC copy destination slice to the other slices with the soft copy function.

GFS Local File System in Multi-partition Configuration
If multiple volumes constitute one GFS Local File System, restore data from the proxy volume to all of the volumes.

 

4) Resuming the services

Without waiting until the copying is complete, you may resume the services.

Reusing Proxy Volume Data
By executing the sdxproxy RejoinRestore command in step 3a), Volume1 and Volume2 are joined and Volume2 will also be updated with data written into Volume1. To reuse data in Volume2 for restore without updating, after the synchronization copying from Volume2 to Volume1 is complete, part Volume2 from Volume1 and then resume the services. When the sdxproxy Restore command was executed in step 3b), Volume1 and Volume2 are left parted, and data in Volume2 remains unchanged even if the services are resumed before the copying is complete.

4a) When the master volume is used for a cluster application

Activate the cluster application.

4b) When the master volume is not used for a cluster application

4b-1) Activate master volume Volume1 on the node running the services.

# sdxvolume -N -c Class1 -v Volume1



When using GDS Management View, select the master volume and execute [Operation]:[Start Volume] in the Main Screen.

When the OPC Function Is Available
If the master volume mirroring multiplicity is two and higher and if restore is performed with the OPC function in step 3b), master volume resynchronization copying automatically starts after command execution. To perform resynchronization copying after OPC physical copying is complete, specify the -e nosync option for the sdxvolume -N command, and the master volume will start without invoking resynchronization copying. With this method, perform master volume resynchronization copying with the sdxcopy -B command after OPC physical copying is complete.

4b-2) When the master volume is used as the sfxfs file system (GFS Local File System), reconfigure the partition information.

# sfxadm /dev/sfdsk/Class1/rdsk/Volume1


GFS Local File System in Multi-partition Configuration
For the sfxadm(1M) command, specify device file names of all the volumes that constitute the file system.

4b-3) When the master volume is used as a file system, mount the file system. In this example, the mount point is /DATA.

GFS Local File System in Multi-partition Configuration
For the mount(1M) command, specify a device special file name of the representative partition.

4b-4) Resume the servicess using the master volume.

 

5) Viewing the copy status

The status of the copying from proxy volume Volume2 to master volume Volume1 started in step 3) can be viewed by using the sdxinfo -S command. The copy destination slice is in the COPY status if copying is in progress and it will be in the ACTIVE status after the copy process ends normally.

# sdxinfo -S -c Class1 -o Volume1

OBJ    CLASS   GROUP   DISK    VOLUME  STATUS
-----  ------  ------  -----  -------  ------
slice  Class1  Group1  Disk1  Volume1  ACTIVE
slice  Class1  Group1  Disk2  Volume1  ACTIVE



By executing the sdxproxy RejoinRestore command in step 3a), master volume Volume1 and proxy volume Volume2 are joined. In the even of a data error occurs in Volume1, the same data error occurs in Volume2, and restoring data back from tape will be required. Therefore, after resynchronization copying from Volume2 to Volume1 is complete, it is recommended to part Volume2 from Volume1. For the procedures for parting proxy volumes, see the steps 3) through 5) in "Online Backup (by Synchronization)."

When Using (R)EC, EMC TimeFinder, EMC SRDF, for Backup
Restoration of the master by use of the proxy stops sessions of these copying functions. To perform backup using these copying functions, cancel the relation between the master and the proxy with the sdxproxy Break command.



Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2005