Preparing and starting a FlashCopy mapping using the CLI

Before you start the FlashCopy® process using the command-line interface (CLI), you must prepare a FlashCopy mapping.

Starting a FlashCopy mapping creates a point-in-time copy of the data on the source virtual disk (VDisk) and writes it to the target VDisk for the mapping.

Perform the following steps to prepare and start a FlashCopy mapping:

  1. Issue the svctask prestartfcmap CLI command to prepare the FlashCopy mapping.

    To run the following command, the FlashCopy mapping cannot belong to a consistency group.

    svctask prestartfcmap -restore main1copy

    Where main1copy is the name of the FlashCopy mapping.

    This command specifies the optional restore parameter, which forces the mapping to be prepared even if the target VDisk is being used as a source in another active FlashCopy mapping.

    The mapping enters the preparing state and moves to the prepared state when it is ready.

  2. Issue the svcinfo lsfcmap CLI command to check the state of the mapping.

    The following is an example of the output that is displayed:

    svcinfo lsfcmap -delim :
    id:name:source_vdisk_id:source_vdisk_name:target_vdisk_id:
    target_vdisk_name:group_id:group_name:status:progress:copy_rate
    0:main1copy:0:mainvdisk1:1:bkpvdisk1:::prepared:0:50
  3. Issue the svctask startfcmap CLI command to start the FlashCopy mapping.

    The following is an example of the CLI command you can issue to start the FlashCopy mapping:

    svctask startfcmap -restore main1copy

    Where main1copy is the name of the FlashCopy mapping.

    This command specifies the optional restore parameter, which forces the mapping to be started even if the target VDisk is being used as a source in another active FlashCopy mapping.

  4. Issue the svcinfo lsfcmapprogress CLI command with the FlashCopy mapping name or ID to check the progress of the mapping.

    The following is an example of the output that is displayed; the FlashCopy mapping ID 0 is 47% completed.

    svcinfo lsfcmapprogress -delim :
    id:progress
    0:47

You have created a point-in-time copy of the data on a source VDisk and written that data to a target VDisk. The data on the target VDisk is only recognized by the hosts that are mapped to it.

Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.