此内容没有您所选择的语言版本。

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

  1. Create a new file in the /var/lib/glusterd/groups/ directory.
    # touch /var/lib/glusterd/groups/filenametouch /var/lib/glusterd/groups/filename
    Copy to Clipboard Toggle word wrap
  2. 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
    Copy to Clipboard Toggle word wrap
    For example,
    changelog.changelog=on
    client.event-threads=6
    cluster.brick-multiplex=on
    Copy to Clipboard Toggle word wrap

Adding configurations to volumes

Run the following command to apply the configurations in the group file to specific volumes:
# gluster volume set volname group filenamegluster volume set volname group filenamegluster volume set volname group filenamegluster volume set volname group filename
Copy to Clipboard Toggle word wrap
For example,
# gluster volume set volume1 group virt
# gluster volume set volume2 group virt
# gluster volume set volume3 group dbgroup
Copy to Clipboard Toggle word wrap

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.
For information on deactivating group configuration, see Section 21.5, “Deactivating a group configuration”
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat