You can use the command-line interface (CLI) to create FlashCopy® mappings.
A FlashCopy mapping
specifies the source and target virtual disk (VDisk). Source VDisks
and target VDisks must meet the following requirements:
- They must be the same size.
- They must be managed by the same cluster.
A VDisk can be the source in up to 256 mappings. A mapping
is started at the point in time when the copy is required.
Perform
the following steps to create FlashCopy mappings:
- The source and target VDisk must be the exact same size.
Issue the svcinfo lsvdisk -bytes CLI command
to find the size (capacity) of the VDisk in bytes.
- Issue the svctask mkfcmap CLI command to create
a FlashCopy mapping.
The following CLI command example creates a FlashCopy mapping and sets the copy rate:
svctask mkfcmap -source mainvdisk1 -target bkpvdisk1
-name main1copy -copyrate 75
Where mainvdisk1 is the
name of the source VDisk, bkpvdisk1 is the name of the VDisk
that you want to make the target VDisk, main1copy is the name
that you want to call the FlashCopy mapping,
and 75 is the copy rate.
The following is an example
of the CLI command you can issue to create FlashCopy mappings without the copy rate
parameter:
svctask mkfcmap -source mainvdisk2 -target bkpvdisk2
-name main2copy
Where
mainvdisk2 is the
name of the source VDisk,
bkpvdisk2 is the name of the VDisk
that you want to make the target VDisk,
main2copy is the name
that you want to call the FlashCopy mapping.
Note: The
default copy rate of 50 is used if you do not specify a copy rate.
If the specified source and target
VDisks are also the target and source VDisks of an existing mapping,
the mapping that is being created and the existing mapping become
partners. If one mapping is created as incremental, its partner is
automatically incremental. A mapping can have only one partner.
- Issue the svcinfo lsfcmap CLI command to check the attributes of the FlashCopy mappings that have been created:
The following is an example of a CLI command that you can issue to view
the attributes of the FlashCopy mappings:
svcinfo lsfcmap -delim :
Where -delim species the delimiter. The following is an example of the output that is displayed:
id:name:source_vdisk_id:source_vdisk_name:target_vdisk_id:target_vdisk_name:
group_id:group_name:status:progress:copy_rate:clean_progress:incremental
0:main1copy:77:vdisk77:78:vdisk78:::idle_or_copied:0:75:100:off
1:main2copy:79:vdisk79:80:vdisk80:::idle_or_copied:0:50:100:off