From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fredrik Salomonsson Subject: Re: btrfs raid configuration vs mdraid Date: Tue, 21 May 2019 09:35:36 -0700 Message-ID: <87o93vlq93.fsf@gmail.com> References: <877earc513.fsf@roquette.mug.biscuolo.net> <87d0kc522q.fsf@gmail.com> <871s0s9ptj.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:45069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT7jq-0004BM-J9 for help-guix@gnu.org; Tue, 21 May 2019 12:35:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT7jo-0001h6-MO for help-guix@gnu.org; Tue, 21 May 2019 12:35:42 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:40471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hT7jn-0001gO-18 for help-guix@gnu.org; Tue, 21 May 2019 12:35:40 -0400 Received: by mail-pg1-x52e.google.com with SMTP id d30so8849090pgm.7 for ; Tue, 21 May 2019 09:35:38 -0700 (PDT) In-Reply-To: <871s0s9ptj.fsf@roquette.mug.biscuolo.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Giovanni Biscuolo , help-guix@gnu.org Hi Giovanni, Giovanni Biscuolo writes: [...] >>> Assuming I'm going to format the root filesystem as: >>> >>> mkfs.btrfs -m raid1 -d raid1 /dev/sda3 /dev/sdb3 >>> >>> how should I configure (file-system...)? this way: >>> >>> (file-system >>> (mount-point "/") >>> (type "btrfs") >>> (device (uuid "4dab5feb-d176-45de-b287-9b0a6e4c01cb"))) >>> >>> with UUID taken from "lsblk -f"? >> >> That should work. > > I confirm it worked, easily! :-) Good to know :). [...] >> One thing you should note is that guix might generate incorrect >> paths for grub if you are using subvolumes. At least guix < 1.0 does >> that for me, haven't tested 1.0+ yet. But I have been using a shell >> script that works around that issue. > > I did not use root on a subvolume for my installation, but I'll try to > reproduce it in a test install: can you please file a bug report for > this, IMHO this should be fixed Looks like there is already a bug report on this: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33517 And I just tested to reconfigure my system with guix v1.0.1 and the issue is still there. >>> From you experience is RAID on brtfs as solid as the one on mdadm? >> >> I have very little experience with mdadm, so can only speak of my >> experience with btrfs and RAID-1. Which I have been using for 3+ years. >> For me it has been solid. Only issue I have encountered was when my >> fileserver lost power a few times leaving the filesystem corrupt. A >> "btrfs check --repair" fixed that issue. > > Thanks for sharing! You give me courage to adopt btrfs more extensively > :-) Glad I could help out. -- s/Fred[re]+i[ck]+/Fredrik/g