Ad Widget

Collapse

Disable swap space check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dolphinaura
    Junior Member
    • Aug 2012
    • 7

    #1

    Disable swap space check

    Is there a way to disable the free swap space check for several hosts?

    Those are openvz nodes, and (obviously) have no swap.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    One can create a new template for OpenVZ containers, add within the new template a link to the common Linux template and disable the swap based items only within the new OpenVZ template.

    Comment

    • dolphinaura
      Junior Member
      • Aug 2012
      • 7

      #3
      Works nicely

      Thanks!

      Comment

      • BDiE8VNy
        Senior Member
        • Apr 2010
        • 680

        #4
        Another way is to modify the trigger to fire only if there is any swap space available (that's what we actually do for our OpenVZ containers):
        E.g.:
        Code:
        {Template:system.swap.size[,free].last(0)}<100000&{Template:system.swap.size[,total].last(0)]>0
        BTW: Current OpenVZ implementations do have a use case for virtual swap space (see: VSwap)

        Comment

        Working...