Top
ETERNUS SF AdvancedCopy Manager V16.8 Operation Guide
FUJITSU Storage

G.2.4 Operation

This section describes procedures for backing up and restoring ZFS storage pools.

For details on the settings (device settings) in advance for using AdvancedCopy Manager, or on the backup and restoration procedures, refer to "Chapter 6 Replication" or the AdvancedCopy Manager Operation Guide for Copy Control Module.

Note that the procedures and commands shown here are examples of snapshot-type copying (OPC). For using other types of copying, replace the procedures and commands as needed for each type of copying.

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

Backup

This section shows the procedure for online backup.

No.

Description

Controlling Server

At First Backup (*1)

1

Export the backup storage pool.

Backup server

2

Using AdvancedCopy Manager, back up data to a backup volume from a device in the backup storage pool.

Backup server

3

Create a snapshot of the transaction storage pool.

Business server

Yes

4

Using AdvancedCopy Manager, back up data to a device in the backup storage pool from a device in the transaction storage pool.

Business server

Yes

5

Check the status of the backup storage pool.

Backup server

Yes

*1: When you make a backup for the first time, only implement the processes indicated with "Yes".

The procedure for the online backup is as follows:

  1. Export the backup storage pool.

    For more information on export of ZFS storage pools, refer to the operating system manual.

    [Example]

    # zpool list
    NAME   SIZE   USED     AVAIL    CAP  HEALTH  ALTROOT
    STP1   345G   121M     345G     0%   ONLINE  -
    # zpool export STP1
    #
  2. Using AdvancedCopy Manager, back up the backup data on the backup storage pool to a backup volume.

    Before storing backups in the backup storage pool, back up all the devices that composes the backup storage pool to a backup volume. If multiple backup volumes are used (to save backups of 2 or more generations), use any unused or oldest generation backup volumes for backups.

    For Using Replication Management Function

    Specify backup group "BKSTP1" for the -Xgroup option and execute the swsrpmake command.

    [Example]

    # /opt/FJSVswsrp/bin/swsrpmake -Xgroup BKSTP1
    GROUP=BKSTP1 swsrpmake completed
    #
    For Using AdvancedCopy Manager CCM

    Specify backup group "BKSTP1" for the -g option and execute the acopc start command for AdvancedCopy Manager CCM.

    [Example]

    # /opt/FJSVccm/bin/acopc start -g BKSTP1
    DX440/0x11:DX440/0x12
    # DATE : 2012/01/01 00:00:00 - << OPC Started >>
    # From:BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=11/Adr_high=0/Adr_low=0/size_high=0/size_low=0
    # To:BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=12/Adr_high=0/Adr_low=0
    Succeeded : 1
    Failed : 0
    #

    Note

    Since processing is carried out for all devices that constitute the storage pool, do not specify any copy pairs.

  3. Create snapshots of the transaction storage pool.

    1. Delete the snapshot that is not restored to the transaction storage pool.
      To delete ZFS snapshots, refer to the operating system manual.

    2. Execute the sync command to synchronize the transaction storage pool with the file system.

    3. Create a file system snapshot on the transaction storage pool.
      To create ZFS snapshots, refer to the operating system manual.

    4. Execute the sync command to synchronize the transaction storage pool with the file system.

    [Example]

    # zfs destroy STP1@SNAP0
    # sync
    # zfs snapshot -r STP1@SNAP0
    # sync
    #
  4. Using AdvancedCopy Manager, back up data to a device in the backup storage pool from a device in the transaction storage pool.

    • For Using Replication Management Function

      Specify backup/restore group "STP1" for the -Xgroup option and execute the swsrpmake command.

      [Example]

      # /opt/FJSVswsrp/bin/swsrpmake -Xgroup STP1
      GROUP=STP1 swsrpmake completed
      #
    • For Using AdvancedCopy Manager CCM

      Specify backup/restore group "STP1" for the -g option and execute the acopc start command for AdvancedCopy Manager CCM.

      [Example]

      # /opt/FJSVccm/bin/acopc start -g STP1
      DX440/0x01:DX440/0x11
      # DATE : 2012/01/01 00:00:00 - << OPC Started >>
      # From:BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=01/Adr_high=0/Adr_low=0/size_high=0/size_low=0
      # To:BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=11/Adr_high=0/Adr_low=0
      Succeeded : 1
      Failed : 0
      #

    Note

    Since processing is carried out for all devices that constitute the storage pool, do not specify any copy pairs.

  5. Check the status of the backup storage pool.

    1. Import the backup storage pool on the backup server.

    2. Export the backup storage pool on the backup server.

    For more information on import/export of the ZFS storage pool, refer to the operating system manual.

    [Example]

    # zpool import
      pool: STP1
        id: 15271135801818262407
     state: ONLINE
    action: The pool can be imported using its name or numeric identifier.
    config:
    
            STP1        ONLINE
              c2t1d11   ONLINE
    # zpool import -f STP1
    # zpool list
    NAME   SIZE   USED     AVAIL    CAP  HEALTH  ALTROOT
    STP1   345G   345M     345G     0%   ONLINE  -
    # zpool export STP1
    #

    Note

    If import/export has failed, re-execute it from step 3.

