Red Hat Training

A Red Hat training course is available for RHEL 8

15.4. 删除逻辑卷快照

通过创建当前操作系统的快照,您可以访问、审核和测试操作系统之前的状态。在完成操作系统快照后,您可以将其删除来释放存储空间。

重要

删除后,您无法使用逻辑卷(LV)快照执行进一步的操作。

先决条件

  • 您正在运行当前版本的 Red Hat Enterprise Linux。

流程

  1. 从 GRUB 条目引导到 Red Hat Enterprise Linux 8。以下输出确认选择了新的快照:

    # boom list
    BootID    Version                  Name                             RootDevice
    6d2ec72 3.10.0-957.21.3.el8.x86_64 Red Hat Enterprise Linux Server /dev/rhel/root_snapshot_before_changes
  2. 使用 BootID 值删除快照条目:

    # boom delete --boot-id 6d2ec72
    • 这会从 GRUB 菜单中删除引导条目。
  3. 删除 LV 快照:

    # lvremove rhel/root_snapshot_before_changes
    Do you really want to remove active logical volume rhel/root_snapshot_before_changes? [y/n]: y
          Logical volume "root_snapshot_before_changes" successfully removed