Preparing and triggering a FlashCopy Consistency Group using the CLI Scenario: typical usage for the command-line interface

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

Steps

Perform the following steps to prepare and trigger a FlashCopy consistency group:

  1. Open a command prompt window.
  2. Issue the svctask prestartfcconsistgrp command to prepare the FlashCopy Consistency Group before the copy process can be started (triggered). When you have assigned several mappings to a FlashCopy Consistency Group, you only have to issue a single prepare command for the whole group, to prepare all the mappings at once.
    Example

    In our hypothetical scenario, the command to prepare a FlashCopy Consistency group called maintobkpfcopy is:

    svctask prestartfcconsistgrp maintobkpfcopy
    

    The group will enter the preparing state, and then move to the prepared state when it is ready. Issue the svcinfo lsfcconsistgrp command to check:
    svcinfo lsfcconsistgrp -delim :
    id:name:status
    1:maintobkpfcopy:prepared

  3. Issue the svctask startfcconsistgrp command to start (trigger) the FlashCopy Consistency Group to make the copy. You only have to issue a single start command for the whole group, to trigger all the mappings at once.
    Example

    In our hypothetical scenario, the command to trigger a FlashCopy Consistency group called maintobkpfcopy is:

    svctask startfcconsistgrp maintobkpfcopy

    The group will enter the copying state, and then return to the idle_copied state when complete. You can issue the svcinfo lsfcconsistgrp command to check the state of the group:
    svcinfo lsfcconsistgrp -delim :
    id:name:state
    1:maintobkpfcopy:copying

    Use the svcinfo lsfcmapprogress command to check the progress of each mapping, main1copy and main2copy:


    svcinfo lsfcmapprogress -delim : main1copy
    id:progress
    0:100

    svcinfo lsfcmapprogress -delim : main2copy
    id:progress
    1:23

    Finally issue the svcinfo lsfcconsistgrp command to display the detailed view of the group maintobkpfcopy, which returns to idle_copied state when both mappings have reached 100% progress:
    svcinfo lsfcconsistgrp -delim : maintobkpfcopy
    id:1
    name:maintobkpfcopy
    state:idle_copied
    FC_mapping_id:0
    FC_mapping_name:main1copy
    FC_mapping_id:1
    FC_mapping_name:main2copy

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

Related topics Scenario: typical usage for the command-line interface

(C) Copyright International Business Machines Corporation 2003, 2004