Documentation

lvectl v0.6 for LVE 0.8 and higher

lvectl is the primary tool for LVE management. To use it, you have to be administrator. lvectl is part of lve-utils package. The syntax of lvectl is:

lvectl apply [LVE_ID]
lvectl apply all
lvectl set LVE_ID [--cpu=N] [--io=N] [--maxEntryProcs=N] [--mem=N] [--ncpu=N] [--save]
lvectl delete LVE_ID
lvectl list
lvectl ubc [enable] [disable] [default] [status]
lvectl help

lvectl apply will apply configuration from /etc/container/ve.cfg file, creating all LVEs specified in the fly. If LVE_ID is specified, only that ID will be updated with parameters from ve.cfg. If this LVE_ID is not explicitly specified in/etc/container/ve.cfg, the values for that LVE will be initialized to default values 

  • --cpu sets CPU limit relative to total number of cores on the server 
  • --ncpu sets max number of cores that can be used by particular LVE. The number of cores takes precedence over % of CPU 
  • --mem sets amount of memory available to LVE. The amount will be rounded up to number that is multiple to 4096 bytes. Use suffix b for bytes, m for megabytes, and g for gigabytes.

lvectl set will set values specified by cpu, io and maxEntryProcs options. If --save is specified, this values will be persisted in /etc/container/ve.cfg. You can specify default as LVE_ID, to update default values in /etc/container/ve.cfg

lvectl delete LVE_ID deletes definition of particular lve from /etc/container/ve.cfg

lvectl list lists all initialized LVEs (same as content of /proc/lve/list)

lvectl apply reloads default limits from ve.cfg, and applies them to all initialized LVEs

lvectl apply LVE_ID reloads limits for particular LVE id from ve.cfg, and applies them

lvectl apply all reloads all LVE settings from ve.cfg

lvectl ubc enable|disable|default enables/disables or resets to default value memory limits. Use --save to persist settings across reboots

lvectl ubc status gives current memory limits settings