mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nick Andrew <nick@nick-andrew.net>
To: Dylan Taft <d13f00l@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: MDADM Software Raid Woes
Date: Thu, 18 Dec 2008 17:56:04 +1100	[thread overview]
Message-ID: <20081218065603.GA21265@mail.local.tull.net> (raw)
In-Reply-To: <47ed01bd0812172033p1065b472t62491e4f2eed901@mail.gmail.com>

On Wed, Dec 17, 2008 at 11:33:31PM -0500, Dylan Taft wrote:
> I created the raids with the mdadm tool, originally configured manually
> /dev/md0 for sdb1/sdc1 raid1 to be mounted as /boot
> /dev/md1 for sdb2/sdc2 raid0
> 
> I created 3 partitions on md1, one for future /, one for swap, one for
> future /home.
> So I had /dev/md0, md1, and /dev/md1p1,/dev/md1p2/dev/md1p3

Why not use LVM for /dev/md1 ?

	pvcreate /dev/md1
	vgcreate myvg /dev/md1
	lvcreate -L 10G -n root myvg
	lvcreate -L 2G -n swap myvg
	lvcreate -L 20G -n home myvg

Also since you have specified raid0 for /dev/md1 you could
use striping under LVM instead of RAID:

	pvcreate /dev/sdb2 /dev/sdc2
	vgcreate myvg /dev/sdb2 /dev/sdc2
	lvcreate -L 10G -n root -i 2 -I 32 myvg
	lvcreate -L 2G -n swap -i 2 -I 32 myvg
	lvcreate -L 20G -n home -i 2 -I 32 myvg

That way you have some flexibility in your use of sdb2
and sdc2, e.g. you can move your LVs off sdc2 if you want
to replace or extend it later.

Nick.

  parent reply	other threads:[~2008-12-18  6:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-18  4:33 Dylan Taft
2008-12-18  6:16 ` Dylan Taft
2008-12-18  6:56 ` Nick Andrew [this message]
2008-12-18 13:08   ` Dylan Taft
2008-12-18 20:06     ` NeilBrown
2008-12-19  0:03       ` Dylan Taft
2008-12-19  0:26         ` NeilBrown

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081218065603.GA21265@mail.local.tull.net \
    --to=nick@nick-andrew.net \
    --cc=d13f00l@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®