About the latest omv-btrfs-scrub does not exclude duplicates by uuid

  • For some reason, I mounted different subvolumes of the same btrfs partition on my omv to multiple subfolders under the main nas shared folder, and then enabled omv-btrfs in the latest version of omv- Scrub does not perform btrfs scrub based on uuid deduplication. The result is that after upgrading to the version with omv-btrfs-scrub enabled by default, my nas hard disk has been scrubbed repeatedly for a full 20 days (it takes an average of 50 hours to complete the entire btrfs volume scrub, And my btrfs partition has 11 sub-volumes. If I mount the same btrfs partition with as many sub-volumes as possible without duplication, the btrfs scrub will repeat how many times immediately), so that omv-btrfs-scrub can deduplicate the uuid Do you execute it later?

  • harvey-git

    Changed the title of the thread from “Regarding the latest omv-btrfs-scrub does not recognize the mount --bind option” to “About the latest omv-btrfs-scrub does not exclude duplicates by uuid”.
  • votdev

    Added the Label resolved
  • First of all, thank you :P , and secondly, I found that your fix is not comprehensive enough, because I found that this fix is invalid for subdirectories on btrfs mounted through the -o --bind parameter, so I just tried another way 8o

    replace

    Code
    findmnt --list --all --canonicalize --notruncate --nofsroot --uniq --noheadings --output TARGET,UUID --types btrfs |
      sort | uniq --skip-fields=1 |

    with

    Code
    findmnt --list --all --canonicalize --notruncate --nofsroot --uniq --noheadings --output TARGET,UUID --types btrfs |
      sort | uniq |awk '!a[$2]++{print}' 


    Can you submit it?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!