Re: Mirroring swap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 26, 2003 at 08:07:47AM +0100, Riley Williams wrote:
> Hi Derek.
>  > I'm running Red Hat 9 on stock kernel 2.4.20 with software
>  > RAID 1.
>  >
>  > I was wondering if it's a good idea to also mirror the swap
>  > partition? I was reading old posts in the newsgroups that
>  > suggest this may not be a good idea but I can't seem to find
>  > an answer as to why. I think mirroring swap would be a good
>  > idea as it would increase redundancy. Any thoughts?  
> 
> Personally, I can't see the point. the contents of swap are by
> definition short term temporary data with copies held either in
> memory or elsewhere on the hard disk subsystem.

I do that mirroring routinely.

What Linux sends to swap has _no_ origin in anywhere else in
the system, e.g. shared library loading makes runtime modifications
into loaded program, modifications to RW DATA segment, and
of course the BSS segment, and all of heap, and stack...

Most of the executable will usually stay unmodified, and be
backed by its on-disk version, but never everything.

...
> Remember that using a raided swap partition means that the swap
> code has no idea which drive any particular part of that swap
> partition is on, so could result in the swap copy being on the
> same failed drive as the original copy.

Nope.  swap-code does not see it at all.  All of that is hidden with
under the mirroring code, and it does disconnect faulted drive from
the mirror set.

> Best wishes from Riley.

/Matti Aarnio
-
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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux