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.
Perform the following steps to prepare and trigger a FlashCopy consistency group:
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
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.