From ArchWiki
Revision as of 13:07, 24 February 2017 by Redmattski (talk | contribs) (Created the Glusterfs page as one was not available)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Glusterfs is a scalable network filesystem


Install the package glusterfs from the official repository.

Filesystem Configuration

Glusterfs can be setup to run in many different configurations depending operating needs, including disdtributed and replicated. For the example below, a two node replicated server is being created, with nodes gluster1 and gluster2 each have two disks, one containing the OS sda, the other to be shared by glusterfs sdb. Unless stated all setup is carried on gluster1

  • Start & enable the gluster daemon on both servers
 # systemctl start glusterd
 # systemctl enable glusterd
  • Connect the servers
 # sudo gluster peer probe gluster2
  • Partition and format the glusterfs drive on both servers
    • The upstream advises creating a single partition and formatting this as xfs
  • On both servers automount the drives
 # echo "/dev/sdb1 /export/sdb1 xfs defaults 0 0"  >> /etc/fstab
  • On both servers mount drives and create a "brick"
 # mkdir -p /export/sdb1 && mount -a && mkdir -p /export/sdb1/brick
  • Enable replication on primary server
 # gluster volume create gv0 replica 2
  • Ensure volume is created correctly
 # gluster volume info
  • Start volume
 # gluster volume start gv0

See also