unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Tonton <tonton@riseup.net>
Cc: help-guix@gnu.org
Subject: Re: Root partition on raid?
Date: Thu, 13 Jun 2019 00:53:08 +0200	[thread overview]
Message-ID: <87blz2e7qj.fsf@nckx> (raw)
In-Reply-To: <20190612232201.3b4b873e@merlin.browniehive.net>

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

Tonton,

Tonton wrote:
> Hi, no, I use mdadm. Can GRUB see/use/boot this?

Yes!  Then I think Guix has everything you need.

> Maybe this is way easier than I thought. Could you share how you 
> configure
> this on your end? 

Nothing fancy:

--8<---------------cut here---------------start------------->8---
 (mapped-devices
  (list
   (mapped-device
    (type raid-device-mapping)
    (source (list "/dev/sda2" "/dev/sdb2" "/dev/sdc2" 
    "/dev/sde2"))
    (target "/dev/md0"))))
 (file-systems
  (cons*
   (file-system
    (dependencies mapped-devices) ; XXX is this needed?
    (device "/dev/md0")
    (mount-point "/")
    (type "btrfs")
    (options "compress=zlib,relatime"))
   (file-system
    (device (file-system-label "EFI"))
    (mount-point "/boot/efi") (create-mount-point? #t)
    (type "vfat"))
   %base-file-systems))

…

 (bootloader
  (bootloader-configuration
   (bootloader grub-efi-bootloader)
   (target "/boot/efi")
   (timeout (seconds 1))))
--8<---------------cut here---------------end--------------->8---

(That comment's been there for years; in true admin fashion I 
haven't touched a working set-up.)

Guix doesn't use mdadm.conf or whatever it's called.  Depending on 
your system, using labels or UUIDs instead of device names could 
make it more robust, or merely complicate drive replacement in 
future.

Adding LUKS to this mix should be possible too, but I haven't 
tried it myself.

Kind regards,

T G-R

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

      reply	other threads:[~2019-06-12 22:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-12  6:23 Root partition on raid? Tonton
2019-06-12 15:52 ` Tobias Geerinckx-Rice
2019-06-12 21:22   ` Tonton
2019-06-12 22:53     ` Tobias Geerinckx-Rice [this message]

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=87blz2e7qj.fsf@nckx \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=tonton@riseup.net \
    /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).