[CentOS-virt] img partitioning & swap

Sun Nov 1 19:02:47 UTC 2009
Christopher G. Stach II <cgs at ldsys.net>

----- "Adam" <adam0x54 at gmail.com> wrote:

> There is no need for a second img to use as swap right?

Rereading your original message got me to wondering whether the examples you saw were putting swap on local storage and the filesystems on remote storage. You can do that for swap performance, but then you can't migrate VMs with the stock tools. It's better to just allocate a decent swap space, store it over the network, and avoid using swap (allocate more RAM, turn down swappiness, etc.) You can also just not use a disk for swap space, such as swap on ramdisk if you're running a kernel that murders itself when it has no swap.

Christopher G. Stach II