Rate This Document
Findability
Accuracy
Completeness
Readability

How Do I Clear Residual Data Partitions?

Clearing Data Volumes

  1. Run the following command to check drive statistics. In the following figure, the residual data volumes are marked in red boxes.
    lsblk

  2. Take the bcache0 device as an example. Copy the LVM index of the target data volume and run the following command to clear data:
    dmsetup remove ceph--f559c3f7--d0e8--4cdc--b1d5--4c7208990746-osd--block--9d4a70f9--b75a--4dfb--8b11--121734750846
  3. Run the check command again to verify whether the preceding operation is successful. If information in the following figure is displayed, the operation is successful.
    lsblk

Clearing File Types

  1. Run the following command to check drive statistics. As shown in the following figure, the FSTYPE column contains information marked in the red box.
    lsblk -f

  2. Run the following command to clear a partition, for example, nvme1n1p2:
    wipefs -a /dev/nvme1n1p2

  3. Run the check command again to verify whether the preceding operation is successful. If information in the following figure is displayed, the operation is successful.