GlusterFS: Reading and setting volume options

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

GlusterFS: Reading and setting volume options

Post by peter_b »

Gluster offers several parameters per volume to be set/tuned.
The version we're currently working with is glusterfs v3.4.6 (Debian 7, RHEL 6.6).

A list of available options (at least vor v3.2) can be found in the Gluster.org community wiki: Gluster 3.2: Tuning Volume Options
More information is available in the wiki article "Documenting the undocumented".

1) Take a look at "/etc/glusterfs/glusterd.vol":
This file contains options that are partially automatically set during creation of a new gluster volume, and this is also the place where you enter your own options in order to be persistent (and documented).
See "James Coyle's "GlusterFS performance tuning" article for additional information about how to set options.

2) Gluster "volume info":

Code: Select all

$ gluster volume info $VOLUME_NAME
lists options that deviate from default values.
For example, I've set "cluster.min-free-disk" to 100 Gigabyte:

Code: Select all

$ gluster volume set dlp-storage cluster.min-free-disk 100GB
This shows up nicely in the listing of "volume info" as "Options Reconfigured":
Volume Name: dlp-storage
Type: Distribute
Volume ID: 70c0e2a9-xxxx-xxxx-xxxx-decc55621234
Status: Started
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: vm-gluster-1.bbX.dlp-storage.local:/mnt/dlp_raid_1/data
Brick2: vm-gluster-1.bbX.dlp-storage.local:/mnt/dlp_raid_2/data
Brick3: vm-gluster-1.bbX.dlp-storage.local:/mnt/dlp_raid_3/data
Options Reconfigured:
cluster.min-free-disk: 100GB
Post Reply