From ArchWiki
Jump to: navigation, search

Related articles

Glusterfs is a scalable network filesystem.


Install the package glusterfs.


Glusterfs can be setup to run in many different configurations depending operating needs, including distributed 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 glusterd.service on both servers.
  • Connect the servers
 # 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 by appending /etc/fstab to include the following line, where /dev/sdXY is the appropriate device (e.g., /dev/sdb1).
/dev/sdXY /export/sdXY xfs defaults 0 0
  • On both servers mount the drives. Then create a "brick":
 # mkdir -p /export/sdXY/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