On 07/07/11 18:02, Zeb Packard wrote:
> hmmkay, so both disklabels have an sd0b, softraid is pointed to
> sd3b for swap, but dmesg still prints 'swap on sd0b dump on sd0b'
> I'm assuming this is because sd0b is striped?

no, it is because sd0b is swap BY DEFINITION.

Do not use the 'a' partition of the first drive for anything but booting.
Do not use the 'b' partition of the first drive for anything but swap.
Do not use the 'c' partition of any drive.

Do not forget there is a strong possibility that some day your first
drive may no longer be your first drive, in which case some other
drive's 'a' and 'b' will be spoken for.  Respect that.

If you have a [ws]d0b, it WILL be swap.
If you promote sd1b to sd0b, whatever was on 'b' will become swap.

IF you want to have swap on RAID, ok...don't create a 'b' partition on
your real disks.  Create a swap partition on your softraid disk, point
to it with fstab.

> I figure it's worth a shot on my test system, if it's quicker, I'm not
> opposed to the little bit of configuration up front.

it's a potential failure point.
In a modern computer running typical applications, think of swap as your
"oh shit, that wasn't supposed to happen!" recovery zone.  In general,
if you are optimizing your swap, you are Doing It Wrong.  Special cases
exist, I'm sure, but it is very much like cleaning the gun and polishing
the bullets before putting a hole in your foot.  The dirty gun and the
tarnished bullet were going to do just fine.

Nick.

Reply via email to