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.1 Online Backup (by Synchronization)

In a system employing GDS Snapshot, backups can be created using snapshots from proxy volumes during the services operation.

However, to secure consistency of snapshot data, the service must be stopped temporarily when creating a snapshot (when parting a proxy volume from a master volume).


For securing consistency of snapshot data, see "Ensuring Consistency of Snapshot Data."

[Figure: Backup Schedule]


Instant Restore
If an error occurs in master volume data while the master volume and a proxy volume are joined, the same error occurs in data of the proxy volume and instant restore becomes unavailable. If this happens, you must restore data from tape. After you execute online backup by parting a proxy volume, you are recommended to leave the proxy volume parted until just before re-executing online backup.

 

Snapshot through Disk Unit's Copy Functions
If groups are hierarchized, or if proxies are in mirroring configuration with the multiplicity of two and higher, copy functions of disk units are unavailable for copying data from masters to proxies. For details, see "Using the Advanced Copy Function in a Proxy Configuration" and "Using EMC TimeFinder or EMC SRDF in a Proxy Configuration."

 

When Using EMC TimeFinder or EMC SRDF


Procedure

1) Joining a proxy volume

To prepare for creating a snapshot, relate and join proxy volume Volume2 as the copy destination of master volume Volume1 to the master volume. This example shows the procedure when Volume1 and Volume2 belong to Class1. Execute the following commands on a node that belongs to the scope of class Class1.

1-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.

1-2) Relate and join proxy volume Volume2 to master volume Volume1.

# sdxproxy Join -c Class1 -m Volume1 -p Volume2

After returning from the command, synchronization copying from Volume1 to Volume2 is executed.

Relating and Joining a Pair of Groups
If the proxy group includes volumes, remove the volumes before executing the sdxproxy Join command, and also specify the -a option for this command.

Example)
Relate and join proxy group Group2 to master group Group1.
Assign volume names Proxy1 and Proxy2 to the proxy volumes automatically created in Group2 corresponding to volumes Volume1 and Volume2 in Group1.

# sdxproxy Join -c Class1 -m Group1 -p Group2 \
-a Volume1=Proxy1:on,Volume2=Proxy2:on

When using GDS Management View, see "Join."

GFS Local File System in Multi-partition Configuration
If multiple volumes constitute one GFS Local File System, relate and join the proxy volume to all of the volumes.

 

2) Confirming the completion of copying

Confirm that the synchronization copying is complete.

# sdxinfo -S -c Class1 -o Volume2

OBJ    CLASS   GROUP   DISK    VOLUME   STATUS
-----  ------  ------  ------  -------  -------
slice  Class1  Group2  Disk3   Volume2  STOP
slice  Class1  Group2  Disk4   Volume2  STOP


If all the displayed slices' STATUS fields are "STOP", synchronization copying is complete.

If the synchronization copying is still in progress, "COPY" will be displayed in the STATUS field.

 

3) Stopping the services

To secure consistency of snapshot data, stop the services before creating a snapshot and restrain the master volume from being written in.

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

Inactivate the cluster application.

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

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

3b-2) When the master volume is used as a file system, use either the following methods to prevent write access to the file system. In the following examples, the mount point is /DATA.

4) Parting the proxy volume

Create a snapshot of master volume Volume1 by parting proxy volume Volume2 from master volume Volume1. Execute the following commands on a node that belongs to the scope of class Class1.

# sdxproxy Part -c Class1 -p Volume2



When using GDS Management View, see "Part" in "Backup (by Synchronization)." For setting of the part environment, select "No" to "Instant Snapshot."

GFS Local File System in Multi-partition Configuration
Part proxy volumes for all the volumes that constitute the file system.

 

5) Resuming the services

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

Activate the cluster application.

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

5b-1) When the master volume is used as a file system, use either the following methods to permit write access from applications to the file system on master volume Volume1. In the following examples, the mount point is /DATA.


5b-2) Start the services for which the master volume is used.

 

6) Backing up to tape

Back up the snapshot data on the proxy volume to tape. Execute the following commands on a node that belongs to the scope of class Class1.


For details on the backup methods, see the manuals of file systems to be backed up and used commands.

6a) When backing up data held in a raw device with the dd(1M) command

# dd if=/dev/sfdsk/Class1/rdsk/Volume2 of=/dev/rmt/0 bs=32768


6b) When backing up the ufs file system with the tar(1) command

6b-1) Before mounting

Check and repair consistency of the ufs file system on the proxy volume with the fsck(1M) command. When the file system on the master volume was unmounted in step 3b-2), skip this step.

