Preparing and triggering a FlashCopy mapping using the CLI Scenario: typical usage for the command-line interface Create FlashCopy mappings using the CLI

This task provides step-by-step instructions on how to prepare and trigger a FlashCopy to start the FlashCopy process. This will create a point-in-time copy of the data on the source VDisk and write it to the target VDisk for the mapping.

Steps

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

  1. Open a command prompt window.
  2. Issue the svctask prestartfcmap command to prepare the FlashCopy mapping before the copy process can be started (triggered).
    Example

    In our hypothetical scenario, the command to prepare a FlashCopy mapping called main1copy is:

    svctask prestartfcmap main1copy

    The mapping will enter the preparing state, and then move to the prepared state when it is ready. Issue the svcinfo lsfccmap command to check:

    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 command to start (trigger) the FlashCopy mapping to make the copy.
    Example

    In our hypothetical scenario, the command to trigger a FlashCopy mapping called main1copy is:

    svctask startfcmap main1copy
  4. Use the svcinfo lsfcmapprogress command to check the progress of the mapping.
    svcinfo lsfcmapprogress -delim : main1copy
    id:progress
    0:47
    When the copy is complete the output to the svcinfo lsfcmap command will show the progress at 100 and the status as idle_or_copied.
    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:::idle_or_copied:100:50
    The output to svcinfo lsfcmapprogress will show the progress at 100 for example,
    svcinfo lsfcmapprogress main1copy
    id               progress       
    0                100     
Result

You have now made a point-in-time copy of the data on mainvdisk1 which has been written to bkpvdisk1. The data on bkpvdisk1 will be visible to demohost2 because these VDisks are only mapped to demohost2.

(C) Copyright International Business Machines Corporation 2003, 2004