From: NeilBrown <neilb@suse.de>
To: Iordan Iordanov <iordan@cdf.toronto.edu>
Cc: "Mathias Burén" <mathias.buren@gmail.com>, b2 <b2@playtime.bg>,
linux-raid@vger.kernel.org
Subject: Re: debian software raid1
Date: Wed, 20 Apr 2011 08:51:48 +1000 [thread overview]
Message-ID: <20110420085148.12ac0002@notabene.brown> (raw)
In-Reply-To: <4DADB24F.2030300@cdf.toronto.edu>
On Tue, 19 Apr 2011 12:03:27 -0400 Iordan Iordanov <iordan@cdf.toronto.edu>
wrote:
> Hey guys,
>
> On 04/19/11 08:25, Mathias Burén wrote:
> > http://www.debian-administration.org/articles/238
> >
> > Plenty of articles on the net on how to do that.
>
> There is a lot of information, but also, I suspect there is a lot of
> disagreement. One thing that I could not find a definitive answer on was
> the question of whether or not to mirror swap.
>
> There are articles that propose mirroring partitions independently
> (rather than the entire disk), and not mirroring swap, but adding two
> swap partitions with equal priority. On the other hand, there are people
> who point out that in the event where one of the disks in the mirror
> dies, the machine may cease to function, because a part of its "memory"
> will have disappeared. However, making swap part of the mirror opens a
> whole new can of worms. For instance, could there be a deadlock
> possibility (for example after a suspend/resume cycle) where mdadm is
> waiting for something which is swapped out onto swap which is mirrored?
If there was such a deadlock, it would be a serious bug. I don't believe
such a bug exists (but hey - I keep finding bugs in this code, when I'm not
busy writing new bugs, so I guess it could crash you machine and kill your
cat).
>
> It would be nice to have a discussion among people who have experience
> with all of this.
Definitely put swap on RAID1 if you have RAID1 at all.
My personal preference with RAID1 to to have a single RAID1 (probably
--metadata=1.0) across the whole devices, and partition that for root, swap,
home.
Others prefer to partition the devices and run RAID1 across the partitions
independently. While that is not my preference I known nothing against it.
This is the price of freedom - you have to make choices
If I had a few identical drives, I would partition them each into a
small /boot, a small swap and the rest. I would then RAID1 all the /boots
together, RAID10 all the swaps, and RAID5 or RAID6 all the rest.
The most important thing though it to create an configuration that you
understand and are comfortable with, because you are the one who will have to
manage it.
NeilBrown
>
> Cheers,
> Iordan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-04-19 22:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 12:12 debian software raid1 b2
2011-04-19 12:25 ` Mathias Burén
2011-04-19 16:03 ` Iordan Iordanov
2011-04-19 21:10 ` Gordon Henderson
2011-04-19 21:33 ` Steven Haigh
2011-04-19 22:01 ` Roberto Spadim
2011-04-19 22:05 ` Mathias Burén
2011-04-19 22:51 ` NeilBrown [this message]
2011-04-20 0:33 ` Joe Landman
2011-04-20 1:12 ` NeilBrown
2011-04-20 14:59 ` Iordan Iordanov
2011-04-20 14:51 ` Iordan Iordanov
2011-04-21 6:15 ` Luca Berra
2011-04-21 14:50 ` Iordan Iordanov
2011-04-22 5:59 ` Luca Berra
2011-04-22 19:19 ` Iordan Iordanov
2011-04-22 19:28 ` Mikael Abrahamsson
2011-04-23 0:07 ` Iordan Iordanov
2011-04-20 10:28 ` Asdo
2011-04-20 12:40 ` NeilBrown
2011-04-23 8:33 ` Jan Ceuleers
2011-04-22 19:21 ` Iordan Iordanov
2011-04-22 22:12 ` NeilBrown
2011-04-23 0:05 ` Iordan Iordanov
2011-04-23 12:54 ` David Brown
2011-04-23 14:23 ` Keld Jørn Simonsen
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=20110420085148.12ac0002@notabene.brown \
--to=neilb@suse.de \
--cc=b2@playtime.bg \
--cc=iordan@cdf.toronto.edu \
--cc=linux-raid@vger.kernel.org \
--cc=mathias.buren@gmail.com \
/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 NNTP newsgroup(s).