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.
Perform the following steps to prepare and trigger a FlashCopy mapping:
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
In our hypothetical scenario, the command to trigger a FlashCopy mapping called main1copy is:
svctask startfcmap main1copy
svcinfo lsfcmapprogress -delim : main1copy id:progress 0:47When 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:50The output to svcinfo lsfcmapprogress will show the progress at 100 for example,
svcinfo lsfcmapprogress main1copy id progress 0 100
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.