openzfs/zfs

zpool status -v doesn't report all affected files

オープン

#4,049 opened on 2015/11/26

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)C (1,703 件のフォーク)batch import
Type: Documentationgood first issue

Repository metrics

Stars
 (9,908 個のスター)
PR merge metrics
 (平均マージ 5d 21h) (30d で 62 merged PRs)

説明

This is related to #4047, but warrants a separate bug. During this event, I had following situation:

  • see errors: 6331 data errors, use '-v' for a list in output of zpool status
  • run zpool status -v, get a list of files, remove them
  • run zpool status -v again to verify that all lists are replaced with hex ids (what are those exactly btw? :)
  • run zpool scrub, wait for it to finish
  • find a smaller number of data errors in zpool status -v output, containing paths to the same files as the ones referenced before, but present in a snapshot.

By "same" I mean essentially files that were created on a particular zfs volume on timestamp X, then snapshotted a number of times, without ever being modified. As I understand, in this case you'd have multiple paths pointing at the same data structure describing the contents of the file.

After chatting about this on IRC, my suspicion was confirmed - while scrub is finding all of those references to corrupted data, it most likely displays only a single path. In my case, I went through 5 scrub/cleanup cycles before I've noticed this pattern.

コントリビューターガイド