Reorganizes the physical partition allocation for a volume group.
reorgvg [ -i ] VolumeGroup [ LogicalVolume ... ]
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.
- The reorgvg command does not reorganize the placement of allocated physical partitions for any striped logical volumes.
- At least one free physical partition must exist on the specified volume group for the reorgvg command to run successfully.
- To use this command, you must either have root user authority or be a member of the system group.
- 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 Web-based System Manager Volumes application (wsm lvm fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit reorgvg fast path to run this command.
|-i||Specifies physical volume names read from standard input. Only the partitions on these physical volumes are organized.|
reorgvg vg02 lv03 lv04 lv07Only the listed logical volumes are reorganized on vg02 .
echo "hdisk04 hdisk06" | reorgvg -i vg02 lv203 lv205The partitions located on physical volumes hdisk04 and hdisk06 of volume group vg02 , that belong to logical volumes lv203 and lv205 , are reorganized.
|/etc||Directory where the reorgvg command resides.|
|/tmp||Directory where the temporary files are stored while the command is running.|
The chlv command, lslv command, mklv command.
The Logical Volume Storage Overview in the AIX Version 4.3 System Management Guide: Operating System and Devices.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
The System Management Interface Tool (SMIT) Overview in AIX Version 4.3 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.