openzfs/zfs

zpool status -v doesn't report all affected files

Open

#4.049 geöffnet am 26. Nov. 2015

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C (1.703 Forks)batch import
Type: Documentationgood first issue

Repository-Metriken

Stars
 (9.908 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 21h) (62 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide