unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* support for btrfs multiple devices?
@ 2019-06-24 17:50 Matt Huszagh
  2019-06-25 13:57 ` Giovanni Biscuolo
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Huszagh @ 2019-06-24 17:50 UTC (permalink / raw)
  To: help-guix

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: support for btrfs multiple devices?
  2019-06-24 17:50 support for btrfs multiple devices? Matt Huszagh
@ 2019-06-25 13:57 ` Giovanni Biscuolo
  0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Biscuolo @ 2019-06-25 13:57 UTC (permalink / raw)
  To: Matt Huszagh, help-guix

[-- Attachment #1: Type: text/plain, Size: 1946 bytes --]

Hello Matt,

Matt Huszagh <huszaghmatt@gmail.com> writes:

> 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

Please can you specify how did you then installed Guix on your system?

> and in my config:
>
> (define fs-root
>   (file-system
>    (mount-point "/")
>    (type "btrfs")
>    (device (file-system-label "btrfs"))

Can you please try using uuid instead of file-system-label?

>    (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))))
                                ^^^^ fat32 ? :-)
>
>  (file-systems (append
>                 (list
>                  fs-root
>                  fs-boot)
>                 %base-file-systems))

[...]

> Has anyone gotten btrfs working with any sort of multi-device raid
> capability?

Yes, I did it on milano-guix-1 build machine (and I'm almost sure I'm
not the only one around):

That machine configuration is here:
http://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/milano-guix-1.scm

I initially installed on a RAID1 (both data and metadata) btrfs volume
using two disk partitions, with manual installation method, and it
worked; lately I added 4 more disks (whole disks) and converted the
volume to RAID10

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

Can you please provide a step-by-step report of what you are doing when
installing, maybe a review could reveal something wrong... or probably a
Guix bug :-)

Thanks for reporting!

Happy Guix! Gio'.

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-25 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-24 17:50 support for btrfs multiple devices? Matt Huszagh
2019-06-25 13:57 ` Giovanni Biscuolo

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