Free Software Server Environment : SwapSpace

HomePage :: Categories :: PageIndex :: RecentChanges


Search this site: FSSE.INFO is produced by "osde8info" :

Revision [625]

Most recent edit made on 2008-05-27 10:57:18 by FsseInfo

Additions:

REFERRERS
SystemServices


Deletions:
{referrers}




Revision [457]

Edited on 2008-02-22 10:13:24 by FsseInfo

Additions:
Have you ever wanted to change the amount of swap space on your VM ? Here's how to !

disable existing swap

get some more disk space
Either repartition an existing disk or add a new disk to your GNU/Linux machine or VM
and use fdisk to create/repartition a swap partition (type 82) for your swap space
# fdisk /dev/mydisk
verify
# fdisk -l /dev/mydisk

Disk /dev/mydisk: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mypart1 1 261 2096451 82 Linux swap / Solaris

make a swap partition and use a speciail swap disk label !
# mkswap -L myswap /dev/mypart1

add to fstab
Add swap partition to fstab using your special swap disk label !
LABEL=myswap swap swap defaults 0 0

reenable swap

reboot (optional)
# reboot

and login and check new swap space is available

{referrers}


Deletions:
Ever wanted to change your amount of swap sapce ?
Now you can ! First add a new disk (sdb) to your physical or virtual machine then use fdisk to create an appropriate partition for your swap space (type 82)
# fdisk /dev/sdb
then
# mkswap -L sdb-swap /dev/sdb1
LABEL=sdb1-swap swap swap defaults 0 0




Revision [439]

The oldest known version of this page was edited on 2007-11-21 16:54:39 by FsseInfo

Swap Space

Ever wanted to change your amount of swap sapce ?
Now you can ! First add a new disk (sdb) to your physical or virtual machine then use fdisk to create an appropriate partition for your swap space (type 82)
# fdisk /dev/sdb

then
# free -k
# mkswap -L sdb-swap /dev/sdb1
# swapoff -a
# vi /etc/fstab
LABEL=sdb1-swap         swap                    swap    defaults        0 0
# swapon -a
# free -k

Finally reboot to check new swap area gets picked up on reboot !
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1439 seconds