Synchronizes all physical copies of all of the logical partitions for a logical volume.
Logical Volume Manager Library (liblvm.a)
#include <lvm.h>
int lvm_resynclv (LV_ID, Force) struct Lv_id *LV_ID; int Force;
Note: You must have root user authority to use this subroutine.
The lvm_resynclv subroutine synchronizes all physical copies of a logical partition for each logical partition of the logical volume specified by the LV_ID parameter. The volume group must be varied on or an error is returned.
The Force parameter is used to specify whether all physical copies or only stale physical copies of a logical partition are to be resynchronized. When the Force parameter is False, a good physical copy is propagated only to the stale physical copies. This is sufficient for most logical volumes.
If the Force parameter is True, a good physical copy is chosen and propagated to all other copies of the logical partition whether or not they are stale. Setting the Force parameter to True is sometimes necessary in cases in which mirror-write consistency recovery was not specified for the logical volume. This is especially important after a crash occurs while writing to the logical volume. It is recommended that mirror write consistency be selected for most mirrored logical volumes. For more information on mirror write consistency, see the lvm_createlv and lvm_changelv subroutines.
LV_ID | Specifies the logical volume name. |
Force | Specifies which physical copies of a logical partition will be resynchronized. |
Upon successful completion, the lvm_resynclv subroutine returns a value of 0.
If the lvm_resynclv subroutine fails, it returns one of the following error codes:
This subroutine is part of Base Operating System (BOS) Runtime.
The lvm_changelv subroutine, lvm_createlv subroutine, lvm_resynclp subroutine, lvm_resyncpv subroutine, lvm_varyonvg subroutine.
List of Logical Volume Subroutines and Logical Volume Programming Overview in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.