ZFS import cause panic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
1)
Ubuntu 20.04 LTS
2)
apt policy zfsutils-linux
zfsutils-linux:
Installed: 0.8.3-1ubuntu12
Candidate: 0.8.3-1ubuntu12
3)
ZFS pool not possible to import, unless using read only.
If trying to import normal way as write/read, casing panic message
Expected to be able to import zpool without panic.
Expected that scrub should not be able to run in read only.
Expected that somehow be able to restore the zpool somehow.
4)
# zpool status
no pools available
# zpool import
pool: datastore
id: 3190464655986727485
state: ONLINE
status: Some supported features are not enabled on the pool.
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:
datastore ONLINE
raidz2-0 ONLINE
sdb ONLINE
sdc ONLINE
sdd ONLINE
sde ONLINE
sdf ONLINE
sdg ONLINE
# zpool import -o readonly=on datastore
# zpool status
pool: datastore
state: ONLINE
status: Some supported 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(5) for details.
scan: scrub in progress since Sun May 10 00:24:01 2020
15,1T scanned at 0B/s, 15,1T issued at 0B/s, 15,1T total
1,44M repaired, 100,01% done, no estimated completion time
config:
NAME STATE READ WRITE CKSUM
datastore ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
sdb ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
sde ONLINE 0 0 0
sdf ONLINE 0 0 0
sdg ONLINE 0 0 0
errors: No known data errors
Running zdb it always stops ad 2,23T and then aborts.
# zdb -e -bcsvL datastore
Traversing all blocks to verify checksums ...
2.23T completed ( 149MB/s) estimated time remaining: 25hr 06min 25sec free(): invalid pointer
Abort (SIGABRT)
#zpool import datastore
VERIFY3(c < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT) failed (36028797018963967 < 32768)
PANIC at zio.c:293:
Changed in zfs-linux (Ubuntu): | |
assignee: | Colin Ian King (colin-king) → Dimitri John Ledkov (xnox) |
Changed in zfs-linux (Ubuntu): | |
assignee: | Dimitri John Ledkov (xnox) → nobody |
status: | Triaged → Invalid |
Can you attach to the bug report the full output from dmesg, the full panic message is more instructive when trying to debug this.