【问题标题】:Opening up ZFS pool as writable将 ZFS 池开放为可写
【发布时间】:2019-05-22 04:52:51
【问题描述】:

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

有谁知道如何做到这一点。我将不胜感激。

问候

【问题讨论】:

    标签: solaris freebsd mount zfs ufs


    【解决方案1】:

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

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

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

    注意 FreeBSD 很快就会支持这个功能(tm)。

    【讨论】:

    • 嗨,史蒂夫,我已将以下 FreeBSD iso 文件用于 QEMU 使用的 cdrom 文件..... FreeBSD-12.0-RELEASE-i386-dvd1.iso
    • 我使用 FreeBSD 设置中的格式化工具将图像文件格式化为 ZFS。
    • 我已经开始尝试使用 Xubuntu 18.04 终端通过输入上面找到的 3 个先决条件 sudo 命令来挂载图像文件。但是启动安装 FreeBSD 格式的 img 文件作为 ZFS 的实际命令没有成功安装(如上所述关于 com.delphix:spacemap_v2 问题)
    • 我想说的另一点是,我使用 zfs-dkms 构建了尝试访问图像文件所需的 ZFS 模块,而不是 zfs-fuse。 (我曾尝试使用 zfs-fuse 编译模块,但我收到一条错误消息,指出无法导入 zpool,因为我需要将我的系统更新为更新的类型。)我希望这些额外的信息对你有价值。我期待着我能得到的任何帮助:)
    • 我认为您没有回答我关于 ZFS 池来自何处的问题。而且我不知道zfs-dkms 是什么,那可能是Linux 上的ZFS 特定命令。
    猜你喜欢
    • 2020-05-31
    • 2018-09-30
    • 2022-12-04
    • 2017-05-29
    • 1970-01-01
    • 2014-05-10
    • 1970-01-01
    • 2011-10-02
    • 2023-01-04
    相关资源
    最近更新 更多