Ken Schneider wrote:
On Tue, 2005-10-18 at 16:15 +0200, Hans-Werner Hilse wrote:
Hi,
On Tue, 18 Oct 2005 13:47:11 +0200 Clayton <smaug42@gmail.com> wrote:
I've never had to resize a swap partition before... For 2.6 kernels I'd suggest a swap file. There's nearly no overhead compared to a swap partition. And you can just add it, no need for resizing other partitions and stuff. It's perfectly possible to keep your existing swap and add the swapfile like
# dd if=/dev/zero of=/swap2G bs=1G count=2 # mkswap /swap2G # swapon /swap2G
remember to put the swap file below the containing partition in your /etc/fstab.
Sorry but you have that backwards. A swap partition is much more efficient than a swap file. You don't have the overhead of the filesystem i/o to deal with. Same reason many databases are run on raw partitions.
Also, with LVM, you can resize the swap partition if needed.