for those interested how swap got disabled... it was probably during an 
upgrade to 8.04 (Ubuntu).

I enabled the swap partition with SWAPON command, but discovered that 
upon reboot it got disabled again...

I found out the problem (UUIDs for sda2 in /etc/fstab were wrong...):

:~$ cat /etc/fstab
proc            /proc       proc    defaults    0 0
# /dev/sda1 -- converted during upgrade to edgy
UUID=9c65b16b-2082-4121-9c78-d5fc6e407ade / ext3 
defaults,errors=remount-ro 0 1
# /dev/sda2 -- converted during upgrade to edgy
UUID=ff26b2f9-e08c-42d8-97fa-9a5e37f9a711 none swap sw 0 0

The correct UUID:

:~$ cat /etc/blkid.tab
<device DEVNO="0x0801" TIME="1222383637" 
UUID="c50741b8-7929-4310-84ef-d581135c1387" 
TYPE="ext3">/dev/sda1</device>
<device DEVNO="0x0802" TIME="1222383637" TYPE="swap" 
UUID="49a04c1e-c41e-4d24-9ea1-b23014136b5b">/dev/sda2</device>

So I updated the UUID in fstab and the swap partition settings survive 
the reboot now!

david




D. Krmpotic wrote:
> in the meantime I did enable it... no idea how it got disabled...
> 
> but still... do you think it's ok that so little memory is left on boot 
> and reindexing would have to start swapping?
> 
> 
> 
> Robby Russell wrote:
>> Yeah, without any swap... you're going to have some problems.
>> Surprised that you don't have any enabled by default. (at least 2x the
>> amount of RAM to start... )
>> 
>> On Wed, Sep 24, 2008 at 9:02 AM, Roberto R <[EMAIL PROTECTED]> 
>> wrote:
>>>> else... but still... swapping is just as bad ... and 512MB should be
>>>> -/+ buffers/cache:        413         97
>>>> > some swap space?
>>>> >>
>>>
>> --
>> Robby Russell
>> Chief Evangelist, Partner
>> 
>> PLANET ARGON, LLC
>> design // development // hosting
>> 
>> http://www.planetargon.com/
>> http://www.robbyonrails.com/
>> aim: planetargon
>> 
>> +1 503 445 2457
>> +1 877 55 ARGON [toll free]
>> +1 815 642 4068 [fax]

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to