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?
About the latest omv-btrfs-scrub does not exclude duplicates by uuid
-
- resolved
- OMV 6.x
- harvey-git
-
-
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”. -
Fixed in openmediavault 6.4.0, see https://github.com/openmediava…f2703caad5602117b6c068c39
-
votdev
Added the Label resolved -
的
Fixed in openmediavault 6.4.0, see https://github.com/openmediava…f2703caad5602117b6c068c39
First of all, thank you
, 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
:
replace
Codefindmnt --list --all --canonicalize --notruncate --nofsroot --uniq --noheadings --output TARGET,UUID --types btrfs | sort | uniq --skip-fields=1 |
with
Codefindmnt --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!