# fsck -F ufs /dev/sfdsk/Class1/rdsk/Volume2


6b-2) Mounting the snapshot

Mount the ufs file system on proxy volume Volume2 on temporary mount point /DATA_backup.

# mkdir /DATA_backup
# mount -F ufs /dev/sfdsk/Class1/dsk/Volume2 /DATA_backup


6b-3) Backing up to tape

This example shows the procedure when data is backed up to a tape medium of tape device /dev/rmt/0 with the tar(1) command.

# cd /DATA_backup
# tar cvf /dev/rmt/0 .


6b-4) Unmounting the snapshot

Unmount the file system mounted in step 6b-2).

# cd /
# umount /DATA_backup
# rmdir /DATA_backup


6c) When backing up the ufs file system with the ufsdump(1M) command

6c-1) Before mounting

Check and repair consistency of the ufs file system on proxy volume Volume2 with the fsck(1M) command. When the file system on the master volume was unmounted in step 3b-2), skip this step.

# fsck -F ufs /dev/sfdsk/Class1/rdsk/Volume2


6c-2) Backing up to tape

This example shows the procedure when data is backed up to a tape medium of tape device /dev/rmt/0 with the ufsdump(1M) command.

# ufsdump 0ucf /dev/rmt/0 /dev/sfdsk/Class1/rdsk/Volume2

6d) When backing up the sfxfs file system (GFS Local File System or SynfinityFile file system) with the tar(1) command

6d-1) Reconfiguring partition information

Reconfigure partition information of the sfxfs file system (GFS Local File System) on proxy volume Volume2.

# sfxadm /dev/sfdsk/Class1/rdsk/Volume2


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

6d-2) Before mounting

Check and repair consistency of the sfxfs file system (GFS Local File System) on proxy volume Volume2 with the fsck(1M) command. When the file system on the master volume was unmounted in step 3b-2), skip this step.

# fsck -F sfxfs /dev/sfdsk/Class1/rdsk/Volume2


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

6d-3) Mounting the snapshot

Mount the sfxfs file system (GFS Local File System) on proxy volume Volume2 on temporary mount point /DATA_backup.

# mkdir /DATA_backup
# mount -F sfxfs /dev/sfdsk/Class1/dsk/Volume2 /DATA_backup


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

6d-4) Backing up to tape

This example shows the procedure when data is backed up to a tape medium of tape device /dev/rmt/0 with the tar(1) command.

# cd /DATA_backup
# tar cvf /dev/rmt/0 .


6d-5) Unmounting the snapshot

Unmount the file system mounted in step 6b-3).

# cd /
# umount /DATA_backup
# rmdir /DATA_backup


6e) When backing up the sfxfs file system (GFS Local File System or SynfinityFile file system) with the sfxdump(1) command

6e-1) Reconfiguring partition information

Reconfigure partition information of the sfxfs file system (GFS Local File System) on proxy volume Volume2.

# sfxadm /dev/sfdsk/Class1/rdsk/Volume2


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

6e-2) Before mounting

Check and repair consistency of the sfxfs file system (GFS Local File System) on proxy volume Volume2 with the fsck(1M) command. When the file system on the master volume was unmounted in step 3b-2), skip this step.

# fsck -F sfxfs /dev/sfdsk/Class1/rdsk/Volume2


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

6e-3) Backing up to tape

This example shows the procedure when data is backed up to a tape medium of tape device /dev/rmt/0 with the sfxdump(1M) command.

# sfxdump 0ucf /dev/rmt/0 /dev/sfdsk/Class1/rdsk/Volume2


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

 

7) Rejoining the proxy volume

To perform online backup again, follow the procedures below on a node that belongs to the scope of class Class1 and then go back to step 2).

7-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.

7-2) Rejoin proxy volume Volume2 to master volume Volume1.

# sdxproxy Rejoin -c Class1 -p Volume2


After returning from the command, synchronization copying from Volume1 to Volume2 is performed.


When using GDS Management View, see "Rejoin" of "Backup (by Synchronization)."

GFS Local File System in Multi-partition Configuration
Rejoin proxy volumes for all the volumes that constitute the file system.

 

8) Breaking the proxy volume

When no more online backup is to be executed, cancel the relationship between master volume Volume1 and proxy volume Volume2.Execute the following command on a node that belongs to the scope of Class1.

# sdxproxy Break -c Class1 -p Volume2


When using GDS Management View, see "Breaking a Proxy."

GFS Local File System in Multi-partition Configuration
Break proxy volumes for all the volumes that constitute the file system.



Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2005