From: "Bailey, Scott" <scott.bailey@eds.com>
To: 'Derek Yeung' <dky@utcc.utoronto.ca>
Cc: linux-raid@vger.kernel.org
Subject: RE: Mirroring swap
Date: Wed, 25 Jun 2003 15:58:14 -0400 [thread overview]
Message-ID: <7FD257BF8564D4119DA800508BDF07AA0B0AAA9B@usahm012.exmi01.exch.eds.com> (raw)
>I was wondering if it's a good idea to also mirror the swap partition?
I've heard both sides of the argument, but my 2 cents says "mirror it".
Otherwise you run the risk of having your swap area become unusable
following a drive failure, which will make your system very upset if it
decides it needs to swap in (or out) data associated with that area.
>If it's a good idea, can anyone suggest how i can do it? (mirror swap?)
It's just another partition. :-) Assuming you have created a md device of
the appropriate size, just use "/dev/md5" [or whatever] in your mkswap
command and the first column of the swap entry in your /etc/fstab. Note that
you do *NOT* have separate partitions on the md device itself.
My preference in this situation actually is to use LVM on top of RAID so
that you don't have to mess around with so many md devices. In this
scenario, you create a much larger md device, put it into a volume group,
then create a logical volume of the desired size. That is: (very
abbreviated)
# pvcreate /dev/md5
# vgcreate myvg /dev/md5
# lvcreate --contiguous y --size 128m --name swapvol myvg
# mkswap /dev/myvg/swapvol
# swapon /dev/myvg/swapvol
I can't remember making the volume contiguous is actually a requirement for
Linux LVM or just garbage cluttering up my brain from HP-UX days. :-)
Have fun,
Scott
next reply other threads:[~2003-06-25 19:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-25 19:58 Bailey, Scott [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-06-25 19:39 Mirroring swap Derek Yeung
2003-06-26 7:07 ` Riley Williams
2003-06-26 7:30 ` Matti Aarnio
2003-06-26 8:30 ` Gordon Henderson
2003-06-26 21:23 ` Gregory Leblanc
2003-06-26 21:44 ` Corey McGuire
2003-06-27 1:56 ` Scott McDermott
2003-06-27 2:14 ` Corey McGuire
2003-06-27 2:24 ` Scott McDermott
[not found] ` <200306261957360966.057B8F63@ilneval.coreyfro.com>
2003-06-27 3:22 ` Corey McGuire
2003-06-27 16:17 ` Ricky Beam
2003-06-27 8:49 ` Gordon Henderson
2003-06-26 9:46 ` Scott McDermott
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=7FD257BF8564D4119DA800508BDF07AA0B0AAA9B@usahm012.exmi01.exch.eds.com \
--to=scott.bailey@eds.com \
--cc=dky@utcc.utoronto.ca \
--cc=linux-raid@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