Re: Damaged filesystem, can read, can't repair, error says to contact devs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Timothy Normand Miller posted on Tue, 11 Aug 2015 17:32:12 -0400 as
excerpted:

> On Tue, Aug 11, 2015 at 5:24 PM, Chris Murphy <lists@xxxxxxxxxxxxxxxxx>
> wrote:
> 
>>> There is still data redundancy.  Will a scrub at least notice that the
>>> copies differ?
>>
>> No, that's what I mean by "nodatasum means no raid1 self-healing is
>> possible". You have data redundancy, but without checksums btrfs has no
>> way to know if they differ. It doesn't do two reads and compares them,
>> it's just like md raid, it picks one device, and so long as there's no
>> read error from the device, that copy of the data is assumed to be
>> good.
> 
> Ok, that makes sense.  I'm guessing it wouldn't be worth it to add a
> feature like this because (a) few people use nodatacow or end up in my
> situation, and (b) if they did, and the two copies were inconsistent,
> what would you do?  I suppose for me, it would be nice to know which
> files were affected.

FWIW, nodatacow and nodatasum are intended to /eventually/ be per-
subvolume mount options.  The infrastructure is there to make it so.  
It's just that the code to actually handle those mount options separately 
per subvolume doesn't exist yet, so they apply globally.

Similarly, the intention is to eventually allow per-subvolume and 
possibly even per-file raid-level specifications, while currently, the 
whole filesystem must be set to the same raid level (except that data and 
metadata raid levels are set separately).  It is currently possible to 
have multiple raid levels, but only because a raid-level conversion was 
started (either due to a balance-convert, or due to adding a second 
device changing the metadata default to raid1 from dup, for instance) and 
never finished.

So it's not so much a question of "not worth it" to add the no-checksum 
data redundancy scrub feature, it's that nodatacow and nodatasum are 
really intended to be exceptions where the admin has specifically 
disabled the checksumming, and are not intended to ever apply to a full 
filesystem, only, at most, to a particular subvolume.  The fact that if 
the mount option is used today it applies to the full filesystem is 
simply a temporary situational accident of not having the per-subvolume 
mount-option code implemented yet.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux