1.6. Cleaning up container storage for the bootc image and the MicroShift CSI
You can remove an additional LVM volume group loop device that was shared with the container and used by the MicroShift Logical Volume Manager (LVM) Container Storage Interface (CSI).
Prerequisites
- A Red Hat Enterprise Linux (RHEL) 9.4 host with an active Red Hat subscription for building MicroShift bootc images and running containers.
-
You are logged into the RHEL 9.4 host using the user credentials that have
sudopermissions.
Procedure
Clean up the loop device and additional volume group by using the following commands:
Detach the loop device by entering the following command:
$ sudo losetup -d "${VGLOOP}"Delete the LVM volume group file by entering the following command:
$ sudo rm -f "${VGFILE}"