Files
seaweedFS/weed/shell/command_volume_check_disk.go
Lisandro Pin 2843cb1255 Bootstrap logic to fix read-only volumes with volume.check.disk. (#7531)
* Bootstrap logic to fix read-only volumes with `volume.check.disk`.

The new implementation performs a second pass where read-only volumes are (optionally)
verified and fixed.

For each non-writable volume ID A:
  if volume is not full
    prune late volume entries not matching its index file
    select a writable volume replica B
    append missing entries from B into A
    mark the volume as writable (healthy)

* variable and parameter renaming

---------

Co-authored-by: chrislu <chris.lu@gmail.com>
2025-11-25 13:41:03 -08:00

23 KiB