Managing LVE via command line – lvectl

Here, in this topic, I’m going to explain the basic usages of “lvectl” command. lvectl is the primary tool for LVE management. To manage this tool you must have the root privilege to your server. lvectl is a part of lve-utils package.

We already discussed the basics of CloudLinux and its administrations. CloudLinux is a Linux based Operating system especially used in a shared environment which isolates each user in its own light weight virtualized environemnts (LVE) which consumes predefined amount of resources allocated for each user.

That is, each user will be in a caged environment. The resource usage of any user won’t affect the stability of another users.

Q. Managing memory limit for LVE?

Likewise, you can manage different LVE parameters using the options –ncpu=N, –io=N, –pmem=N etc..

Q. How to change default setting?

To change the default configuration, please use the following command:

# lvectl set default --speed=100% --pmem=256m

Q. How to reset all LVEs settings based on configuration in /etc/container/ve.cfg?

# lvectl apply all

Q. How to reset all LVE’s killing processes inside them?

# lvectl destroy all

Q. Quick command to list the LVE limits of a particular user (ID)?

Yeah, we already mention how to list the LVE limits of a particular user by using the list-user switch. It’s a simple way to list out the current LVE of a user. First you need to find out the ID of that user using id command.