Sign in

← Software

Importing OpenZFS pools on Solnix

titleImporting OpenZFS pools on Solnix
recommendationinclude
directionboth-differ
areafeature-flag
feature flag
openzfs version
summaryillumos-gate at the pin registers 27 pool features; OpenZFS master registers 49. All 27 illumos features exist in OpenZFS; none is illumos-only. OpenZFS 'zpool create' enables every supported feature by default. illumos opens a pool only if every ACTIVE feature in features_for_read is supported (read-only import) and every active one in features_for_write too (read-write), per spa_ld_check_features/spa_features_check.
impactA default OpenZFS 2.2+ pool (so 2.3 too) cannot be imported by Solnix at all, not even read-only: head_errlog is read-incompatible and active as soon as it is enabled. Portable pools must be created on OpenZFS restricted to the 27 illumos features (e.g. a custom compatibility file). Code reading only; no live import test was run.
whyThis is the single largest user-visible divergence. Closing it needs the read-incompatible features first (head_errlog, vdev_zaps_v2, bookmark_written, zstd_compress), then the read-only-compatible ones (livelist, block_cloning, fast_dedup ...).
effortmedium
sourceshttps://github.com/illumos/illumos-gate/blob/ac45d71fc2b04a5422e72a14b54dd1e746e7be07/usr/src/common/zfs/zfeature_common.c
https://github.com/openzfs/zfs/blob/c913da86156eba3243cc1ef515e98d69887654a7/man/man8/zpool-create.8
https://github.com/illumos/illumos-gate/blob/ac45d71fc2b04a5422e72a14b54dd1e746e7be07/usr/src/uts/common/fs/zfs/zfeature.c
https://github.com/illumos/illumos-gate/blob/ac45d71fc2b04a5422e72a14b54dd1e746e7be07/usr/src/uts/common/fs/zfs/spa.c
https://github.com/openzfs/zfs/blob/c913da86156eba3243cc1ef515e98d69887654a7/module/zcommon/zfeature_common.c

What Solnix has done

No decision yet: open for ranking.

Objections (0)

None.

Sign in to object to this item.