From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9A415138E90 for ; Sat, 22 Feb 2014 06:41:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8C57E0DD6; Sat, 22 Feb 2014 06:41:30 +0000 (UTC) Received: from mail-la0-f66.google.com (mail-la0-f66.google.com [209.85.215.66]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 89039E0DBF for ; Sat, 22 Feb 2014 06:41:29 +0000 (UTC) Received: by mail-la0-f66.google.com with SMTP id y1so1100367lam.1 for ; Fri, 21 Feb 2014 22:41:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=RmewEjgIghxHYL1dHGLAsuQ0ZK/fyvVNQl5NWQLWJsQ=; b=f2rEHRV9N/AVVpobCjtrD4gjQWKq1EiRLE6rYn67hTzu9S1TnRUd4nVcKAsplPjDpr s5Q0XmyCd+LAZN5yQA6AIlsLn3f+usINb/4FI2AGB70epC0spU/qEsaRZaVUnhPmbiM8 KFa7Cz0pvA0aThb7br7HhK6dXZ2tZna5HH35mRBwA9g14XFWCfBlQOqLu71+lAjo2bqH DLEKcpXxDpmbEqOcAnQb7CXqR0w/EO+Ac+5BzDxy56DgOkjPQg0qfDbJn9PL7kXB3W2F dHbJVBWFDVizwwVLcafk+1A7/YKgZSAiKQo6enqn8xXTJ+7qVh4UzdPvtqTRq5kbn9SJ eLaA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.112.166.68 with SMTP id ze4mr5831826lbb.58.1393051287623; Fri, 21 Feb 2014 22:41:27 -0800 (PST) Received: by 10.114.170.67 with HTTP; Fri, 21 Feb 2014 22:41:27 -0800 (PST) In-Reply-To: References: Date: Sat, 22 Feb 2014 00:41:27 -0600 Message-ID: Subject: Re: [gentoo-user] RAID 1 on /boot From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 31970abe-a4c5-4aac-b81b-b23e59daac58 X-Archives-Hash: 4c08aa098d9f6b08dd4106f9e208f821 On Fri, Feb 21, 2014 at 11:27 PM, Facundo Curti wrot= e: > Hi all. I'm new in the list, this is my third message :) > First at all, I need to say sorry if my english is not perfect. I speak > spanish. I post here because gentoo-user-es it's middle dead, and it's a > great chance to practice my english :) Now, the problem. > > I'm going to get a new PC with a disc SSD 120GB and another HDD of 1TB. B= ut > in a coming future, I want to add 2 or more disks SSD. > > Mi idea now, is: > > Disk HHD: /dev/sda > /dev/sda1 26GB > /dev/sda2 90GB > /dev/sda3 904GB > > Disk SSD: /dev/sdb > /dev/sdb1 26GB > /dev/sdb2 90GB > /dev/sdb3 4GB > > And use /dev/sdb3 as swap. (I will add more with another SSD in future) > /dev/sda3 mounted in /home/user/data (to save data unused) > > And a RAID 1 with: > md0: sda1+sdb1 / > md1: sda2+sdb2 /home > > (sda1 and sda2 will be made with the flag: write-mostly. This is useful f= or > disks slower). > In a future, I'm going to add more SSD's on this RAID. My idea is the > fastest I/O. > > Now. My problem/question is: > Following the gentoo's doc, it says I need to put the flag --metadata=3D0= .9 on > the RAID. My question is =C2=BFThis will make get off the performance?. > > I only found this document. This says the difference, but nothing about > performance and advantages/disadvantages. I don't know the performance differences, if any, but in my tests everything worked with the default metadata (1.2). > Another question is, =C2=BFGRUB2 still unsupporting metadata 1.2? No, GRUB2 supports it just fine. You just need to use the mdraid1x GRUB2 mo= dule. > In case that metadata get off performance, and GRUB2 doesn't support this= . > =C2=BFAnyone knows how can I fix this to use metadata 1.2? It's not necessary. > I don't partitioned more, because I saw this unnecessary. I just need to > separate /home in case I need to format the system. But if I need to > separate /boot to make it work, I don't have problems doing that. It works fine; I tested it in a virtual machine (and I used systemd, but it should not be significantly different with OpenRC). You can check my steps in [1] and [2] (with LUKS support). > But of course, /boot also as RAID... It works even with boot being on LVM over RAID. > =C2=BFSomebody have any ideas to make it work? I didn't tested in a real life machine (I've never been a fan of neither RAID nor LVM), but in a VM it worked without a hitch. Again, check [1] and [2]. Hope it helps. Regards. [1] http://article.gmane.org/gmane.linux.gentoo.user/269586 [2] http://article.gmane.org/gmane.linux.gentoo.user/269628 --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico