Top
ETERNUS SF AdvancedCopy Manager V15.1 Operation Guide
ETERNUS

G.3.3 Preparations

This section describes the preparations that are required for backing up and restoring ZFS storage pools.

For details on each procedure and a setup required in advance for using AdvancedCopy Manager, refer to "Chapter 6 Replication" and the "ETERNUS SF Operation Guide for Copy Control Module".

Whereas this document states some typical methods for controlling ZFS for your reference, refer to the operating system manuals for more details on usage.

Point

Below examples of command execution are based on the configurations described for replication operations and AdvancedCopy Manager CCM operations in "G.3.2 System configuration". Adapt any real control actions to your actual configuration.

Implement the following procedures for preparation:

  1. Fetching lists of devices in storage pools

  2. Copy settings of AdvancedCopy Manager

Fetching lists of devices in storage pools

Check the devices that constitute the storage pools to be backed up.

[Example]

Check the disk information of the storage pool. In below example, storage pool (STP1) consists of 1 physical disk (c1t1d1s0), and storage pool (STP2) consists of 2 physical disks (c1t1d2, c1t1d3).

# zpool status STP1
  pool: STP1
 state: ONLINE
 scrub: none requested
config:
        NAME       STATE     READ WRITE CKSUM
        STP1       ONLINE       0     0     0
          c1t1d1s0 ONLINE       0     0     0

errors: No known data errors
#
# zpool status STP2
  pool: STP2
 state: ONLINE
 scrub: none requested
config:
        NAME       STATE     READ WRITE CKSUM
        STP2       ONLINE       0     0     0
          c1t1d2   ONLINE       0     0     0
          c1t1d3   ONLINE       0     0     0

errors: No known data errors

Copy settings of AdvancedCopy Manager

Register the combinations of backup sources and targets in AdvancedCopy Manager.

For using replication management

Register the devices you checked in above procedure as copy source volumes, and the devices you prepared as backup target volumes as copy destination volumes.

Since these are controlled synchronously in processing for backup and restoration, you have to register all devices that constitute a storage pool as 1 group. For details on controlling groups, refer to "6.4.7 Creating groups".

[Example]

Specify the copy source and destination volumes to create the groups for storage pools STP1 and STP2.

  • With the disks constituting storage pool STP1 as the copy source volume, create group "STP1".

  • With the disks constituting storage pool STP2 as the copy source volume, create group "STP2".

# /opt/FJSVswsrp/bin/swsrpsetvol -o BOTH -Xgroup STP1 -Xvtoc /dev/dsk/c1t1d1s2@SV-1 /dev/dsk/c1t1d11s2@BKSV
swsrpsetvol completed
# /opt/FJSVswsrp/bin/swsrpsetvol -o BOTH -Xgroup STP2 /dev/dsk/c1t1d2@SV-1 /dev/dsk/c1t1d12@BKSV
swsrpsetvol completed
# /opt/FJSVswsrp/bin/swsrpsetvol -o BOTH -Xgroup STP2 /dev/dsk/c1t1d3@SV-1 /dev/dsk/c1t1d13@BKSV
swsrpsetvol completed
# /opt/FJSVswsrp/bin/swsrpvolinfo -L
Server Original-Volume        Size      Replica-Volume          Size      Copy         Op-Server Group
SV-1   /dev/dsk/c1t1d1s2@SV-1 4.0 Gbyte /dev/dsk/c1t1d11s2@BKSV 4.0 Gbyte bi-direction both      STP1
SV-1   /dev/dsk/c1t1d2@SV-1   4.0 Gbyte /dev/dsk/c1t1d12@BKSV   4.0 Gbyte bi-direction both      STP2
SV-1   /dev/dsk/c1t1d3@SV-1   4.0 Gbyte /dev/dsk/c1t1d13@BKSV   4.0 Gbyte bi-direction both      STP2

Point

For backup of system areas, you have to specify the entire disks (c1t1d1s2) which contain system areas. Specify the -Xvtoc option for including the VTOC area.

For using AdvancedCopy Manager CCM

Register the devices you checked in above procedure as copy source, and the devices you prepared as backup targets as copy destinations.

Since these are controlled synchronously in processing for backup and restoration, you have to register all devices that constitute a storage pool as 1 group. For details on controlling groups, refer to "Creating copy groups" and "Adding copy pairs" in the "ETERNUS SF Operation Guide for Copy Control Module".

  1. Creation of copy groups

    Create a copy group for each storage pool that is to be backed up.

    [Example]

    Create group "STP1" for storage pool STP1, and group "STP2" for STP2. (Copying type: OPC)

    # acgroup create -g STP1 -type OPC -a DX440
    Successful completion.
    #
    # acgroup create -g STP2 -type OPC -a DX440
    Successful completion.
  2. Registration of copy pairs

    In the created copy groups, register the combinations of copy sources and destinations. Register all devices that constitute a storage pool.

    [Example]

    • With the disks constituting storage pool STP1 as the copy source, register the pairs of copy sources and targets in group "STP1".

    • With the disks constituting storage pool STP2 as the copy source, register the pairs of copy sources and targets in group "STP2".

      # acpair add -g STP1 -p DX440/0x01:DX440/0x11
      Successful completion.
      # acpair add -g STP2 -p DX440/0x02:DX440/0x12
      Successful completion.
      # acpair add -g STP2 -p DX440/0x03:DX440/0x13
      Successful completion.