Hi,
I am using fedora core 6 with kernel 2.6.22.14-72.fc6. and I am using
Apache, mysql, php applications.
when it reboots swap gets disabled and i have to manually on it.
fstab entry is
#LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/sda2 swap swap defaults
0 0
regards,
suryabhan
________________________________
From: mubeen nakade <[email protected]>
To: [email protected]
Sent: Tuesday, 23 December, 2008 8:21:51 PM
Subject: Re: [LinuxVadaPav] swap is not used by linux
Hi,
Your swap is already ON as it is showing in # free, you dont need to ON
the swap again or create swap with mkswap command.
Can you tell which Linux you are using and the Kernel version?? Application
used?
Mubeen.
--- On Tue, 23/12/08, Viket Trivedi <viket.trivedi@ gmail.com> wrote:
From: Viket Trivedi <viket.trivedi@ gmail.com>
Subject: Re: [LinuxVadaPav] swap is not used by linux
To: linuxvadapav@ yahoogroups. com
Date: Tuesday, 23 December, 2008, 4:34 PM
On Tue, Dec 23, 2008 at 4:32 PM, Viket Trivedi <viket.trivedi@ gmail.com>wrote:
>
>
> On Tue, Dec 23, 2008 at 2:30 PM, suryabhan yadav <
> suryabhan_linux@ yahoo.co. in> 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]
Add more friends to your messenger and enjoy! Go to http://messenger.
yahoo.com/ invite/
[Non-text portions of this message have been removed]
Connect with friends all over the world. Get Yahoo! India Messenger at
http://in.messenger.yahoo.com/?wm=n/
[Non-text portions of this message have been removed]