Hi, On Mon, Oct 16, 2017 at 1:53 PM, Austin S. Hemmelgarn wrote:
> you will need to scrub regularly to avoid data corruption Is there any indication that a scrub is needed? Before actually doing a scrub, is btrfs already aware that one of the devices did not receive all data due to being unavailable for a brief time? If so, which command shows this info in its output? Additionally, how does btrfs scrub compare to btrfs balance -dconvert=raid1,soft -mconvert=raid1,soft in this scenario? I would suppose that if btrfs is aware that some data does not have a replication count of 2, then a convert could fix that without a scrub reading through the whole disk. On the other hand, while I would expect btrfs scrub to find data with bad checksum, I would not expect it do balance as well in order to achieve the desired replication count of 2 for all data. So do I need to run both a scrub and a convert, or is a scrub enough? Thanks, Zoltan -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html