Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does deleting a file in the live system affect snapraid-btrfs? #26

Open
FlexibleToast opened this issue Nov 1, 2022 · 0 comments
Open

Comments

@FlexibleToast
Copy link

As I test I have setup a OMV6 machine in a VM with 10 disks that are pooled with mergerfs and 2 more disks for parity (total of 12 disks). This mirrors my NAS in architecture. I used a for loop to create a bunch of files, similar to:

for i in {01..50}; do
  dd if=/dev/random of=/dev/mergedfs/backend/testfile-${i} bs=1G count=1
done

I then did a sync of all the disks snapraid-btrfs sync. When the sync was done I confirmed that snapper successfully created the snapshots with snapper ls -a. I then deleted a portion of those files that I knew would delete files from multiple drives rm -f /dev/mergedfs/backend/testfile-2*. Running a snapraid-btrfs fix then did what you would expect and read from a temp config. However, several files were unrecoverable. Why would they be unrecoverable if it's supposed to be reading/building parity from the snapshots that still exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant