reorgvg

reorgvg Command



Purpose

Reorganizes the physical partition allocation for a volume group.

Syntax

reorgvg [ -i ] VolumeGroup [ LogicalVolume ... ]

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,  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.

In AIX Version 4.2 or later, If you enter the reorgvg command with
the volume group name and no other arguments, the entire volume group
is reorgnized. 

You can use the System Management Interface Tool (SMIT) to run this
command. To use SMIT, enter:

smit reorgvg

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 Version 4 System Management
Guide: Operating System and Devices.

The System Management Interface Tool (SMIT) Overview in AIX Version
4 System Management Guide: Operating System and Devices.

Monitoring and Tuning Disk I/O in AIX Versions 3.2 and 4 Performance
Tuning Guide.

AIX HACMP/6000 Concepts and Facilities.