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 A256B1381F3 for ; Tue, 15 Oct 2013 21:42:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BDC0E0AB2; Tue, 15 Oct 2013 21:42:45 +0000 (UTC) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78685E0984 for ; Tue, 15 Oct 2013 21:42:44 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id b13so8091560wgh.3 for ; Tue, 15 Oct 2013 14:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=fbOQTsUiX7DOUBQK4wgZRakNCnQ0xcgYC/DyDGdBQqM=; b=GLj0FRf5WIyNOWLDxjk0z6jmWeDZ5sJB5Rng9/BEstcw46Pqs+MnYmFpc0xqS9Quf6 onPO5vwI3bApuP5rOjnTJ0m0WPOWaMM65fXha0bvxZ18s5pD3UYxXpFUFeV/QCjrNxRU OV7SgClWf7j8SOE0eiPtJXwbUOZZOovcRAYfk4JD9MEjWu2r6qpq7QMO/5f4J0aZ/ym7 NXVZG90ATzmR9Qz1ybsSlybPKLd6QRMy6nOxz8dHxXxl4wOvMbrO8Ix91d3UkLWxF1LI 7ceLO7JjwqbRrcXqI6QXEbGG8OH5upbdqPkjSRujfufzfKT3a4ydc7QfJQ2mj0I1gOao ABVQ== X-Received: by 10.194.201.225 with SMTP id kd1mr9626597wjc.35.1381873363145; Tue, 15 Oct 2013 14:42:43 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPSA id bs15sm496797wib.10.2013.10.15.14.42.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2013 14:42:42 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] RAID help Date: Tue, 15 Oct 2013 22:42:18 +0100 User-Agent: KMail/1.13.7 (Linux/3.10.7-gentoo-r1; KDE/4.10.5; x86_64; ; ) References: <201310150834.21103.michaelkintzios@gmail.com> In-Reply-To: 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 Content-Type: multipart/signed; boundary="nextPart1885921.1u10oGOqhp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201310152242.38956.michaelkintzios@gmail.com> X-Archives-Salt: 9b852905-7c11-4514-88f5-dbcf3925d258 X-Archives-Hash: adaca7568215e70fce507bb3915756d6 --nextPart1885921.1u10oGOqhp Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tuesday 15 Oct 2013 20:28:46 Paul Hartman wrote: > On Tue, Oct 15, 2013 at 2:34 AM, Mick wrote: > > Hi All, > >=20 > > I haven't had to set up a software RAID for years and now. I want to s= et > > up two RAID 1 arrays on a new file server to serve SBM to MSWindows > > clients. The first RAID1 having two disks, where a multipartition OS > > installation will take place. The second RAID1 having two disks for a > > single data partition. > >=20 > > From what I recall I used mdadm with --auto=3Dmdp, to create a RAID1 fr= om 2 > > disks, before I used fdisk to partition the new /dev/md0 as necessary.= =20 > > All this is lost in the fog of time. Now I read that these days udev > > names the devices/partitions, so I am not sure what the implication of > > this is and how to proceed. > >=20 > > What is current practice? Create multiple /dev/mdXs for the OS > > partitions I would want and then stick a fs on each one, or create one > > /dev/md0 which thereafter is formatted with multiple partitions?=20 > > Grateful for any pointers to resolve my confusion. >=20 > One of the best resources is the kernel RAID wiki: > https://raid.wiki.kernel.org/ Thanks Paul! It seems that after a cursory look, both ways of partitioning= a=20 RAID-1 are still available: https://raid.wiki.kernel.org/index.php/Partitioning_RAID_/_LVM_on_RAID =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D # df -h Filesystem Size Used Avail Use% Mounted on /dev/md2 3.8G 640M 3.0G 18% / /dev/md1 97M 11M 81M 12% /boot /dev/md5 3.8G 1.1G 2.5G 30% /usr /dev/md6 9.6G 8.5G 722M 93% /var/www /dev/md7 3.8G 951M 2.7G 26% /var/lib /dev/md8 3.8G 38M 3.6G 1% /var/spool /dev/md9 1.9G 231M 1.5G 13% /tmp /dev/md10 8.7G 329M 7.9G 4% /var/www/html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D and: mdadm --create --auto=3Dmdp --verbose /dev/md_d0 --level=3Dmirror --raid-de= vices=3D2=20 /dev/sda /dev/sdb which is thereafter partitioned with fdisk. This is the one I have used in= =20 the past. Which one is preferable, or what are the pros & cons of each? =2D-=20 Regards, Mick --nextPart1885921.1u10oGOqhp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJSXbbOAAoJELAdA+zwE4YeQZwIANIhrglf4Q99o++SNtVxzvjd ZedpIr5z6Nemge6WUShSX0+XB/yw9bZ+g5CYKuH1p41RY5I4SEObSij5yAqugDEf T1EPEBeMLuQeyJgRWQEgsmSSTFvnTwzVf9pnegPbp+I3IgXKLHNXMe8KqCG5ATJ5 omxvQwgOjRENoHL8qHWDX1bOYZEpyiLq0bXMR+sT7QYxOPK1rRvUZxfZED5dwZlB kOkkiouh1xOapVOOKalFo5IX2bb80EXEEC6+nxY6mu4oYdpMCMkJ4h+oCh2bqXyz cojjly5CCulleMGnVzHi8Hot25pWI7LmWyvPBhXfNXl4XCe9md9tJJc4WOZ4g58= =cQVE -----END PGP SIGNATURE----- --nextPart1885921.1u10oGOqhp--