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
  • Select an option

  • Save abeyt/c13adcc977d0361165f3 to your computer and use it in GitHub Desktop.

Select an option

Save abeyt/c13adcc977d0361165f3 to your computer and use it in GitHub Desktop.

Revisions

  1. @enakai00 enakai00 created this gist Nov 16, 2013.
    11 changes: 11 additions & 0 deletions prepare tmpfs bricks
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/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