This task provides step-by-step instructions on how to create a FlashCopy Consistency Group and add mappings to it.
If you have created several FlashCopy mappings for a group of VDisks that contain elements of data for the same application, you may find it convenient to assign these mappings to a single FlashCopy Consistency Group. Then you can issue a single prepare or trigger command for the whole group, so that, for example, all the files for a particular database are copied at the same time.
Perform the following steps to create a FlashCopy mappings:
In our hypothetical scenario, the command to create a FlashCopy Consistency group called maintobkpfcopy is:
svctask mkfcconsistgrp -name maintobkpfcopy
Use the svcinfo lsfcconsistgrp command to display
the attributes of the group you have created.
svcinfo lsfcconsistgrp -delim :
This command displays the following:
id:name:status
1:maintobkpfcopy:idle_copied
In our hypothetical scenario, the commands to add the mappings called main1copy and main2copy to the consistency group called maintobkpfcopy are:
svctask chfcmap -consistgrp maintobkpfcopy main1copy svctask chfcmap -consistgrp maintobkpfcopy main2copy
Use the svcinfo lsfcmap command to display the new attributes of the mappings.
svcinfo lsfcmap -delim :
id:name:source_vdisk_id:source_vdisk_name:target_vdisk_id:
target_vdisk_name:group_id:group_name:state:progress:copy_rate
0:main1copy:28:maindisk1:29:bkpdisk1:1:maintobkpfcopy:idle_copied::75
1:main2copy:30:maindisk2:31:bkpdisk2:1:maintobkpfcopy:idle_copied::50
Notice that the group_name field displays maintobkpfcopy for both mappings.
Use the svcinfo lsfcconsistgrp command with the name
of the consistency group to display the detailed attributes of the group.
This now includes a list of the IDs and names of the mappings that are in
the group.
svcinfo lsfcconsistgrp -delim : maintobkpfcopy
id:1
name:maintobkpfcopy
status:idle_copied
FC_mapping_id:0
FC_mapping_name:main1copy
FC_mapping_id:1
FC_mapping_name:main2copy