Configuring multiple similar machines

It may happen that you want to run storpool_cg with the same command line arguments on multiple machines. The easiest way to do this is to set the corresponding parameters in the configuration file of storpool_cg, as described in Configuration options and parameters. Here is an example:

[cgtool]
CONVERGED=1

MGMT=0
SERVERS=2

SET_CACHE_SIZE=0
SYSTEM_LIMIT=4G
USER_LIMIT=4G
KERNEL_MEM=2G

IFACE_ACC=1

CORES=4

Having these parameters in a file called example.conf, you can simply run storpool_cg by telling it about the file:

storpool_cg conf --noop --configfile example.conf

This is equivalent to setting the parameters on the command line, like this:

storpool_cg conf --noop converged=1 mgmt=0 servers=2 set_cache_size=0 system_limit=4G user_limit=4G kernel_mem=2G iface_acc=true cores=4

You can copy the configuration file to all machines where you need to configure cgroups, and then run storpool_cg on them with the -C option as described in Loading configuration from a file.