Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2023 05:16:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 271462] If readonly=on when a pool is imported, then zpool list will wrongly report zero bytes allocated
Message-ID:  <bug-271462-3630-LUSZBpG9PD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271462-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271462-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271462

Graham Perrin <grahamperrin@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |fs@FreeBSD.org
                URL|                            |https://openzfs.github.io/o
                   |                            |penzfs-docs/man/8/zpool-imp
                   |                            |ort.8.html
            Summary|zpool list may wrongly      |If readonly=3Don when a po=
ol
                   |report allocation of zero   |is imported, then zpool
                   |bytes                       |list will wrongly report
                   |                            |zero bytes allocated
             Status|New                         |Open

--- Comment #2 from Graham Perrin <grahamperrin@freebsd.org> ---
Reproducible on 14.0-CURRENT:=20


root@mowa219-gjp4-8570p-freebsd:~ # zpool import -o readonly=3Don Transcend=
 ; zfs
load-key Transcend/VirtualBox && zfs mount Transcend/VirtualBox ; zpool list
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP=20=
=20=20
HEALTH  ALTROOT
Transcend   928G      0   928G        -         -     0%     0%  1.00x=20=
=20=20
ONLINE  -
august      912G   732G   180G        -         -    66%    80%  1.00x=20=
=20=20
ONLINE  -
root@mowa219-gjp4-8570p-freebsd:~ # zpool export Transcend
root@mowa219-gjp4-8570p-freebsd:~ # zpool import Transcend ; zpool status
Transcend && zfs load-key Transcend/VirtualBox && zfs mount
Transcend/VirtualBox ; zpool list
  pool: Transcend
 state: ONLINE
status: Some supported and requested 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 supp=
ort
        the features. See zpool-features(7) for details.
  scan: scrub repaired 0B in 03:25:04 with 0 errors on Sat Apr 15 23:16:47 =
2023
config:

        NAME             STATE     READ WRITE CKSUM
        Transcend        ONLINE       0     0     0
          gpt/Transcend  ONLINE       0     0     0

errors: No known data errors
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP=20=
=20=20
HEALTH  ALTROOT
Transcend   928G   390G   538G        -         -     4%    42%  1.00x=20=
=20=20
ONLINE  -
august      912G   732G   180G        -         -    66%    80%  1.00x=20=
=20=20
ONLINE  -
root@mowa219-gjp4-8570p-freebsd:~ # date ; uname -aKU
Fri May 19 06:08:56 BST 2023
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #40
main-n262942-e0e24ae5d658-dirty: Sat May 13 23:51:09 BST 2023=20=20=20=20
grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GE=
NERIC-NODEBUG
amd64 1400088 1400088
root@mowa219-gjp4-8570p-freebsd:~ #

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



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