[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

reorgvg Command

Purpose

Reorganizes the physical partition allocation for a volume group.

Syntax

reorgvg-i ] VolumeGroupLogicalVolume ... ]

Description

Attention: This command is not allowed if the volume group is varied on in concurrent mode.

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.

Notes:
  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 must exist on the specified volume group for the reorgvg command to run successfully.
  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, it will only reorganize the first logical volume in the volume group. The first logical volume is the one listed by the lsvg -l VolumeName command.

    If you enter the reorgvg command with the volume group name and no other arguments, the entire volume group is reorganized.

  5. The reorgvg command is not allowed on a snapshot volume group or a volume group that has a snapshot volume group.

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

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

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 hdisk04 and hdisk06 that belong to logical volumes lv203 and lv205, enter:

    echo "hdisk04 hdisk06" | reorgvg -i vg02 lv203 lv205

    The partitions located on physical volumes hdisk04 and hdisk06 of volume group vg02, that belong to logical volumes lv203 and lv205, are reorganized.

Files

/etc Directory where the reorgvg command resides.
/tmp Directory where the temporary files are stored while the command is running.

Related Information

The chlv command, lslv command, mklv command.

The Logical Volume Storage Overview in the AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.

For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.2 Web-based System Manager Administration Guide.

The System Management Interface Tool in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.

Monitoring and Tuning Disk I/O Use in AIX 5L Version 5.2 Performance Management Guide.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]