所以我最近从 Ubuntu 21.04 升级到 21.10,现在我的 ZFS 数据集无法挂载,即使手动使用强制选项。
我尝试导出池并重新导入池,但即使使用强制选项尝试仍然失败。
root@daviserver:~# zfs mount -af
cannot mount 'ssdpool/sftpsync': Insufficient privileges
cannot mount 'ssdpool/sftpsync': Insufficient privileges
cannot mount 'ssdpool/docker': mount failed
syslog 显示以下内容,但我不确定这意味着什么。
Oct 17 13:19:21 daviserver kernel: [62900.992374] VFS: "mand" mount option not supported
Oct 17 13:19:21 daviserver kernel: [64689.402851] VFS: "mand" mount option not supported
Oct 17 13:19:21 daviserver kernel: [64689.402930] VFS: "mand" mount option not supported
我目前正在清理池以尝试修复所有错误。
root@daviserver:~# zpool status
pool: ssdpool
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 in progress since Sun Oct 17 13:25:30 2021
683G scanned at 898M/s, 70.0G issued at 92.0M/s, 683G total
0B repaired, 10.26% done, 01:53:36 to go
config:
NAME STATE READ WRITE CKSUM
ssdpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-Samsung_SSD_860_EVO_M.2_1TB_S415NB0KB06535B ONLINE 0 0 0
ata-Samsung_SSD_860_EVO_M.2_1TB_S415NB0KB07318V ONLINE 0 0 0
errors: No known data errors
答案1
我今天遇到了这个问题,dmesg 中也有同样的提示
[ 21.385582] VFS: "mand" mount option not supported
[ 21.411597] VFS: "mand" mount option not supported
[ 21.478512] audit: type=1400 audit(1636396227.595:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=3184 comm="apparmor_parser"
[ 21.478525] audit: type=1400 audit(1636396227.595:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=3186 comm="apparmor_parser"
[ 21.478683] audit: type=1400 audit(1636396227.595:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=3174 comm="apparmor_parser"
[ 21.479124] audit: type=1400 audit(1636396227.595:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=3175 comm="apparmor_parser"
[ 21.479128] audit: type=1400 audit(1636396227.595:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=3175 comm="apparmor_parser"
[ 21.479449] audit: type=1400 audit(1636396227.595:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=3178 comm="apparmor_parser"
[ 21.479453] audit: type=1400 audit(1636396227.595:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=3178 comm="apparmor_parser"
[ 21.479456] audit: type=1400 audit(1636396227.595:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=3178 comm="apparmor_parser"
[ 21.480818] audit: type=1400 audit(1636396227.599:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oosplash" pid=3183 comm="apparmor_parser"
[ 21.481815] audit: type=1400 audit(1636396227.599:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="virt-aa-helper" pid=3187 comm="apparmor_parser"
[ 21.744450] VFS: "mand" mount option not supported
[ 21.747138] VFS: "mand" mount option not supported
[ 21.747190] VFS: "mand" mount option not supported
[ 21.747345] VFS: "mand" mount option not supported
[ 21.747378] VFS: "mand" mount option not supported
在我的 SMB 服务器上,我记得有一个推荐的 zfs 选项用于 ZFS SMB 设置,名为恩布曼德用于非阻塞强制锁。所有无法挂载的 zpool 都启用了此选项。
sudo zfs get nbmand,mounted | grep -A1 ' on '
mountmand
选项 已于 2021 年 8 月删除并进入 21.10 的内核,它应该被 mount 命令忽略,但 ZFS 的 mount 却没有。
Asudo zfs inherit nbmand $POOL && sudo zfs mount -a
带回所有 zpools 和所有数据。