Koozali.org: home of the SME Server

Change swap size on SME Server 7.4

Offline rdailey

  • *
  • 2
  • +0/-0
Change swap size on SME Server 7.4
« on: February 28, 2010, 06:10:30 AM »
Is it possible to change the size of swap?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Change swap size on SME Server 7.4
« Reply #1 on: February 28, 2010, 08:32:09 AM »
hi

please explain your problem, not  your solution, thank you

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Change swap size on SME Server 7.4
« Reply #2 on: February 28, 2010, 04:45:40 PM »
Is it possible to change the size of swap?

It's possible, but not easy, to change the size of the swap partition. It's relatively easy to add an extra swap file.

I don't know why you want to change the size of the swap partition, but perhaps you should think instead of adding more RAM.

Offline rdailey

  • *
  • 2
  • +0/-0
Re: Change swap size on SME Server 7.4
« Reply #3 on: February 28, 2010, 08:05:56 PM »
hi

please explain your problem, not  your solution, thank you

The problem is that I want to change the size of the swap partition, but the root partition and the swap partition are logical volumes on a raid array, and changing the size of the root and swap partitions is a multi-step procedure. 

The solution would have been in your telling me the proper steps to resize the root file system, resize the md array, resize the root logical volume, resize the swap logical volume, and reformat the swap partition.  I can see now that we're probably not going to get that level of support here, though.

As an alternative, the idea of a swap file is certainly much easier, but I don't like the thought of having a possibly non-contiguous file for swap (the system has been writing data on the disk for some time already).  I am, however, going to consider the swap file further before discounting it entirely.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Change swap size on SME Server 7.4
« Reply #4 on: February 28, 2010, 08:09:02 PM »
The problem is that I want to change the size of the swap partition, ...

Why?

Stefano asked you to explain the problem, not your solution.