Restoration

This section shows the procedure for restoration.

No.

Description

Controlling Server

1

Export the transaction storage pool.

Business server

2

When restoring data from a device in the backup storage pool, export the backup storage pool.

Backup server

3

Using AdvancedCopy Manager, restore data to a device in the transaction storage pool from a device in the backup storage pool or a backup volume.

Business server or Backup server

4

Import the transaction storage pool.

Business server

5

Roll back the transaction storage pool to a restored snapshot.

Business server

6

Mount the target ZFS file systems.

Business server

The procedure for restoration is as follows:

  1. If any transaction storage pool exists, export it.

    For more information on export of ZFS storage pools, refer to the operating system manual.

    [Example]

    # zpool list
    NAME   SIZE   USED     AVAIL    CAP  HEALTH  ALTROOT
    STP1   345G   345M     345G     0%   ONLINE  -
    # zpool export STP1
    #
  2. When restoring data from a device in the backup storage pool, export the backup storage pool.

    For more information on export of ZFS storage pools, refer to the operating system manual.

    [Example]

    # zpool list
    NAME   SIZE   USED     AVAIL    CAP  HEALTH  ALTROOT
    STP1   345G   121M     345G     0%   ONLINE  -
    # zpool export BKSTP1
    #
  3. Using AdvancedCopy Manager, restore data to a device in the transaction storage pool from a device in the backup storage pool or a backup volume.

    • When Restoring Data from Device in Backup Storage Pool Using Replication Management Function

      Specify backup/restore group "STP1" for the -Xreverse option and the -Xgroup option and execute the swsrpmake command.

      [Example]

      # /opt/FJSVswsrp/bin/swsrpmake -Xgroup STP1 -Xreverse
      GROUP=STP1 swsrpmake completed
      #
    • When Restoring Data from Device in Backup Storage Pool Using AdvancedCopy Manager CCM

      Specify backup/restore group "STP1" for the -r option and the -g option and execute the acopc start command for AdvancedCopy Manager CCM.

      [Example]

      # /opt/FJSVccm/bin/acopc start -g STP1 -r
      DX440/0x11:DX440/0x01
      # DATE : 2012/01/01 00:00:00 - << OPC Started >>
      # From: BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=11/Adr_high=0/Adr_low=0
      # To: BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=01/Adr_high=0/Adr_low=0/size_high=0/size_low=0
      Succeeded : 1
      Failed : 0
      #
    • When Restoring Data from Device in Backup Volume Using Replication Management Function

      Specify restore group "RSSTP1" for the -Xgroup option and execute the swsrpmake command.

      [Example]

      # /opt/FJSVswsrp/bin/swsrpmake -Xgroup RSSTP1
      GROUP=RSSTP1 swsrpmake completed
      #
    • When Restoring Data from Device in Backup Volume Using AdvancedCopy Manager CCM

      Specify restore group "RSSTP1" for the -g option and execute the acopc start command for AdvancedCopy Manager CCM.

      [Example]

      # /opt/FJSVccm/bin/acopc start -g RSSTP1
      DX440/0x12:DX440/0x01
      # DATE : 2012/01/01 00:00:00 - << OPC Started >>
      # From: BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=12/Adr_high=0/Adr_low=0/size_high=0/size_low=0
      # To: BoxID=303045343030304d3323232323234534353053323041232323234b44343033303633393030342323/Olu=01/Adr_high=0/Adr_low=0
      Succeeded : 1
      Failed : 0
      #

    Note

    Since processing is carried out for all devices that constitute the storage pool, do not specify any copy pairs.

  4. In the transaction storage pool, import the device restored at step 3 in the restore procedure.

    For information on how to import a ZFS storage pool, refer to the operating system manuals.

    [Example]

    # zpool import STP1
    #
  5. Roll back the transaction storage pool to a restored snapshot.

    To see how to roll back the ZFS storage pool to a snapshot, refer to the operating system manual.

    [Example]

    For rolling back to the "SNAP1"

    # zfs list -t snapshot
    NAME           USED  AVAIL  REFER  MOUNTPOINT
    STP1@SNAP1       0       -    19K   -
    STP1@SNAP2     16M       -    18K   -
    STP1@SNAP3     32M       -    18K   -
    # zfs rollback -r STP1@SNAP1
    #
  6. Mount the target ZFS file systems.

    If the ZFS file systems have not been mounted automatically by step 5, mount them manually.

    For information on how to mount ZFS file systems, refer to the operating system manuals.

    [Example]

    # zfs mount STP1/data1
    # zfs mount STP1/data2
    #