Recommended gmirror solution with swap?

Ivan Voras ivoras at fer.hr
Mon Jan 1 10:08:38 PST 2007


Michael Knoll wrote:
> I am planning on converting my FreeBSD machine to use gmirror on two
> 40gig drives.  Reading the handbook and other sites with instructions
> on configuring gmirror, I notice they all disable swap.  Is this
> acceptable?  Is it expected swap be on another drive?  If so, is there
> a solution which I can keep the swap on the mirror. as I don't have
> another drive?

There's no technical problem with it, it's more a matter of organization
and convenience. For example: you don't really need the swap to survive
a crash, so there's no need to introduce the overhead of mirroring it -
better to leave 2x the space configured as swap area. If you have more
than one area, the system should take advantage of it and use both to
maximize speed (in theory this should work as an implicit RAID0 across
the swap areas).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070101/a40f9b58/signature.pgp


More information about the freebsd-geom mailing list