You can reduce the size of an LVM data volume only. You cannot reduce the size of a root volume.

The data volume must be detached during this procedure, which means that the data it contains will be inaccessible for a short period of time.

  1. Unmount the disk and reduce the filesystem using your hypervisor tools. For example:

    # umount /dev/mapper/clear_myvg-myvol
    # e2fsck -f /dev/mapper/clear_myvg-myvol
    # resize2fs /dev/mapper/clear_myvg-myvol <newsize>
  2. Detach the volume. For example:

    # hcl detach myvg-myvol

  3. Shrink the underlying volume. For example:

    # lvreduce -L<new size> /dev/myvg/myvol

  4. Reattach the volume so that Cryptographic Security Platform Vault recognizes the new size.

    # hcl attach myvg-myvol