如何挂载 ZFS 格式的驱动器?

Pau*_*aul 4 zfs

我有一个 FreeBSD 驱动器,我想从 Ubuntu 14.04 桌面检索文件。

我是ubuntu-zfs从这个PPA安装的,并且已经完成了几个教程,所有这些教程都涵盖了将 Ubuntu 安装到 ZFS 或建立 ZFS RAID,但我想做的只是挂载一个驱动器并检索一个文件。

我似乎被困在第一步,我什至无法让 Ubuntu 看到 zpool,更不用说安装驱动器了。

更多信息:

# dmesg | egrep "\<sd[a-g]|SPL|ZFS"
[    1.525674] sd 2:0:0:0: [sda] 15465744 512-byte logical blocks: (7.91 GB/7.37 GiB)
[    1.525747] sd 2:0:0:0: [sda] Write Protect is off
[    1.525751] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.525782] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.526605] sd 2:0:1:0: [sdb] 293046768 512-byte logical blocks: (150 GB/139 GiB)
[    1.526885]  sda: sda1
[    1.526885]  sda1: <bsd:bad subpartition - ignored
[    1.526885]  sda5 >
[    1.526937] sd 2:0:1:0: [sdb] Write Protect is off
[    1.526942] sd 2:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[    1.526968] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.527275] sd 2:0:0:0: [sda] Attached SCSI disk
[    1.536835]  sdb: sdb1 sdb2 < sdb5 >
[    1.537272] sd 2:0:1:0: [sdb] Attached SCSI disk
[   29.183853] SPL: Loaded module v0.6.5.3-1~trusty
[   29.383056] ZFS: Loaded module v0.6.5.3-1~trusty, ZFS pool version 5000, ZFS filesystem version 5
[   37.384244] EXT4-fs (sdb1): mounting ext2 file system using the ext4 subsystem
[   37.414432] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
Run Code Online (Sandbox Code Playgroud)

jll*_*gre 6

所需的第一个(通常也是唯一的)步骤是导入与磁盘关联的池。

zpool import 不带其他参数扫描所有设备(整个磁盘和分区)以识别 ZFS 池。

FreeBSD 在 fdisk 主分区中使用了它自己的一种分区(与扩展分区中的逻辑分区相似但不同)。由于某种原因,您的 Linux 内核可能无法检测到它们,请查看系统日志消息:

dmesg | egrep "\<sd[a-g]|SPL|ZFS"
Run Code Online (Sandbox Code Playgroud)

目标机器上缺少功能标志支持也可能存在问题。这将使池不可导入。