Skip to content

Instantly share code, notes, and snippets.

@enakai00
Created November 16, 2013 02:43
Show Gist options
  • Save enakai00/7495229 to your computer and use it in GitHub Desktop.
Save enakai00/7495229 to your computer and use it in GitHub Desktop.
Prepare Fedora GlusterFS nodes with tmpfs brick
#!/bin/bash -x
setenforce 0
curl http://download.gluster.org/pub/gluster/glusterfs/LATEST/Fedora/glusterfs-fedora.repo > /etc/yum.repos.d/gluster.repo
yum -y install glusterfs-server glusterfs-geo-replication
chkconfig glusterd on
service glusterd start
chkconfig iptables off
service iptables stop
mkdir -p /bricks/tmpfs
umount /bricks/tmpfs
mount -t tmpfs tmpfs -o size=3m /bricks/tmpfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment