[Bug 260962] fsck.zfs(8) does not detect OpenZFS pool degradation

2022-01-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260962

--- Comment #1 from Graham Perrin  ---


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


[Bug 260962] fsck.zfs(8) does not detect OpenZFS pool degradation

2022-01-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260962

Bug ID: 260962
   Summary: fsck.zfs(8) does not detect OpenZFS pool degradation
   Product: Base System
   Version: CURRENT
  Hardware: Any
   URL: https://cgit.freebsd.org/src/commit/sys/contrib/openzf
s/cmd/fsck_zfs?id=1603881667360c015f6685131f2f25474fa6
7a72
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: bin
  Assignee: b...@freebsd.org
  Reporter: grahamper...@gmail.com



Maybe not a bug, but what's below is not consistent with the installed manual
page. 



root@mowa219-gjp4-8570p-freebsd:~ # zfs --version
zfs-2.1.99-FreeBSD_gf291fa658
zfs-kmod-2.1.99-FreeBSD_gf291fa658
root@mowa219-gjp4-8570p-freebsd:~ # /usr/local/sbin/fsck.zfs
Transcend/VirtualBox
root@mowa219-gjp4-8570p-freebsd:~ # zpool status -x
  pool: Transcend
 state: ONLINE
status: One or more devices could not be opened.  Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
  scan: scrub repaired 0B in 01:32:30 with 0 errors on Sun Dec 12 16:25:35 2021
config:

NAME   STATE READ WRITE CKSUM
Transcend  ONLINE   0 0 0
  gpt/TranscendONLINE   0 0 0
cache
  gpt/cache-transcend  UNAVAIL  0 0 0  cannot open

errors: No known data errors
root@mowa219-gjp4-8570p-freebsd:~ # date ; uname -aKU
Wed Jan  5 20:36:28 GMT 2022
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #118
main-n251923-4bae154fe8c: Sat Dec 25 08:03:37 GMT 2021
root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
 amd64 1400045 1400045
root@mowa219-gjp4-8570p-freebsd:~ # 



>Fromman 8 fsck.zfs

> … checks the status of a dataset's container pool.  It is installed 
> by OpenZFS because some Linux distributions expect a fsck helper for 
> all filesystems. …

> … if the dataset is in a degraded pool, then fsck.zfs will return 
> exit code 4 to indicate an uncorrected filesystem error. …

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