如何处理zfs中的“某些支持的功能未启用”警告?

luc*_*rot 5 linux zfs

我一直在 ubuntu 18.04 的 root 上运行 zfs,最近发布升级到 22.04。有了它,zfs 从 0.8.something 升级到了 2.1.4。

现在,笔记本电脑上的 zpool 显着地通知我zpool upgrade

generic@motorbrot:/tmp$ sudo zpool status tank -v
  pool: tank
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
    The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
    the pool may no longer be accessible by software that does not support
    the features. See zpool-features(7) for details.
  scan: scrub repaired 0B in 00:29:29 with 0 errors on Mon Feb 13 17:24:37 2023
config:

    NAME         STATE     READ WRITE CKSUM
    tank         ONLINE       0     0     0
      nvme0n1p9  ONLINE       0     0     0

errors: No known data errors
Run Code Online (Sandbox Code Playgroud)

在简单的消费者用例场景中,为什么我要这样做?

我知道它与某些功能有关(可以用 列出zpool get all tank | grep feature@),但功能列表并不是不言自明的。因此我想知道我是否应该注意这个警告还是最好忽略它。

赞成什么也不做:

  • 我不想中断对游泳池的访问。不过,发生这种情况的可能性很小,除非我再次降级我的 zfs 版本。

  • 我也不想中断备份,并且不清楚从升级的池备份到旧池是否仍然有效。

  • 这个github问题

    该消息的全部问题首先在于它鼓励用户执行完全不必要的池升级,使池面临风险并限制兼容性。应教导用户保持保守,仅在真正想要或需要新功能时才进行升级。“如果它没有坏,就不要修理它。”

显然可以禁用警告

幸运的是,OpenZFS 2.1.0 提供了一项功能,可以让您关闭此操作,即 OpenZFS 支持部分升级。如果您将新的“兼容性”属性设置为已有的属性,“zpool status”将不会打扰您(尽管“zpool update -v”会向您显示缺少的内容)。

因此,考虑到所有因素,我是否想要在没有明确意识到我需要的新功能的情况下升级 zpool ?或者我应该忽略这个警告?也许更好的是,我可以以某种方式将其关闭,以便只有在实际上缺少功能时它才会显示吗?