You can use the command-line interface (CLI) to create FlashCopy mappings.
A FlashCopy mapping
specifies the source and target volume. Source volumes and target
volumes must meet these requirements:
- They must be the same size
- They must be managed by the same clustered system (system)
A volume can be the source in up to 256 mappings. A mapping
is started at the point in time when the copy is required.
This task creates FlashCopy mappings:
- The source and target volume must be the exact same size.
Issue the lsvdisk -bytes CLI command to find the
size (capacity) of the volume in bytes.
- Issue the mkfcmap CLI command to create
a FlashCopy mapping.
This CLI command example creates a FlashCopy mapping and sets the copy rate:
mkfcmap -source mainvdisk1 -target bkpvdisk1
-name main1copy -copyrate 75
Where mainvdisk1 is
the name of the source volume, bkpvdisk1 is the
name of the volume that you want to make the target volume, main1copy is
the name that you want to call the FlashCopy mapping,
and 75 is the copy rate (which translates to MB
per second).
This is an example of the CLI command you can issue
to create FlashCopy mappings
without the copy rate parameter:
mkfcmap -source mainvdisk2 -target bkpvdisk2
-name main2copy
Where
mainvdisk2 is
the name of the source volume,
bkpvdisk2 is the
name of the volume that you want to make the target volume,
main2copy is
the name that you want to call the FlashCopy mapping.
Note: The default copy rate of 50 (which translates to 2 MB
per second) is used if you do not specify a copy rate.
If
the specified source and target volumes are also the target and source
volumes 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 lsfcmap CLI command to check
the attributes of the FlashCopy mappings
that have been created:
This is an example of a CLI
command that you can issue to view the attributes of the FlashCopy mappings:
lsfcmap -delim :
Where -delim specifies
the delimiter. This 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