Provided that all volume group configurations satisfy the following conditions, the replication can be performed in units of volume groups.
One volume group has only one physical disk, and logical volumes are configured so that one physical disk includes n logical volumes.
If the above conditions are not satisfied, replication must be performed in units of physical disks.
Ensure that the following conditions are met when designing volume groups for use as source or replica volume groups:
All physical disks must have the same size.
The configurations of all logical volumes must be the same.
When configuring the source volume and the replica volume, specify their volume groups.
[Execution Example]
# /opt/FJSVswsrp/bin/swsrpsetvol /dev/vg01 /dev/vg02 swsrpsetvol completed #
If a volume group is to be replicated, the pre-processing and post-processing scripts must be customized.
Refer to "Appendix C Pre-processing and Post-processing of Replication" for information on the customization procedure.
Note
If replication is attempted without customization of the scripts, pre-processing for the source volume causes an error, so that replication cannot be achieved.
Execute replication with a volume group specified.
[Example of Snapshot Replication]
# /opt/FJSVswsrp/bin/swsrpmake /dev/vg01 /dev/vg02 FROM=/dev/vg01@SV1, TO=/dev/vg02@SV1 swsrpmake completed #
[Example of Synchronous Replication]
# /opt/FJSVswsrp/bin/swsrpstartsync /dev/vg01 /dev/vg02 FROM=/dev/vg01@SV1, TO=/dev/vg02@SV1 swsrpstartsync completed : (After equivalency maintenance state) : # /opt/FJSVswsrp/bin/swsrpmake /dev/vg01 /dev/vg02 FROM=/dev/vg01@SV1, TO=/dev/vg02@SV1 swsrpmake completed #