Top
ETERNUS SF AdvancedCopy Manager V16.9A Operation Guide
FUJITSU Storage

6.9.1 Replication Operation in Units of Physical Disks

If a VxVM volume is the replication target, execute replication in the physical disk units that comprise the VxVM volume.

When replication operation is performed in units of physical disks, disk group integrity must be maintained and, therefore, all the physical disks in the disk group must be replicated synchronously.

Point

For the physical volume which should be synchronized, confirm it by using either Web Console or the stgxfwcmdispdev command.

Note

  • Before starting this operation, be sure to understand the basic operation of ordinary volumes.

  • Snapshot backup is recommended for backing up in units of physical disks. In the case of synchronized backup, commands that access destination volumes, such as VxVM commands, cannot be executed during full copy or differential copy.

    6.9.1.1 Configuration

    When configuring the disk groups of the original and replica volumes, you should note the following:

    Figure 6.49 Copy Source Volume and Copy Destination Volume

    6.9.1.2 Preparations

    6.9.1.2.1 Confirming Disk Group Configuration Information File

    The disk group must be reconfigured in replication post-processing. Confirm that a volume group configuration information file has been saved.

    /etc/vx/cbr/bk/<disk group name>.<disk group ID>
    6.9.1.2.2 Configuring Original and Replica Volumes

    When setting the original and replica volumes, specify all disks in the volume group.

    [Example of Setting Original and Replica Volumes]

    # /opt/FJSVswsrp/bin/swsrpsetvol /dev/vm/dmp/hdisk10 /dev/vm/dmp/hdisk20
    swsrpsetvol completed
    # /opt/FJSVswsrp/bin/swsrpsetvol /dev/vm/dmp/hdisk11 /dev/vm/dmp/hdisk21
    swsrpsetvol completed
    #

    6.9.1.3 Replication

    Perform Replication by synchronizing all physical disks in the disk group.

    Perform the required pre-processing or post-processing work for each volume group respectively before and after the replication operation. Disable pre-processing and post-processing when replicating individual physical disks.

    [Example of Snapshot Backup]

    (Perform pre-processing for the source and target volumes.)
    
    # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/vm/dmp/hdisk10 /dev/vm/dmp/hdisk20
    FROM=/dev/vm/dmp/hdisk10@SV1, TO=/dev/vm/dmp/hdisk20@SV1 swsrpmake completed
    # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/vm/dmp/hdisk11 /dev/vm/dmp/hdisk21
    FROM=/dev/vm/dmp/hdisk11@SV1, TO=/dev/vm/dmp/hdisk21@SV1 swsrpmake completed
    #
    
    (Perform post-processing for the source and target volumes.)

    [Example of Synchronous Replication]

    (Perform pre-processing for the target volume.)
    
    # /opt/FJSVswsrp/bin/swsrpstartsync -t /dev/vm/dmp/hdisk10 /dev/vm/dmp/hdisk20
    FROM=/dev/vm/dmp/hdisk10@SV1, TO=/dev/vm/dmp/hdisk20@SV1 swsrpstartsync completed
    # /opt/FJSVswsrp/bin/swsrpstartsync -t /dev/vm/dmp/hdisk11 /dev/vm/dmp/hdisk21
    FROM=/dev/vm/dmp/hdisk11@SV1, TO=/dev/vm/dmp/hdisk21@SV1 swsrpstartsync completed
    #
    
    (After equivalency maintenance state)
    (Perform pre-processing for the source volume.)
    
    # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/vm/dmp/hdisk10 /dev/vm/dmp/hdisk20
    FROM=/dev/vm/dmp/hdisk10@SV1, TO=/dev/vm/dmp/hdisk20@SV1 swsrpmake completed
    # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/vm/dmp/hdisk11 /dev/vm/dmp/hdisk21
    FROM=/dev/vm/dmp/hdisk11@SV1, TO=/dev/vm/dmp/hdisk21@SV1 swsrpmake completed
    #
    
    (Perform post-processing 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 6.7 Replication Pre-processing and Post-processing

    Type

    Pre-processing

    Post-processing

    Source volume

    1. Secure data integrity by stopping access to all logical volumes in the volume group.

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

    3. Import the disk group, when the disk group is not imported for replication on single server.

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

    Target volume

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

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

    3. Deport the disk group.

    4. Set the disk groups subordinate physical disks to offline.

    1. Online the physical disks that were set to offline during pre-processing.

    2. Reconfigure the volume group.

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

    Reconfiguring Disk Group (for Replication on single Server)

    Reconfigure the disk group as follows:

    1. Pre-commit analysis for restoration

      # /etc/vx/bin/vxconfigrestore -p dstdg
      Diskgroup dstdg configuration restoration started ......
      
      Installing volume manager disk header for hdisk20 ...
      Installing volume manager disk header for hdisk21 ...
      -
      dstdg's diskgroup configuration is restored (in precommit state).
      Diskgroup can be accessed in read only and can be examined using
      vxprint in this state.
      
      Run:
        vxconfigrestore -c dstdg ==> to commit the restoration.
        vxconfigrestore -d dstdg ==> to abort the restoration.
      #
    2. Commit the change required for restoring the configuration of the copy destination disk group.

      # /etc/vx/bin/vxconfigrestore -c dstdg
      Committing configuration restoration for diskgroup dstdg ....
      
      dstdg's diskgroup configuration restoration is committed.
      #

    Reconfiguring Disk Group (for Server-to-server Replication)

    1. Import the disk group "srcdg" on the master server as disk group "dstdg" on the target server.

      # /usr/sbin/vxdg -C -n dstdg import srcdg
      #

      Note

      When the disk group name is the same in the server of the source and destination, the -n option is not specified.

    2. Execute recovery processing for the volume in the disk group "dstdg" on the target server.

      # vxrecover -g dstdg -sb
      #
    3. Because udid of the copy destination disk is not an adjustment, this is restored.

      # vxdisk updateudid hdisk20 hdisk21
      #

    Note

    • When performing a system disk exchange, there are cases when multiple conflicting configuration information backups may exist for one disk group.
      In such cases, the disk group ID displayed after executing the above command needs to be set and executed instead of the disk group.

    • When the volumes within a disk group are required to be run in synchronous mode in the background and depending on the volume configuration it may take some time for synchronous processing to complete after this operation.
      It is also possible to use the volumes during this time.