How to get supported feature list?

New to OpenZFS on OS X (Or ZFS in general)? Ask your questions here!

How to get supported feature list?

Postby Sharko » Wed Sep 23, 2020 8:15 pm

I was under the impression* that a command like 'zfs get all TANK' would return all the properties of the pool, along with a list of feature flags; this doesn't seem to be the case, however. Some features are in the list returned (like encryption), but other features like bookmark_v2 are not listed (I guess because they aren't things that you turn on or off for a given pool or dataset).

I know that 'zpool upgrade -v' will list all the features that the currently running zfs implementation supports. Is it just assumed that if zpool status doesn't list any need to upgrade then the corresponding pool has all of the offered features in play?

* here is where I got that impression: https://bsdmag.org/zfs-feature-flags/

"To see which feature flags are enabled in the pool, type:

root # zpool get all
Supported feature flags will be prepended with a feature@ and the organization name will be omitted. Unsupported feature flags will be prepended with a unsupported@, and depending on where they are marked as active or inactive , the implementation will not be able to use the pool (or use it in a read-only fashion), or just ignore the unsupported feature, respectively."
Sharko
 
Posts: 131
Joined: Thu May 12, 2016 12:19 pm

Re: How to get supported feature list?

Postby lundman » Wed Sep 23, 2020 8:58 pm

zfs get all != zpool get all

Code: Select all
# zpool get all

BOOM  feature@async_destroy          enabled                        local
BOOM  feature@empty_bpobj            enabled                        local
BOOM  feature@lz4_compress           active                         local
BOOM  feature@multi_vdev_crash_dump  enabled                        local
BOOM  feature@spacemap_histogram     active                         local
BOOM  feature@enabled_txg            active                         local
BOOM  feature@hole_birth             active                         local
BOOM  feature@extensible_dataset     active                         local
BOOM  feature@embedded_data          active                         local
BOOM  feature@bookmarks              enabled                        local
BOOM  feature@filesystem_limits      enabled                        local
BOOM  feature@large_blocks           enabled                        local
BOOM  feature@large_dnode            enabled                        local
BOOM  feature@sha512                 enabled                        local
BOOM  feature@skein                  enabled                        local
BOOM  feature@edonr                  enabled                        local
BOOM  feature@userobj_accounting     active                         local
BOOM  feature@encryption             enabled                        local
BOOM  feature@project_quota          active                         local
BOOM  feature@device_removal         enabled                        local
BOOM  feature@obsolete_counts        enabled                        local
BOOM  feature@zpool_checkpoint       enabled                        local
BOOM  feature@spacemap_v2            active                         local
BOOM  feature@allocation_classes     enabled                        local
BOOM  feature@resilver_defer         enabled                        local
BOOM  feature@bookmark_v2            enabled                        local
BOOM  feature@redaction_bookmarks    enabled                        local
BOOM  feature@redacted_datasets      enabled                        local
BOOM  feature@bookmark_written       enabled                        local
BOOM  feature@log_spacemap           active                         local
BOOM  feature@livelist               enabled                        local
BOOM  feature@device_rebuild         enabled                        local
BOOM  feature@zstd_compress          enabled                        local
User avatar
lundman
 
Posts: 795
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: How to get supported feature list?

Postby Sharko » Thu Sep 24, 2020 6:06 am

DUH! Thanks for that, sorry I missed the obvious!
Sharko
 
Posts: 131
Joined: Thu May 12, 2016 12:19 pm


Return to Absolute Beginners Section

Who is online

Users browsing this forum: No registered users and 1 guest