cli_mirrorvg command
Purpose
Syntax
cli_mirrorvg [-S | -s] [-Q] [-c Copies] [-m] VolumeGroup [PhysicalVolume...]
Description
Uses C-SPOC to run the mirrorvg command with the specified parameters, and make the updated volume group definition available on all cluster nodes.
Flags
- -c Copies
- Specifies the minimum number of copies that each logical volume must have after you run the mirrorvg command. It might be possible, through the independent use of the mklvcopy command, that some logical volumes might have more than the minimum number specified after you run the mirrorvg command. The minimum value that you can specify is 2 and the maximum value you can specify is 3. A value of 1 is ignored.
- -m exact map
- Allows mirroring of logical volumes in the exact physical partition order that is in the original copy. You must specify a physical volume where the exact map copy is placed. If the space is insufficient for an exact mapping, then the command fails. You must add new drives or pick a different set of drives that satisfy an exact logical volume mapping of the entire volume group. The designated disks must be equal to or exceed the size of the drives that are being mirrored (regardless of if the entire disk is used). If any logical volume has already been mirrored the command fails.
- -Q Quorum Keep
- By default, when the content of a volume group is mirrored, the quorum for the volume group is disabled. If you want to keep the volume group quorum requirement after mirroring is complete, you can use this flag. For later quorum changes, see the chvg command.
- -S Background Sync
- Returns the mirrorvg command immediately and starts the syncvg command of the volume group in the a background. If you use this flag, it is not obvious when the mirrors complete their synchronization. However, as portions of the mirrors become synchronized, they are immediately used by the Logical Volume Manager (LVM) for mirroring.
- -s Disable Sync
- Returns the mirrorvg command immediately without performing any type of mirror synchronization. If you use this flag, the mirror might exist for a logical volume but it is not used by the operating system until it has been synchronized with the syncvg command.
Example
To specify two copies for every logical volume in shared volume group that is named vg01, enter:cli_mirrorvg -c 2 vg01