reorgvg Command

Purpose

Reorganizes the physical partition allocation for a volume group.

Syntax

reorgvg-i ] VolumeGroupLogicalVolume ... ]

Description

The reorgvg command reorganizes the placement of allocated physical partitions within the VolumeGroup, according to the allocation characteristics of each logical volume. Use the LogicalVolume parameter to reorganize specific logical volumes; highest priority is given to the first logical volume name in the LogicalVolume parameter list and lowest priority is given to the last logical volume in the parameter list. The volume group must be varied on and must have free partitions before you can use the reorgvg command.

The relocatable flag of each logical volume must be set to y with the chlv -r command for the reorganization to take effect; otherwise, the logical volume is ignored.
Note:
  1. The reorgvg command does not reorganize the placement of allocated physical partitions for any striped logical volumes.
  2. At least one free physical partition (PP) must exist on the specified volume group for the reorgvg command to run successfully. For mirrored logical volumes, one free PP per physical volume (PV) is required in order for the reorgvg command to maintain logical volume strictness during execution; otherwise the reorgvg command still runs, but moves both copies of a logical partition to the same disk during its execution.
  3. To use this command, you must either have root user authority or be a member of the system group.
  4. If you enter the reorgvg command with the volume group name and no other arguments, the entire volume group is reorganized.
  5. You cannot use the reorgvg command on a snapshot volume group or a volume group that has a snapshot volume group.
  6. You cannot use the reorgvg command on a volume group that has an active firmware assisted dump logical volume.

You can use the Volumes application in Web-based System Manager (wsm) to change volume characteristics.

You could also use the System Management Interface Tool (SMIT)smit reorgvg fast path to run this command.

Flags

Item Description
-i Specifies physical volume names read from standard input. Only the partitions on these physical volumes are organized.

Security

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To reorganize logical volumes lv03, lv04, and lv07 on volume group vg02, enter:
    reorgvg vg02 lv03 lv04 lv07
    Only the listed logical volumes are reorganized on vg02.
  2. To reorganize only the partitions located on physical volumes hdisk4 and hdisk6 that belong to logical volumes lv203 and lv205, enter:
    echo "hdisk4 hdisk6" | reorgvg -i vg02 lv203 lv205
    The partitions located on physical volumes hdisk4 and hdisk6 of volume group vg02, that belong to logical volumes lv203 and lv205, are reorganized.

Files

Item Description
/usr/sbin/reorgvg Directory where the reorgvg command resides.
/tmp Directory where the temporary files are stored while the command is running.