[Bug 271462] If readonly=on when a pool is imported, then zpool list will wrongly report zero bytes allocated
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 May 2023 05:16:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271462
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=on when a pool
|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:
root@mowa219-gjp4-8570p-freebsd:~ # zpool import -o readonly=on Transcend ; zfs
load-key Transcend/VirtualBox && zfs mount Transcend/VirtualBox ; zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP
HEALTH ALTROOT
Transcend 928G 0 928G - - 0% 0% 1.00x
ONLINE -
august 912G 732G 180G - - 66% 80% 1.00x
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 support
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
HEALTH ALTROOT
Transcend 928G 390G 538G - - 4% 42% 1.00x
ONLINE -
august 912G 732G 180G - - 66% 80% 1.00x
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
grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
amd64 1400088 1400088
root@mowa219-gjp4-8570p-freebsd:~ #
--
You are receiving this mail because:
You are the assignee for the bug.