From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Huszagh Subject: support for btrfs multiple devices? Date: Mon, 24 Jun 2019 10:50:48 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52284) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfT7U-00016K-DX for help-guix@gnu.org; Mon, 24 Jun 2019 13:51:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfT7S-00069k-8D for help-guix@gnu.org; Mon, 24 Jun 2019 13:51:08 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:45989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfT7O-00060h-6O for help-guix@gnu.org; Mon, 24 Jun 2019 13:51:04 -0400 Received: by mail-lf1-x12e.google.com with SMTP id u10so10662828lfm.12 for ; Mon, 24 Jun 2019 10:51:01 -0700 (PDT) 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: help-guix@gnu.org I'm unable to get even a basic guix system init working with btrfs on 2 partitions. I setup the btrfs filesystem with: mkfs.btrfs -L btrfs -m raid1 -d raid0 /dev/nvme0n1p2 /dev/sda1 and in my config: (define fs-root (file-system (mount-point "/") (type "btrfs") (device (file-system-label "btrfs")) (options "defaults,compress=lzo,ssd,noatime") (needed-for-boot? #t))) (define fs-boot (file-system (mount-point "/boot/efi") (type "vfat") (device (uuid "68C5-A2D1" 'fat)))) (file-systems (append (list fs-root fs-boot) %base-file-systems)) When I try to boot into my system I get the error "error: couldn't find a necessary member device of multi-device filesystem" and then I'm sent to the grub rescue prompt. It seems like maybe "btrfs device scan" isn't run. However, looking in the guix source code it seems this is part of the filesystem check which is enabled by default. Mounting with the label works fine from the flash drive so I don't think the fs-root definition is wrong. I've already given up luks encryption and my subvolume layout, hoping that I could at least get a barebones btrfs setup to work. I would really prefer not to switch to ext4. Has anyone gotten btrfs working with any sort of multi-device raid capability? Any pointers would be greatly appreciated! I've now devoted 4 full days and still can't get past the guix system init phase - I'm pretty close to giving up...