On Tue, Dec 23, 2008 at 4:32 PM, Viket Trivedi <[email protected]>wrote:
> > > On Tue, Dec 23, 2008 at 2:30 PM, suryabhan yadav < > [email protected]> wrote: > >> Dear Admin, >> >> In my server I have 1 gb ram 2 gb swap, but swap is not used. When ram >> utilisation is more than 1gb system reboots. >> Ram uses always shows 0. How to enable the swap. plz reply me.... >> I used # swapon /dev/sda2 to on the swap. >> >> How to enable the swap. >> >> OUTPUTS:- >> >> [r...@idea ~]# free -m >> total used free shared buffers cached >> Mem: 1010 666 344 0 73 342 >> -/+ buffers/cache: 251 759 >> Swap: 2000 0 2000 >> >> [r...@idea ~]# swapon -s >> Filename Type Size Used Priority >> /dev/sda2 partition 2048276 0 -1 >> >> thanx, >> suryabhan... >> >> Add more friends to your messenger and enjoy! Go to >> http://messenger.yahoo.com/invite/ >> >> >> > > > Hi suryabhan, > > To stop your system from rebooting due to memory issue, first thing is you > create a pagefile using mkswap. see if it stops your rebooting. > > -- > > Regards, Viket > Follow me on Twitter: http://twitter.com/viket > Once this stops rebooting your system, then do the following. mkswap /dev/'swap partition' swapon -vagedit /etc/fstab UUID='your correct swap UUID' none swap sw 0 0 replace texts in single quote with actuals. when you edit your /etc/fstab file make sure that your swap partition has the new UUID. something sort of that see if that could help -- Regards, Viket Follow me on Twitter: http://twitter.com/viket [Non-text portions of this message have been removed]
