unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Matt Huszagh <huszaghmatt@gmail.com>
To: help-guix@gnu.org
Subject: support for btrfs multiple devices?
Date: Mon, 24 Jun 2019 10:50:48 -0700	[thread overview]
Message-ID: <CA+X8ke7yg1bU5m_SBJvU+Afy3+Hx9QpzQ2AGV1wY3Z6PVp+dpA@mail.gmail.com> (raw)

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...

             reply	other threads:[~2019-06-24 17:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-24 17:50 Matt Huszagh [this message]
2019-06-25 13:57 ` support for btrfs multiple devices? Giovanni Biscuolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+X8ke7yg1bU5m_SBJvU+Afy3+Hx9QpzQ2AGV1wY3Z6PVp+dpA@mail.gmail.com \
    --to=huszaghmatt@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).