syncvg command
Purpose
Synchronizes logical volume copies that are not current.
Syntax
Description
The syncvg command synchronizes the physical partitions, which are copies of the original physical partition, that are not current. The syncvg command can be used with logical volumes, physical volumes, or volume groups, with the Name parameter representing the logical volume name, physical volume name, or volume group name.
Unless disabled, the copies within a volume group are synchronized automatically when the volume group is activated by the activatevg command.
Note: For the sycnvg command to be successful, at least one good copy of the logical volume
must be accessible, and the physical volumes that contain this copy must be in ACTIVE state.
The syncvg command checks for the NUM_PARALLEL_LPS environment variable. The value of NUM_PARALLEL_LPS is used to set the number of logical partitions to be synchronized in parallel.
Flags
| Flag name | Description |
|---|---|
| -lv | Specifies that the Name parameter represents a logical volume device name. |
| -pv | Specifies that the Name parameter represents a physical volume device name. |
| -vg | Specifies that the Name parameter represents a volume group device name. |
Exit Status
Examples
- To synchronize the copies on physical volumes hdisk04 and hdisk05,
type:
syncvg -pv hdisk04 hdisk05 - To synchronize the copies on volume groups vg04 and vg05,
type:
syncvg -vg vg04 vg05