Skip to content

Instantly share code, notes, and snippets.

@abeyt
Forked from enakai00/prepare tmpfs bricks
Created January 22, 2016 17:24
Show Gist options
  • Save abeyt/c13adcc977d0361165f3 to your computer and use it in GitHub Desktop.
Save abeyt/c13adcc977d0361165f3 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