reducevg command

Purpose

Removes physical volumes from a volume group. When all physical volumes are removed from the volume group, the volume group is deleted.

Syntax

reducevg [ -f ] [ -rmlv ]VolumeGroup PhysicalVolume ...

Description

The reducevg command removes one or more physical volumes represented by the PhysicalVolume parameter from the VolumeGroup. When you remove all physical volumes in a volume group, the volume group is also removed.

Note:
  • Sometimes a disk is removed from the system without first running the reducevg command. The VGDA still has this removed disk in its memory, but the PhysicalVolume name no longer exists or has been reassigned. To remove references to this missing disk you can still use reducevg, but with the Physical Volume ID (PVID) instead of the disk name: reducevg VolumeGroup PVID.
  • The specified physical volume cannot contain a logical volume that is assigned to a shared memory pool (to be used as a paging space device by a shared memory partition).

Flags

Flag name Description
-f Removes the requirement for user confirmation when the -rmlv flag is used.
-rmlv Deallocates the existing logical volume partitions and then deletes resultant empty logical volumes from the specified physical volumes. User confirmation is required unless the -f flag is added.
Attention: The reducevg command with the -rmlv flag automatically deletes all logical volume data on the physical volume before removing the physical volume from the volume group. If a logical volume spans multiple physical volumes, the removal of any of those physical volumes may jeopardize the integrity of the entire logical volume.

Examples

  1. To remove physical volume hdisk1 from volume group vg01, type:
    reducevg vg01 hdisk1
  2. To remove physical volume hdisk1 and all residing logical volumes from volume group vg01 without user confirmation, type:
    Attention: The reducevg command with the -rmlv flag automatically deletes all logical volume data before removing the physical volume.
     reducevg -rmlv -f vg01 hdisk1
    The physical volume hdisk1 and all residing logical volumes are removed.



Last updated: Wed, November 18, 2020