Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Increase swap space 2

Status
Not open for further replies.

agape234

Programmer
Oct 10, 2001
128
US
I need to increase Swap space on the fly, is this possible?
 
Yes it is. Say you wanted to add a 1 Gigabyte swap file. First you need to make sure you have 1GB to dedicate to it. Assuming your root partition has space, the following commands will do it...
Code:
mkfile 1024m /swapfile
swap -a /swapfile
You then need to add the following line to [tt]/etc/vfstab[/tt]...
Code:
/swapfile  -  -  swap  -  no  -
That should do it.

Hope this helps.
 
Be careful... That command puts the file in the root partition... Make sure you have room for it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top