Ooooh, I can answer this one...

In you fstab do this:

/dev/hda1               swap                    swap    defaults,pri=1  0 0
/dev/sda1               swap                    swap    defaults,pri=1  0 0
/dev/sdb1               swap                    swap    defaults,pri=1  0 0
/dev/sdc1               swap                    swap    defaults,pri=1  0 0
/dev/sdd1               swap                    swap    defaults,pri=1  0 0

Notice the pri=0 on the partitions. Note that this is my fstab, not yours,
so don't just copy/paster ;-)

--Rainer



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Craig Zody
Sent: Wednesday, February 02, 2000 12:26 AM
To: [EMAIL PROTECTED]
Subject: OT on SWAP not on RAID


Hello all,

Although I have RAID set up on a few systems that I help out with, this
is not really a SWAP on RAID question, but since everyone here seems to
know so much about it, I figured that I would ask here first before
annoying the entire Linux-Kernel mailing list.

I have a box with 4 IDE drives. Each drive is the same model and each
drive has a 128 MB partition set aside to use as swap space. In the
various discussions of swap on raid, many people have said that it is
unnecessary as the kernel will automatically use all swap partitions
equally.

But when my system boots (kernel 2.2.14) I get the following message:
Adding Swap: 131536k swap-space (priority -1)
Adding Swap: 131536k swap-space (priority -2)
Adding Swap: 131536k swap-space (priority -3)
Adding Swap: 131536k swap-space (priority -4)

This doesn't look to me as if the kernel is using all of the swap
partitions equally. Am I wrong?

My /etc/fstab looks has the entries for the swap partitions as follows:

/dev/hda4           swap                    swap    defaults        0 0
/dev/hdb4           swap                    swap    defaults        0 0
/dev/hdc4           swap                    swap    defaults        0 0
/dev/hdd4           swap                    swap    defaults        0 0

Is there something else I need to do to get it to use the swap space
more efficiently?

Thanks for you time,

Craig Zody

Reply via email to