我有一个家庭服务器,最初安装的是 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
鉴于我已经有另一台计算机在 ZFS 上运行 20.04 并启用了所有功能标志,我决定将我的服务器升级到 20.04,然后抓住机会运行
zpool upgrade
(在验证两台计算机具有相同版本的 grub 和 zfs 之后)。有效!我的服务器仍然可以正常启动。因此,虽然我不能说关于 19.10 的任何内容,但我可以说从 20.04 开始,zpool upgrade
在您的引导池上运行不会导致您的机器无法引导。