首页 > 解决方案 > 将 ZFS 池开放为可写

问题描述

我已成功使用 QEMU Emulator 将 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 池安装为可写。我知道我可以将它安装为只读,但这违背了我想要做的事情的目的,因为我希望能够在其可安装的平台界面中写入数据以复制/粘贴数据。

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

问候

标签: solarisfreebsdmountzfsufs

解决方案


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

我猜这是 Linux 上的 ZFS 池,正如消息中所说,它正在使用 FreeBSD 的 ZFS 目前不支持的功能。

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

注意 FreeBSD 很快就会支持这个特性(tm)。


推荐阅读