Gentoo Archives: gentoo-user

From: Wols Lists <antlists@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: btrfs raid 5/6
Date: Sat, 09 Dec 2017 18:28:30
Message-Id: 5A2C2B44.6060802@youngman.org.uk
In Reply to: Re: [gentoo-user] OT: btrfs raid 5/6 by "J. Roeleveld"
1 On 09/12/17 16:58, J. Roeleveld wrote:
2 > On Friday, December 8, 2017 12:48:45 AM CET Wols Lists wrote:
3 >> On 07/12/17 22:35, Frank Steinmetzger wrote:
4 >>>> (Oh - and md raid-5/6 also mix data and parity, so the same holds true
5 >>>>
6 >>>>> there.)
7 >>>
8 >>> Ok, wasn’t aware of that. I thought I read in a ZFS article that this were
9 >>> a special thing.
10 >>
11 >> Say you've got a four-drive raid-6, it'll be something like
12 >>
13 >> data1 data2 parity1 parity2
14 >> data3 parity3 parity4 data4
15 >> parity5 parity6 data5 data6
16 >>
17 >> The only thing to watch out for (and zfs is likely the same) if a file
18 >> fits inside a single chunk it will be recoverable from a single drive.
19 >> And I think chunks can be anything up to 64MB.
20 >
21 > Except that ZFS doesn't have fixed on-disk-chunk-sizes. (especially if you use
22 > compression)
23 >
24 > See:
25 > https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz
26 >
27 Which explains nothing, sorry ... :-(
28
29 It goes on about 4K or 8K database blocks (and I'm talking about 64 MEG
30 chunk sizes). And the OP was talking about files being recoverable from
31 a disk that was removed from an array. Are you telling me that a *small*
32 file has bits of it scattered across multiple drives? That would be *crazy*.
33
34 If I have a file of, say, 10MB, and write it to an md-raid array, there
35 is a good chance it will fit inside a single chunk, and be written -
36 *whole* - to a single disk. With parity on another disk. How big does a
37 file have to be on ZFS before it is too big to fit in a typical chunk,
38 so that it gets split up across multiple drives?
39
40 THAT is what I was on about, and that is what concerned the OP. I was
41 just warning the OP that a chunk typically is rather more than just one
42 disk block, so anybody harking back to the days of 512byte sectors could
43 get a nasty surprise ...
44
45 Cheers,
46 Wol
47
48 Cheers,
49 Wol

Replies

Subject Author
Re: [gentoo-user] OT: btrfs raid 5/6 Rich Freeman <rich0@g.o>