public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joseph Bueno <joseph.bueno@trader.com>
To: nick@guardiandigital.com
Cc: Peter Zaitsev <pz@spylog.ru>, linux-kernel@vger.kernel.org
Subject: Re: Is  Swapping on software RAID1 possible  in linux 2.4 ?
Date: Thu, 05 Jul 2001 17:12:40 +0200	[thread overview]
Message-ID: <3B4483E8.2C31AC01@trader.com> (raw)
In-Reply-To: <1011478953412.20010705152412@spylog.ru> <3B447FAD.1E4724C9@guardiandigital.com>

Nick DeClario wrote:
> 
> Just out of curiousity what are the advantages to having a RAID1 swap
> partition?  Setting the swap priority to 0 (pri=0) in the fstab of all
> the swap partitions on your system should have the same effect as doing
> it with RAID but without the overhead, right?  RAID1 would also mirror
> your swap.  Why would you want that?
> 
> Regards,
>         -Nick
> 
Hi,

Setting swap priority to 0 is equivalent to RAID0 (striping) not RAID1 (mirroring).

Mirroring your swap partition is important because if the disk containing
your swap fails, your system is dead. If you want to keep your system running
even if one disk fails you need to mirror ALL your active partitions including
swap.
If you only mirror your data partitions, your are only protected against data
loss in case of a disk crash (assuming you shutdown gracefully before it panics
while it tries to read/write  on a crashed swap partition and leave your data in
some inconsistent state).

Regards
--
Joseph Bueno

  reply	other threads:[~2001-07-05 15:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-05 11:24 Is Swapping on software RAID1 possible in linux 2.4 ? Peter Zaitsev
2001-07-05 12:13 ` Neil Brown
2001-07-05 13:22   ` Re[2]: " Peter Zaitsev
2001-07-05 13:42     ` Arjan van de Ven
     [not found]     ` <mailman.994340644.23368.linux-kernel2news@redhat.com>
2001-07-05 18:56       ` Pete Zaitcev
2001-07-12  1:14     ` Re[2]: " Neil Brown
2001-07-12  1:48       ` Andrew Morton
2001-07-12  3:22         ` Neil Brown
2001-07-12  4:53           ` Andrew Morton
2001-07-05 14:54 ` Nick DeClario
2001-07-05 15:12   ` Joseph Bueno [this message]
2001-07-06  9:38   ` Re[2]: " Peter Zaitsev
2001-07-11 12:08   ` Paul Jakma

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=3B4483E8.2C31AC01@trader.com \
    --to=joseph.bueno@trader.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nick@guardiandigital.com \
    --cc=pz@spylog.ru \
    /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