Show Table of Contents
11.2. Setting Multiple Volume Option
A group configuration file is a file used to define and customize volume options. There are some predefined group configuration files for specific workload patterns like negative lookup cache, virtualization, metadata cache and gluster-block.
The parameters defined in the file can then be applied to a volume as a group, rather than setting one parameter at a time.
Creating a group configuration file
- Create a new file in the
/var/lib/glusterd/groups/directory.#
touch /var/lib/glusterd/groups/filename - Add the parameters and values that you want to set on the volume to the created file as key-value pairs, placing each parameter on a new line:
domain1.key1=value1 domain1.key2=value2 domain2.key3=value3
For example,changelog.changelog=on client.event-threads=6 cluster.brick-multiplex=on
Adding configurations to volumes
Run the following command to apply the configurations in the group file to specific volumes:
# gluster volume set volname group filename
For example,
# gluster volume set volume1 group virt # gluster volume set volume2 group virt # gluster volume set volume3 group dbgroup
Note
The configuration file created should be placed in all the hosts of the trusted storage pool under /var/lib/glusterd/groups/. This can be achieved with the help of gdeploy configuration file.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.