zpool 升级我的启动池安全吗?

zpool 升级我的启动池安全吗?

我有一台家庭服务器,最初安装的是 Ubuntu 14.04,目前运行的是 19.10(最终将升级到 20.04)。所有文件系统(包括包含的文件系统)/boot都是 ZFS。当我运行 时zpool status rpool,它建议我运行zpool upgrade

$ zpool status rpool
  pool: rpool
 state: ONLINE
status: Some supported 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(5) for details.
  scan: scrub repaired 0B in 0 days 03:59:33 with 0 errors on Sun Jul 12 04:23:43 2020
config:

        NAME                                                STATE     READ WRITE CKSUM
        rpool                                               ONLINE       0     0     0
          raidz1-0                                          ONLINE       0     0     0
            ata-WDC_WD10EZEX-00BN5A0_WD-WCC3F0ZX6U1R-part1  ONLINE       0     0     0
            ata-WDC_WD10EZEX-00BN5A0_WD-WCC3F2VSJVE1-part1  ONLINE       0     0     0
            ata-WDC_WD10EADS-11M2B1_WD-WCAV54517936-part1   ONLINE       0     0     0

errors: No known data errors

在我安装 14.04 时,我认为建议是明确禁用某些 ZFS 功能,以使池对 GRUB 可读,这就是上述消息首先出现的原因。但是,我不知道这个建议是否仍然适用。运行是否安全zpool upgrade rpool,或者这样做会导致我的启动卷对 GRUB 不可读并阻止它启动?

以下是一些希望相关的系统信息:

$ apt-cache policy grub2 zfsutils-linux linux-image-generic
grub2:
  Installed: 2.04-1ubuntu12.2
  Candidate: 2.04-1ubuntu12.2
  Version table:
 *** 2.04-1ubuntu12.2 500
        500 http://us.archive.ubuntu.com/ubuntu eoan-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     2.04-1ubuntu12 500
        500 http://us.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
zfsutils-linux:
  Installed: 0.8.1-1ubuntu14.4
  Candidate: 0.8.1-1ubuntu14.4
  Version table:
 *** 0.8.1-1ubuntu14.4 500
        500 http://us.archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.1-1ubuntu14 500
        500 http://us.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
linux-image-generic:
  Installed: 5.3.0.62.52
  Candidate: 5.3.0.62.52
  Version table:
 *** 5.3.0.62.52 500
        500 http://us.archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu eoan-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.3.0.18.21 500
        500 http://us.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:        19.10
Codename:       eoan

$ uname -a
Linux mneme.dedyn.io 5.3.0-62-generic #56-Ubuntu SMP Tue Jun 23 11:20:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

答案1

鉴于我已经有另一台在 ZFS 上运行 20.04 并启用所有功能标志的计算机,我决定将我的服务器升级到 20.04,然后冒险运行zpool upgrade(在验证两台机器具有相同版本的 grub 和 zfs 之后)。成功了!我的服务器仍然可以正常启动。因此,虽然我无法对 19.10 发表任何评论,但我可以说,从 20.04 开始,zpool upgrade在您的启动池上运行不应导致您的机器无法启动。

相关内容