When the volume group configuration does not satisfy the conditions for operation in units of volume groups, replication can be performed by operation in units of physical disks.
When backup is performed in units of physical disks, volume group integrity must be maintained and, therefore, all physical disks in the volume group must be operated synchronously.
Point
Refer to "stgxfwcmdispdev (Device information display command)", or the "View Devices Using the Same Copy Area or the Same Logical Group" of the "ETERNUS SF AdvancedCopy Manager User's Guide" for the method of checking if the physical volume is suitable for synchronization
Note
For operation in a cluster configuration, the device name (/dev/(r)dsk/c#t#d#) of the physical disks that comprise the volume group must be the same at all servers that comprise the cluster, and the ETERNUS disk indicated by the device name must be the same.
Figure 7.48 Sample configuration for operation in units of physical disks
To use the replica volume after replication in the situation when a source volume is a volume group, the replica volume must have the same logical volume configuration as the source volume and must be a volume group of the same physical size.
The volume group configuration information file must be restored during replication post-processing. Confirm that the volume group configuration file has been saved. It is usually saved to the following location:
/etc/lvmconf/<volume-group-name>.conf |
When configuring the source and replica volumes, specify all of the physical disks in the volume group.
# /opt/FJSVswsrp/bin/swsrpsetvol /dev/dsk/c1t0d10 /dev/dsk/c1t0d20 swsrpsetvol completed # /opt/FJSVswsrp/bin/swsrpsetvol /dev/dsk/c1t0d11 /dev/dsk/c1t0d21 swsrpsetvol completed #
Perform the operation by synchronizing all physical disks in the volume group.
Perform the required pre-processing and post-processing work for each volume group before and after (respectively) the replication. Disable pre-processing and post-processing when operating individual physical disks.
(Perform preprocessing for the source and target volumes.) # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d10 /dev/dsk/c1t0d20 FROM=/dev/dsk/c1t0d10@SV1, TO=/dev/dsk/c1t0d20@SV1 swsrpmake completed # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d11 /dev/dsk/c1t0d21 FROM=/dev/dsk/c1t0d11@SV1, TO=/dev/dsk/c1t0d21@SV1 swsrpmake completed # (Perform postprocessing for the source and target volumes.)
(Perform preprocessing for the target volume.) # /opt/FJSVswsrp/bin/swsrpstartsync -t /dev/dsk/c1t0d10 /dev/dsk/c1t0d20 FROM=/dev/dsk/c1t0d10@SV1, TO=/dev/dsk/c1t0d20@SV1 swsrpstartsync completed # /opt/FJSVswsrp/bin/swsrpstartsync -t /dev/dsk/c1t0d11 /dev/dsk/c1t0d21 FROM=/dev/dsk/c1t0d11@SV1, TO=/dev/dsk/c1t0d21@SV1 swsrpstartsync completed (After state of equivalency upkeep) (Perform preprocessing for the source volume.) # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d10 /dev/dsk/c1t0d20 FROM=/dev/dsk/c1t0d10@SV1, TO=/dev/dsk/c1t0d20@SV1 swsrpmake completed # /opt/FJSVswsrp/bin/swsrpmake -f -t /dev/dsk/c1t0d11 /dev/dsk/c1t0d21 FROM=/dev/dsk/c1t0d11@SV1, TO=/dev/dsk/c1t0d21@SV1 swsrpmake completed # (Perform postprocessing for the source and target volumes.)
The table below summarizes the pre-processing and post-processing work to be performed before and after replication.
Pre-processing | Post-processing | |
---|---|---|
Source |
| If file systems are included, remount the volumes that were unmounted by pre-processing. |
Target volume |
|
|
Reconfiguring the volume group
Reconfigure the volume group as follows:
Deactivate the volume group.
# /usr/sbin/vgchange -a n /dev/vg02 # |
Restore volume group configuration information.
# /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d20 # /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d21 # |
Reactivate the volume group.
[When cluster operation is enabled] |
Reconfigure shared mode volume groups using the following procedure:
Stop the volume group (on all nodes involved in the transaction).
# /usr/sbin/vgchange -a n /dev/vg02 # |
Restore volume group configuration information (on the node where the volume group was created).
# /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d20 # /usr/sbin/vgcfgrestore -n /dev/vg02 /dev/rdsk/c1t0d21 # |
Mark the volume group as shareable (on the node where the volume group was created).
# /usr/sbin/vgchange -S y -c y /dev/vg02 # |
Start the volume group (on all nodes involved in the transaction).
# /usr/sbin/vgchange -a s /dev/vg02 # |