From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Root partition on raid? Date: Thu, 13 Jun 2019 00:53:08 +0200 Message-ID: <87blz2e7qj.fsf@nckx> References: <20190612082340.6a00c26a@merlin.browniehive.net> <87ftoeer86.fsf@nckx> <20190612232201.3b4b873e@merlin.browniehive.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56412) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbC9y-0001vs-Ud for help-guix@gnu.org; Wed, 12 Jun 2019 18:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbC7W-0000mi-2F for help-guix@gnu.org; Wed, 12 Jun 2019 18:53:31 -0400 Received: from tobias.gr ([2001:470:7405::1]:59188) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbC7P-0000eB-HJ for help-guix@gnu.org; Wed, 12 Jun 2019 18:53:25 -0400 In-reply-to: <20190612232201.3b4b873e@merlin.browniehive.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: Tonton Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable 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=20 > configure > this on your end?=20 Nothing fancy: =2D-8<---------------cut here---------------start------------->8--- (mapped-devices (list (mapped-device (type raid-device-mapping) (source (list "/dev/sda2" "/dev/sdb2" "/dev/sdc2"=20 "/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=3Dzlib,relatime")) (file-system (device (file-system-label "EFI")) (mount-point "/boot/efi") (create-mount-point? #t) (type "vfat")) %base-file-systems)) =E2=80=A6 (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi") (timeout (seconds 1)))) =2D-8<---------------cut here---------------end--------------->8--- (That comment's been there for years; in true admin fashion I=20 haven't touched a working set-up.) Guix doesn't use mdadm.conf or whatever it's called. Depending on=20 your system, using labels or UUIDs instead of device names could=20 make it more robust, or merely complicate drive replacement in=20 future. Adding LUKS to this mix should be possible too, but I haven't=20 tried it myself. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXQGCVAAKCRANsP+IT1Vt eZfmAP9evW3WsjUTwy8BSdKfTXrbzlgtUPfjz2yTTI4AbPla8QD/cXo6iRbZpu6j Z4D5ZD+NUA+iuFMtu9ZNQdhSCvEZcgM= =Qfxw -----END PGP SIGNATURE----- --=-=-=--