Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2026 11:20:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 295261] ZFS zpool(8) does not set/report proper ashift value
Message-ID:  <bug-295261-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295261

            Bug ID: 295261
           Summary: ZFS zpool(8) does not set/report proper ashift value
           Product: Base System
           Version: 15.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: vermaden@interia.pl

Hi.

If you create ZFS pool by hand with 'ashift' option specified:

# zpool create -o ashift=12 pool device

Then 'ashift' is then properly reported by zpool-get(8) cmd:

root@freebsd:~ # zpool get ashift zroot
NAME   PROPERTY  VALUE   SOURCE
zroot  ashift    12      local

Same with ZFS pools where '-o ashift=12' is specified in
the 'ZFS Pool Options' in bsdinstall(8) installer.

root@freebsd:~ # zpool get ashift zroot
NAME   PROPERTY  VALUE   SOURCE
zroot  ashift    12      local

... but if You just set this that way:
vfs.zfs.min_auto_ashift: 12
vfs.zfs.vdev.min_auto_ashift: 12

... and create ZFS pool like that:

# zpool create pool device

You will get '0' as answer zpool-get(8) command:

root@freebsd:~ # zpool get ashift zroot
NAME   PROPERTY  VALUE   SOURCE
zroot  ashift    0       default

Which is a bug - it should also be set/reported.

Regards,
vermaden

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-295261-227>