From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EB953138C9D for ; Tue, 28 Apr 2015 18:31:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86FE1E087F; Tue, 28 Apr 2015 18:31:25 +0000 (UTC) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 54130E0815 for ; Tue, 28 Apr 2015 18:31:24 +0000 (UTC) Received: by iejt8 with SMTP id t8so25257127iej.2 for ; Tue, 28 Apr 2015 11:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=DXMrsXd/5nKo19hiTt+MufdWzuJSRw8EoM/C5r+B2FY=; b=sbKIP46PzrQNafKYhMlCjEZGagX9GKWDRrPSB9tOkHmx9HMGcJd1xNDcSor59LTrhZ b0XvuFERhMztTB+3g/xDgs2nHsYIe1orOBuPzBdJe7RJ1YuMe4uU4EcruYcjpFoN4cgy 13PeoLMJQKBlkZGP2lwso95NA6OPPMNrWPJAaZf4lW6z6znjeVwMqDrFJz05xvNIsdRN 6v8iiCmRnEfFQ2K/eDN31V0AvozNuYqXrhxbCaV8yQi2QXXPlYhNMK9Oudwu8U7JWi2m 6/S4BjcAur4H0sgyp5SEIqQsxeoVNeiM22u/iUZJzSA3Z9QLixPNkxT22sVsDj7VBUF5 aqwA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.29.40 with SMTP id g8mr7746874igh.41.1430245883753; Tue, 28 Apr 2015 11:31:23 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.107.48.66 with HTTP; Tue, 28 Apr 2015 11:31:23 -0700 (PDT) In-Reply-To: <20150428191112.6f1914c4@digimed.co.uk> References: <553F474E.4040101@gmail.com> <553FA0DD.1090101@gmail.com> <20150428162448.160e1683@digimed.co.uk> <20150428191112.6f1914c4@digimed.co.uk> Date: Tue, 28 Apr 2015 14:31:23 -0400 X-Google-Sender-Auth: AL7TGfcWBMfa_V7tJl7pyNTxPb4 Message-ID: Subject: Re: [gentoo-user] Hard drive storage questions From: Rich Freeman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 263394b0-3195-4633-8afc-ffb18ea9ca71 X-Archives-Hash: 72bd536f210976726a8b223cb973c0ad On Tue, Apr 28, 2015 at 2:11 PM, Neil Bothwick wrote: > On Tue, 28 Apr 2015 13:38:55 -0400, Rich Freeman wrote: > >> > The same is also possible with BTRFS, including built in RAID. RAID5 >> > in btrfs is expermiental, but its RAID1 is like RAID5 in some ways, >> > such as giving the capacity of n-1 disks and tolerating a single disk >> > failure. >> >> btrfs raid5 is still fairly experimental (though now it supports >> recovery) and works more-or-less how you'd expect raid5 to work. >> Raid1 on btrfs gives you the capacity of n/2 and not n-1 disks, > > You're right, I was clearly confused (an oxymoron?) when I wrote that. > > So RAID1 gives less capacity than RAID5 on BTRFS, but it is stable (in > btrfs terms). > Correct. For drives of identical size and not using compression, I'd expect space use on btrfs to be equivalent to the same raid level on mdadm+lvm+ext4. With mixed drives you will potentially get more space on btrfs, and compression will of course get you more space. As far as data security goes there is a tradeoff. Btrfs is still immature and I seem to have issues with it 1-2 times per year (but I've yet to have unrecoverable data loss). On the other hand, btrfs does do full data checksumming which means you're less likely to lose data due to issues with the physical storage than with mdadm - as with zfs it always checks the checksum and will recover from another disk if possible, and in the event of raid disparity it always knows which (if any) of the copies is right. I'm hopeful that at some point I'll be able to recommend it without reservation. Right now, that isn't entirely the case. I'm still patching the 3.18 kernel series so that it actually mounts my root partition when whatever is causing it to panic (probably also btrfs) does so (the patch is in the queue, but hasn't made it to 3.18 yet for some reason - I believe it has been in the other stable series for a release or two now). -- Rich