Top
ETERNUS SF AdvancedCopy Manager 14.2 Operator's Guide

7.8.2 Replication in units of physical disks

When the volume group configuration does not satisfy the conditions for operation in units of volume groups, replication can be performed by operation in units of physical disks.
When backup is performed in units of physical disks, volume group integrity must be maintained and, therefore, all physical disks in the volume group must be operated synchronously.

Point

Refer to "stgxfwcmdispdev (Device information display command)", or the "View Devices Using the Same Copy Area or the Same Logical Group" of the "ETERNUS SF AdvancedCopy Manager User's Guide" for the method of checking if the physical volume is suitable for synchronization

Note

For operation in a cluster configuration, the device name (/dev/(r)dsk/c#t#d#) of the physical disks that comprise the volume group must be the same at all servers that comprise the cluster, and the ETERNUS disk indicated by the device name must be the same.

Figure 7.48 Sample configuration for operation in units of physical disks


7.8.2.1 Operation design

To use the replica volume after replication in the situation when a source volume is a volume group, the replica volume must have the same logical volume configuration as the source volume and must be a volume group of the same physical size.


7.8.2.2 Preparations


7.8.2.2.1 Saving the volume group configuration information file

The volume group configuration information file must be restored during replication post-processing. Confirm that the volume group configuration file has been saved. It is usually saved to the following location:

/etc/lvmconf/<volume-group-name>.conf

7.8.2.2.2 Configuring the source and replica volumes

When configuring the source and replica volumes, specify all of the physical disks in the volume group.

Example
# /opt/FJSVswsrp/bin/swsrpsetvol /dev/dsk/c1t0d10 /dev/dsk/c1t0d20
swsrpsetvol completed
# /opt/FJSVswsrp/bin/swsrpsetvol /dev/dsk/c1t0d11 /dev/dsk/c1t0d21
swsrpsetvol completed
#

7.8.2.3 Replication in units of physical disks

Perform the operation by synchronizing all physical disks in the volume group.
Perform the required pre-processing and post-processing work for each volume group before and after (respectively) the replication. Disable pre-processing and post-processing when operating individual physical disks.

Example of snapshot replication
(Perform preprocessing for the source and target volumes.)
# /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d10 /dev/dsk/c1t0d20
FROM=/dev/dsk/c1t0d10@SV1, TO=/dev/dsk/c1t0d20@SV1 swsrpmake completed
# /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d11 /dev/dsk/c1t0d21
FROM=/dev/dsk/c1t0d11@SV1, TO=/dev/dsk/c1t0d21@SV1 swsrpmake completed
#
(Perform postprocessing for the source and target volumes.)
Example of synchronous replication
(Perform preprocessing for the target volume.)
# /opt/FJSVswsrp/bin/swsrpstartsync -t /dev/dsk/c1t0d10 /dev/dsk/c1t0d20
FROM=/dev/dsk/c1t0d10@SV1, TO=/dev/dsk/c1t0d20@SV1 swsrpstartsync completed
# /opt/FJSVswsrp/bin/swsrpstartsync -t /dev/dsk/c1t0d11 /dev/dsk/c1t0d21
FROM=/dev/dsk/c1t0d11@SV1, TO=/dev/dsk/c1t0d21@SV1 swsrpstartsync completed
(After state of equivalency upkeep)
(Perform preprocessing for the source volume.)
# /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d10 /dev/dsk/c1t0d20
FROM=/dev/dsk/c1t0d10@SV1, TO=/dev/dsk/c1t0d20@SV1 swsrpmake completed
# /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d11 /dev/dsk/c1t0d21
FROM=/dev/dsk/c1t0d11@SV1, TO=/dev/dsk/c1t0d21@SV1 swsrpmake completed
#
(Perform postprocessing for the source and target volumes.)

The table below summarizes the pre-processing and post-processing work to be performed before and after replication.

Table 7.6 Pre and Post processing of replication

Pre-processing

Post-processing

Source
volume

  1. Ensure data integrity by preventing access to all logical volumes in the volume group.

  2. If file systems are included, unmount all file systems in the volume group.

If file systems are included, remount the volumes that were unmounted by pre-processing.

Target volume

  1. Prevent access to all logical volumes in the volume group.

  2. If file systems are included, unmount all file systems in the volume group.

  1. Reconfigure the volume group

  2. If file systems are included, remount the volumes that were unmounted by pre-processing.

Reconfiguring the volume group

Reconfigure the volume group as follows:

  1. Deactivate the volume group.

    # /usr/sbin/vgchange -a n /dev/vg02
    #
  2. Restore volume group configuration information.

    # /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d20
    # /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d21
    #
  3. Reactivate the volume group.

    [When cluster operation is enabled]
    # /usr/sbin/vgchange -c y /dev/vg02
    # /usr/sbin/vgchange -a e /dev/vg02

    [When cluster operation is disabled]
    # /usr/sbin/vgchange -a y /dev/vg02
    #

Reconfigure shared mode volume groups using the following procedure:

  1. Stop the volume group (on all nodes involved in the transaction).

    # /usr/sbin/vgchange -a n /dev/vg02
    #
  2. Restore volume group configuration information (on the node where the volume group was created).

    # /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d20
    # /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d21
    #
  3. Mark the volume group as shareable (on the node where the volume group was created).

    # /usr/sbin/vgchange -S y -c y /dev/vg02
    #
  4. Start the volume group (on all nodes involved in the transaction).

    # /usr/sbin/vgchange -a s /dev/vg02
    #