What one can do is create a disk offering using local storage. Then when spinning up a VM using the regular shared storage (NFS) include a data disk that uses the local storage offering. Once the guest boots it should understand that it has to use the additional disk for swap space. Accomplishing this via scripts... Hope that helps. On Aug 12, 2013 4:27 PM, "Noel Kendall" <[email protected]> wrote:
> Typically, I configure primary storage onto an NFS server with a RAID1 > array, and expose that zone-wide.Works fine. > However, it strikes me that it makes little sense to allow guest VMs to > place their swap files there - which is thesimple model currently in place. > What I would prefer, and makes sense from a performance point of view, is > to define a number of swap partitionson disk images residing on the local > storage system of my KVM host. > I've been over the documentation several times and it seems that options > for configuring this setup are notgranular enough: I want primary storage > defined in the NFS to be the default locus for storage, while local > storageto be the locus for specifically placed swap resources. > Has anybody done this, or know how this can be done? > TIA, Noel
