[CentOS] Re: changing swap size

Scott Silva ssilva at sgvwater.com
Thu Mar 29 17:24:02 UTC 2007


John Summerfield spake the following on 3/28/2007 5:49 PM:
> Scott Silva wrote:
>> Stewart Walker spake the following on 3/28/2007 2:29 PM:
>>
>>> Is it possible to change the swap size with out re-installing the
>>> system?
>>>
>>> Looking at the dd command but don't really know what to expect.
>>>
>>> Many thanks for your help
>>>
>>>
>>>
>>>
>>
>> If you have the space available, you can add, remove, or change the
>> swap on
>> demand. If you have unpartitioned space you could add a partition as
>> large as
>> you want, with type 82 (linux swap), use mkswap to format it, and
>> swapon the
>> partition. Then you could swapoff the old one and use the space for
>> something
>> else. Then adjust /etc/fstab to reflect the new info.
>> You might be able to resize a swap partition from a rescue disk with
>> parted.
>>
> 
> I don't know what advantage swap partitions have over swap files.
> 
> Swap files can be created and added as any time.
> 
> 
> 
Just another option as someone else posted swap file specific commands.


-- 

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!




More information about the CentOS mailing list