HV VM Snapshot 删除后在 LH 仍可见的原因

在 HV 将对应的 VM Snapshot 删除后,在 LH 界面仍然能够看到对应的 Volume Snapshot:

HV 创建的 VM 以 LH 作为后端存储,因此在创建 VM Snapshot 时,本质上是在对应的 LH Volume 上创建 Snapshot。若删除 VM Snapshot,LH 会将该 Snapshot 标记为 Removed: True,此时该 Snapshot 将无法再用于恢复:

之所以在 LH 中仍能看到该 Snapshot,是因为 LH 在创建 Snapshot 时,会生成一个新的空 Volume Head,并将原有的 Volume Head 转换为一个快照(由系统或用户命名)。此后,新的写入数据会进入新的 Volume Head,而读取数据时则会同时从当前 Volume Head 和历史快照中读取数据。基于这一机制,最后一个快照在当前架构下无法被删除。

另外,不建议直接在 LH 界面手动操作由 HV 创建的任何 LH 资源,人工干预可能会破坏 HV 对 LH 的管理逻辑,进而影响相关功能的正常运行。

参考资料:https://github.com/longhorn/longhorn/issues/11855

Author

Warner Chen

Posted on

2026-01-06

Updated on

2026-01-06

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.