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

Re: swap spread across multiple disks?




Tim wrote:
> 
> i think you have to do a "swapon /dev/XXXX"...
> 
> Charles Menzes wrote:
> >
> > all-
> >
> > is it possible for linux to have its swap file spread across multiple
> > disks? i just finished a new redhat install, and selected two partitions
> > as swap space with fstype 82.
> > however, now that the machine has rebooted after install, I still only see
> > one swap space set up:
> >
> > [charles@apothecary charles]$ more /etc/fstab
> > /dev/hda7               /                       ext2    defaults        1
> > 1
> > /dev/hda1               /boot                   ext2    defaults        1
> > 2
> > /dev/hdc5               /home                   ext2    defaults        1
> > 2
> > /dev/hdb7               /mirror                 ext2    defaults        1
> > 2
> > /dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0
> > 0
> > /dev/hda6               /redhat                 ext2    defaults        1
> > 2
> > /dev/hdb6               /tmp                    ext2    defaults        1
> > 2
> > /dev/hdc1               /usr                    ext2    defaults        1
> > 2
> > /dev/hdb1               /var                    ext2    defaults        1
> > 2
> > /dev/hda5               swap                    swap    defaults        0
> > 0
> > /dev/fd0                /mnt/floppy             ext2    noauto,owner    0
> > 0
> > none                    /proc                   proc    defaults        0
> > 0
> > none                    /dev/pts                devpts  gid=5,mode=620  0
> > 0

It seems the redhat install didn't put the other partition in your
fstab.  I only see /dev/hda5 as swap.  Add a line for your other
partition just like the hda5 line, and "swapon -a" will load both.

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.