gpt4 book ai didi

solaris - 以可写方式打开 ZFS 池

转载 作者:行者123 更新时间:2023-12-04 15:45:02 36 4
gpt4 key购买 nike

我已经使用 QEMU 模拟器成功地将 FreeBSD 安装到原始图像文件中。我已经使用 ZFS 文件系统 (ZFS POOL) 格式化了图像文件。

使用下面的命令我已经成功地挂载了准备好由 zpool 打开的图像文件

sudo losetup /dev/loop0 [path-to-file].img
sudo kpartx -l /dev/loop0
sudo kpartx -av /dev/loop0

但是下一个命令显示在下面....

sudo zpool import -R [MOUNT-PATH] -d /dev/mapper

我收到以下错误信息

The pool can only be accessed in read-only mode on this system. It
cannot be accessed in read-write mode because it uses the following
feature(s) not supported on this system:
com.delphix:spacemap_v2 (Space maps representing large segments are more efficient.)
The pool cannot be imported in read-write mode. Import the pool with
"-o readonly=on", access the pool on a system that supports the
required feature(s), or recreate the pool from backup.

我在网上找不到任何关于名为“spacemap_v2”的功能的信息。我如何安装它或如何将我的 zfs 池安装为可写。我知道我可以将它挂载为只读,但这违背了我想要做的事情的目的,因为我希望能够写入数据以在其可挂载平台界面中复制/粘贴数据。

有谁知道如何实现这个。我将不胜感激。

问候

最佳答案

您使用的是什么版本的 FreeBSD?这个 ZFS 池是从哪里来的?

我猜这是一个 ZFS On Linux 池,正如消息所说,它正在使用 FreeBSD 的 ZFS 当前不支持的功能。

目前唯一的解决方法是在支持它的系统上创建另一个没有该功能的池,zfs 发送到新池,然后将该池导入 FreeBSD。

注意 FreeBSD 即将支持此功能(tm)。

关于solaris - 以可写方式打开 ZFS 池,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56242730/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com