我有一个名为data
的ZFS池,它有3个磁盘。两个磁盘通过ID连接到raidz,而第三个磁盘通过卷(sda
)附加。我物理上删除了sda设备,因为我想用名字来附加它。但是当我重新启动时,池就不再可用了。
两个按id磁盘驱动器仍然显示为联机,但无法导入池,并给出“无法导入‘数据’:I/O错误”。
我在运行Ubuntu。
命令输出:
$ sudo zpool status
no pools available
$ sudo zpool import
pool: data
id: 15166308533565302041
state: FAULTED
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
The pool may be active on another system, but can be imported using
the '-f' flag.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-5E
config:
data FAULTED corrupted data
raidz1-0 DEGRADED
ata-WDC_WD60EFAX-68JH4N1_WD-WX92D62J3PSZ ONLINE
ata-WDC_WD60EFZX-68B3FN0_WD-C82ELDYK ONLINE
sda FAULTED corrupted data
$ sudo zpool import -f
pool: data
id: 15166308533565302041
state: FAULTED
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
The pool may be active on another system, but can be imported using
the '-f' flag.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-5E
config:
data FAULTED corrupted data
raidz1-0 DEGRADED
ata-WDC_WD60EFAX-68JH4N1_WD-WX92D62J3PSZ ONLINE
ata-WDC_WD60EFZX-68B3FN0_WD-C82ELDYK ONLINE
sda FAULTED corrupted data
$ sudo zpool import -a
cannot import 'data': I/O error
Destroy and re-create the pool from
a backup source.
$ sudo zpool export data
cannot open 'data': no such pool
$ sudo zpool status -v
no pools available
$ sudo systemctl status zfs-import-cache
× zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-01-10 14:30:48 PST; 7min ago
Docs: man:zpool(8)
Process: 1174 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN $ZPOOL_IMPORT_OPTS (code=exited, status=1/FAILURE)
Main PID: 1174 (code=exited, status=1/FAILURE)
CPU: 44ms
Jan 10 14:30:48 ubuntu-server zpool[1174]: cannot import 'data': I/O error
Jan 10 14:30:48 ubuntu-server zpool[1174]: cannot import 'data': I/O error
Jan 10 14:30:48 ubuntu-server zpool[1174]: Destroy and re-create the pool from
Jan 10 14:30:48 ubuntu-server zpool[1174]: a backup source.
Jan 10 14:30:48 ubuntu-server zpool[1174]: cachefile import failed, retrying
Jan 10 14:30:48 ubuntu-server zpool[1174]: Destroy and re-create the pool from
Jan 10 14:30:48 ubuntu-server zpool[1174]: a backup source.
Jan 10 14:30:48 ubuntu-server systemd[1]: zfs-import-cache.service: Main process exited, code=exited, status=1/FAILURE
Jan 10 14:30:48 ubuntu-server systemd[1]: zfs-import-cache.service: Failed with result 'exit-code'.
Jan 10 14:30:48 ubuntu-server systemd[1]: Failed to start Import ZFS pools by cache file.
Please帮帮我!
发布于 2023-01-10 23:13:58
从错误消息来看,您似乎在另一台计算机上挂载(或试图导入)池。是否确定没有其他物理或虚拟机试图导入池?
如果您确信没有其他机器试图导入该池,请删除缓存文件并尝试强制导入:
rm -f /etc/zfs/zpool.cache; zpool import -f data
https://serverfault.com/questions/1119959
复制相似问题