vm clone compact openzfs_test
vm start -f openzfs_test
ssh -vl demo 192.168.1.106
portsnap fetch update
portinstall sysutils/openzfs
---> Installing the new version via the port
===> Deinstalling for openzfs
===> openzfs not installed, skipping
===> Installing for openzfs-2020120100
===> Checking if openzfs is already installed
===> Registering installation for openzfs-2020120100
Installing openzfs-2020120100...
===> Cleaning for openzfs-kmod-2020120100
===> Cleaning for openzfs-2020120100
vi /boot/loader.conf
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
beastie_disable="YES"
## zfs_load="YES"
openzfs_load="YES"
reboot
!! Unbelievable, it booted up!
uname -a
FreeBSD Compact_ZHYVE 12.2-RELEASE FreeBSD 12.2-RELEASE r368372 ZHYVE4 amd64
kldstat
Id Refs Address Size Name
1 14 0xffffffff80200000 11686b8 kernel
2 1 0xffffffff8136a000 664560 openzfs.ko
3 1 0xffffffff819cf000 a448 opensolaris.ko
4 1 0xffffffff81b11000 acf mac_ntpd.ko
zpool status;
pool: compact_zzz
state: ONLINE
scan: scrub repaired 0 in 0 days 00:03:17 with 0 errors on Tue Dec 8 11:08:29 2020
config:
NAME STATE READ WRITE CKSUM
compact_zzz ONLINE 0 0 0
vtbd0p3 ONLINE 0 0 0
dmesg -a|grep ZFS
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
portversion -v|grep zfs
[Reading data from pkg(8) ... - 161 packages found - done]
openzfs-2020120100 = up-to-date with port
openzfs-kmod-2020120100 = up-to-date with port
/usr/local/sbin/zpool status
pool: compact_zzz
state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(5) for details.
scan: scrub repaired 0B in 00:03:17 with 0 errors on Tue Dec 8 11:08:29 2020
config:
NAME STATE READ WRITE CKSUM
compact_zzz ONLINE 0 0 0
vtbd0p3 ONLINE 0 0 0
errors: No known data errors
/usr/local/sbin/zpool upgrade
This system supports ZFS pool feature flags.
All pools are formatted using feature flags.
Some supported features are not enabled on the following pools. Once a
feature is enabled the pool may become incompatible with software
that does not support the feature. See zpool-features(5) for details.
POOL FEATURE
---------------
compact_zzz
userobj_accounting
encryption
project_quota
resilver_defer
bookmark_v2
redaction_bookmarks
redacted_datasets
bookmark_written
log_spacemap
livelist
device_rebuild
zstd_compress
draid
/usr/local/sbin/zpool upgrade compact_zzz
This system supports ZFS pool feature flags.
Enabled the following features on 'compact_zzz':
userobj_accounting
encryption
project_quota
resilver_defer
bookmark_v2
redaction_bookmarks
redacted_datasets
bookmark_written
log_spacemap
livelist
device_rebuild
zstd_compress
draid
/usr/local/sbin/zpool status
pool: compact_zzz
state: ONLINE
scan: scrub repaired 0B in 00:03:17 with 0 errors on Tue Dec 8 11:08:29 2020
config:
NAME STATE READ WRITE CKSUM
compact_zzz ONLINE 0 0 0
vtbd0p3 ONLINE 0 0 0
errors: No known data errors
reboot
... and it booted again!
vm image create -d OpenZFS_ZHYVE_FreeBSD_12.2 openzfs_test
Creating a compressed image, this may take some time...
Image of openzfs_test created with UUID 97e21f42-3a1d-11eb-97b9-001e67997f5d