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

swaping - raid



Hi,

To use kernel`s raid0 support for swap partitions, I added
these two lines to /etc/fstab

/dev/hdc2	none		swap	sw		0	0
/dev/hda1	none		swap	sw		0	0

But boot messages says these partitions have different priorities
(-1 and -2).

Any ideas? Thanks in advance.


>From mdutils docs:

  2  Swapping over RAID

  The kernel has native support for distributing swap space over
  several disks.  Just add all swap partitions to /etc/fstab and use
  'swapon -a' to activate all of them.  The kernel uses striping
  (RAID-0) for them.  Here's a sample setup:

  /dev/sda3               none            swap    sw
  /dev/sdb3               none            swap    sw



>From swap(2) man:

       Swap  pages  are  allocated  from areas in priority order,
       highest priority first.  For areas with different  priori-
       ties,  a  higher-priority area is exhausted before using a
       lower-priority area.  If two or more areas have  the  same
       priority,  and it is the highest priority available, pages
       are allocated on a round-robin basis between them.

-- 
Deniz Dogan


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: