solaris - 将 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 池安装为可写。我知道我可以将它安装为只读,但这违背了我想要做的事情的目的,因为我希望能够在其可安装的平台界面中写入数据以复制/粘贴数据。
有谁知道如何实现这一目标。我将不胜感激。
问候
解决方案
你使用的是什么版本的 FreeBSD?这个 ZFS 池是从哪里来的?
我猜这是 Linux 上的 ZFS 池,正如消息中所说,它正在使用 FreeBSD 的 ZFS 目前不支持的功能。
目前唯一的解决方法是在支持它的系统上创建另一个没有该功能的池,zfs 发送到新池,然后将该池导入 FreeBSD。
注意 FreeBSD 很快就会支持这个特性(tm)。
推荐阅读
- asp.net-core - 在线发布 .net core 2.2 应用并进行配置
- r - 如何创建一个组合来自 tibble 的元素的列表?
- c# - 如何编写一种方法而不是多种方法来获取用户输入并将值分配给正确的变量?
- dart - Cloud Shell 环境:创建自定义映像无法通过 SSH
- angular - 如何在没有哈希(#)路由的情况下刷新 Angular 8 的 SPA 时删除 404 错误?
- python - 如何解决线性回归中的“异常:数据必须是一维的”?
- class - 重复类 com.google.android.gms.common.util.VisibleForTesting
- php - PHP 将 2 个 Json 合并为 1 个
- ruby-on-rails - 仅将助手添加到 rails 控制器实例
- r - 在 R 中附加大型 data.tables 列表时,如何克服向量内存耗尽错误?