1 |
(Dammit, it seems that I've developed a habit of writing somewhat long-winded |
2 |
emails :-/ . Sorry!) |
3 |
|
4 |
Am Wed, 28 May 2014 08:29:07 +0100 |
5 |
schrieb thegeezer <thegeezer@×××××××××.net>: |
6 |
|
7 |
> top man, thanks for detail and the tips ! |
8 |
|
9 |
I second this :) . In fact, I think I'll link to it in my btrfs thread on |
10 |
gentoo-user. |
11 |
|
12 |
I do have a question for Duncan (or anybody else who knows, but I know that |
13 |
Duncan is fairly active on the BTRFS ML), though: |
14 |
|
15 |
How does btrfs handle checksum errors on a single drive (or when self-healing |
16 |
fails)? |
17 |
|
18 |
That is, does it return a hard error, rendering the file unreadable, or is it |
19 |
possible to read from a corrupted file? Sadly, I don't remember finding the |
20 |
answer to this from my own research into BTRFS before I made the switch (my |
21 |
thread is here: [0]), and searching online now hasn't revealed anything; all I |
22 |
can find are mentions of its self-healing capability. |
23 |
|
24 |
I *think* BTRFS treats this as a hard error? But I'm just not sure. |
25 |
|
26 |
(I feel kind of stupid, because I'm sure I saw the answer in some of the emails |
27 |
on linux-btrfs that I read through via GMANE.) |
28 |
|
29 |
I ask because I'm considering converting the 2TB data partition on my 3TB |
30 |
external hard drive from NTFS to BTRFS [1] . It primarily contains media |
31 |
files, where random corruption is decidedly *not* the end of the world. |
32 |
However, it also contains ISOs and other large files where corruption matters |
33 |
more, but which are not important enough to land on my BTRFS RAID (on the other |
34 |
hand, my music collection is ;-) ). |
35 |
|
36 |
In any case, reconstructing a corrupted file can be fairly difficult: It might |
37 |
involve re-ripping a (game) disk, or it might be something I got from a friend, |
38 |
delaying file recovery until I can get it again, or the file might be a youtube |
39 |
download (or a conference video, or something from archive.org, or ...) and I |
40 |
have to track it down online again. However, I might want to *know* that a file |
41 |
is corrupt, so that I *can* reconstruct it if I want to. |
42 |
|
43 |
The obvious answer, retrieving from backup, is difficult to implement, since I |
44 |
would need an additional external drive for that. Also, the files are not |
45 |
*that* important, e.g., in the case of a youtube download, where most of the |
46 |
time I delete the file afterwards anyway. |
47 |
|
48 |
(It seems to me that the optimal solution would be to use some sort of NAS, with |
49 |
a multi-device ZFS or BTRFS file system, in place of an external hard drive; I |
50 |
expect to go that route in the future, when I can afford it.) |
51 |
|
52 |
[0] http://thread.gmane.org/gmane.linux.gentoo.user/274236 |
53 |
|
54 |
[1] I used NTFS under the assumption that I might want to keep the drive Windows |
55 |
compatible (for family), but have decided that I don't really care, since the drive is |
56 |
pretty much permanently attached to my desktop (it also has an EXT4 partition |
57 |
for automatic local backups, so removing it would be less than optimal ;-) ). |
58 |
|
59 |
-- |
60 |
Marc Joliet |
61 |
-- |
62 |
"People who think they know everything really annoy those of us who know we |
63 |
don't" - Bjarne Stroustrup |