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.
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>
Detach the volume. For example:
# hcl detach myvg-myvol
Shrink the underlying volume. For example:
# lvreduce -L<new size> /dev/myvg/myvol
Reattach the volume so that Cryptographic Security Platform Vault recognizes the new size.
# hcl attach myvg-myvol