r/Snapraid • • 6d ago

Syncing more data than exists

Post image

EDIT: Solved in https://www.reddit.com/r/Snapraid/s/QeqzHUXBZY

I'm having an issue where every time Snapraid runs a Sync operation and one specific file is involved (has been changed), the sync seems to run for almost an hour, and transfer/check/process hundreds of GB of data.

The single file in question (a qcow disk image that was booted up and then immediately shutdown)... is only about 30 GB total size. Why does this keep happening? Is my Snapraid array broken?

My understanding is that the sync should be almost instant, if almost nothing changed. I confirmed its just this one single file with a snapraid diff first.

OMV version: 8.6.1-1 (Synchrony)

Plugin version: openmediavault-snapraid 8.0.3

5 Upvotes

18 comments sorted by

View all comments

Show parent comment

6

u/Disciplined_20-04-15 6d ago

Yes if the 30GB file is changed, the parity needs to be rewritten for corresponding blocks. Seeing 100-200GB processed for a 30GB change is not unusual.

(The I/O you see is total read and writes of all disks)

2

u/mitchplze 6d ago

Gotcha, that makes much more sense. Thanks!

I guess my confusion was why I don't see this type of behaviour/delay when thousands of small files are changed (even multiple GB worth) - just on big files.

0

u/[deleted] 6d ago edited 6d ago

[removed] — view removed comment

1

u/mitchplze 6d ago

I don't think there's any misunderstanding. On a 5 TB array for example, if you only change 10 MB worth of files, sync will in fact, be almost instant.

I wasn't suggesting anyone change how Snapraid operates, to make it block-level.

0

u/BootToggle 6d ago

I thought we were discussing your example. Sorry to have troubled you.