Storage capacity and failure protection depend on how files are placed across servers. A GlusterFS volume type determines whether data is copied, erasure-coded, or distributed without redundancy, so the choice needs to match both the workload and the failures the storage must survive.
GlusterFS builds volumes from bricks in a trusted storage pool. A replica set holds full copies of each file; a disperse set holds data and parity fragments. Distribution spreads files across bricks or protection sets to add capacity, but does not increase the protection within a set.
The layout is easier to settle before client data arrives. Later changes can require data migration, and neither replication nor erasure coding replaces backups against accidental deletion or corruption. The available hosts, failure domains, and capacity budget therefore belong in the decision before volume creation.
Steps to choose a GlusterFS volume type:
- Map each planned brick to its host and rack.
Bricks in one replica or disperse set need separate hosts for host-failure protection. If a rack must be survivable, the placement must also keep a rack outage within that set's failure tolerance. Several bricks on one host are not independent failure domains.
- Choose a replicated volume when full copies and a small node count suit the workload.
Replica 3 stores three copies and provides about one third of raw brick capacity, before filesystem overhead. With the default automatic client quorum, two members form a majority after one member fails. Replica 2 uses about half of raw capacity, but network partitions can cause split-brain; two copies alone do not provide the same quorum protection.
- Choose an arbiter volume when two full copies need a third vote without a third full data copy.
Replica 2 arbiter 1 uses two data bricks and one metadata-only arbiter per set, with the arbiter listed third. The older syntax replica 3 arbiter 1 means the same layout. Usable file capacity is approximately one data brick per set; arbiter space and inode requirements grow with the file count. Its automatically enabled client quorum must remain enabled.
- Choose a dispersed volume when capacity efficiency outweighs the cost of erasure coding for the workload.
Large sequential writes are a better starting fit than frequent small overwrites. Writes smaller than the erasure-code stripe can require a read-modify-write cycle, adding latency; database or virtual-machine workloads need representative testing before this choice. The stripe size is 512 × (brick count − redundancy) bytes, and a power-of-two data-brick count generally avoids awkward alignment.
For six equal 4 TB bricks with redundancy 2, usable capacity is approximately (6 − 2) × 4 TB = 16 TB from 24 TB raw. Any two unavailable bricks in that set are tolerated; a third prevents access. Redundancy must be positive and less than half the set's brick count. Equal-size bricks avoid the smallest brick limiting the set.
- Use a plain distributed volume only when loss of a brick is acceptable or protection exists elsewhere.
Distribution alone has no GlusterFS redundancy. A failed brick makes its files unavailable and can mean data loss. RAID within one server does not preserve access when that entire server fails.
- Add distribution across complete protection sets when one set cannot provide enough capacity.
A distributed replicated volume needs a multiple of the replica-set size; a distributed dispersed volume needs a multiple of the disperse-set size. Consecutive bricks in the creation command form each set. Protection is per set, not a volume-wide allowance to lose that many arbitrary sets of bricks.
- Record the selected layout and ordered brick list before creating the volume.
A six-brick Distributed-Replicate layout with replica 3 contains two sets. Bricks 1–3 can be on node1, node2, and node3 under their first brick mount; bricks 4–6 can use a second brick mount on those same hosts in the same order. Each set still spans three hosts. Six equal 4 TB bricks then provide about 8 TB usable, before overhead. The record should include the volume name, type, replica or disperse count, redundancy when used, capacity estimate, and each brick's failure domain.
A wrong brick order can put several copies in one failure domain. An existing populated volume must not be deleted and recreated just to change its type; a migration needs its own backup and recovery plan.
- Create the volume using the recorded type and brick order.
Volume creation requires an existing trusted storage pool and prepared brick filesystems. The creation guide covers those prerequisites and the create/start commands.
Related: How to create a GlusterFS volume - Verify that the created volume matches the selected layout.
$ sudo gluster volume info gv_app Volume Name: gv_app Type: Distributed-Replicate Volume ID: 33f526f5-c6a4-423d-909a-a93c694eefb6 Status: Started Snapshot Count: 0 Number of Bricks: 2 x 3 = 6 Transport-type: tcp Bricks: Brick1: node1:/srv/gluster/brick1/gv_app Brick2: node2:/srv/gluster/brick1/gv_app Brick3: node3:/srv/gluster/brick1/gv_app Brick4: node1:/srv/gluster/brick2/gv_app Brick5: node2:/srv/gluster/brick2/gv_app Brick6: node3:/srv/gluster/brick2/gv_app ##### snipped #####
The sample volume is named gv_app. Here, Type: Distributed-Replicate and 2 x 3 = 6 confirm two three-brick replica sets. Bricks 1–3 and 4–6 each span the three hosts in the recorded plan. A different type, count, or order means the layout does not match that plan; Started alone does not prove redundancy or client access. An arbiter layout also marks each arbiter brick explicitly, while a dispersed layout reports its data-plus-redundancy grouping.
Related: How to check GlusterFS volume status