how mount zfs disk at Devuan(Debian fork)?

Hi. Huh, why all so complexity here?
At Devuan install
Code:
apt install linux-headers-$(uname -r) linux-image-amd64  kmod zfsutils-linux
apt install zfsutils-linux zfs-dkms zfs-zed
then
Code:
root@devuan:/home/freeartist-devuan#  sudo fdisk /dev/sdb -l
Disk /dev/sdb: 149.05 GiB, 160040803840 bytes, 312579695 sectors
Disk model: ST3160310CS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 90912321-7C66-11EF-83B7-001D7DC7BE43

Device         Start       End   Sectors   Size Type
/dev/sdb1         40       551       512   256K FreeBSD boot
/dev/sdb2        552 303139367 303138816 144.5G FreeBSD ZFS
/dev/sdb3  303139368 312568359   9428992   4.5G FreeBSD swap
root@devuan:/home/freeartist-devuan#
next
Code:
root@devuan:/home/freeartist-devuan# zpool import

   pool: zroot

     id: 13756328652508316551

  state: UNAVAIL

status: The pool uses the following feature(s) not supported on this system:

    com.klarasystems:vdev_zaps_v2

action: The pool cannot be imported. Access the pool on a system that supports

    the required feature(s), or recreate the pool from backup.

 config:


    zroot                       UNAVAIL  unsupported feature(s)

      ata-ST3160310CS_9TS11TEW  ONLINE

root@devuan:/home/freeartist-devuan#
 
OpenZFS has different versions, if those differ too much then you cannot "just" access pools.

(edit: the same thing could have happened on FreeBSD too btw.).
 
Code:
freeartist-devuan@devuan:~$ sudo zpool create -o compatibility=openzfs-2.1-linux ghost sdb2

invalid vdev specification

use '-f' to override the following errors:

/dev/sdb2 is part of potentially active pool 'zroot'

freeartist-devuan@devuan:~$
 
OpenZFS has different versions, if those differ too much then you cannot "just" access pools.

(edit: the same thing could have happened on FreeBSD too btw.).
install OpenZFS 2.4 from Devuan backports, zpool is imported, os now support zfs,
Code:
root@devuan:/home/freeartist-devuan# zpool list -v
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
zroot       144G   123K   144G        -         -     0%     0%  1.00x    ONLINE  -
    sdb2      145G   123K   144G        -         -     0%  0.00%      -    ONLINE
root@devuan:/home/freeartist-devuan#
but when i mount bsd zfs partition its empty
Code:
root@devuan:/home/freeartist-devuan# ls /zroot
root@devuan:/home/freeartist-devuan#
 
still empty zfs after mount
Code:
root@devuan:/home/freeartist-devuan# zpool import -a -N -R /mnt
root@devuan:/home/freeartist-devuan# sudo zfs get mountpoint,mounted zroot -t filesystem -r
NAME   PROPERTY    VALUE       SOURCE
zroot  mountpoint  /mnt/zroot  default
zroot  mounted     no          -
root@devuan:/home/freeartist-devuan# zfs mount -a
root@devuan:/home/freeartist-devuan# sudo zfs get mountpoint,mounted zroot -t filesystem -r
NAME   PROPERTY    VALUE       SOURCE
zroot  mountpoint  /mnt/zroot  default
zroot  mounted     yes         -
root@devuan:/home/freeartist-devuan# ls /mnt
zroot
root@devuan:/home/freeartist-devuan# ls /mnt/zroot
root@devuan:/home/freeartist-devuan#
 
OpenZFS has different versions, if those differ too much then you cannot "just" access pools.

(edit: the same thing could have happened on FreeBSD too btw.).
What's far more important than version is enabled/activated and read-incompatible features. It's unrelated to the OS and/or OpenZFS version itself, at least directly.

If the environment which created the pool enables more read-incompatible features, another one is impossible to even import the pool.

(Pool version is an old concept of ZFS and currently focuses on feature flags.)
 
Back
Top