Coder Social home page Coder Social logo

glusterfs-cluster-with-loop-devices's Introduction

GlusterFS Replicaion on Loop Devices with Ansible

When it comes to create GlusterFS Replication, it can be hard and time consuming. Also adding loop devices to this picture makes things harder.
For that reason, I created Ansible playbook which creates and configure GlusterFS on Loop devices with basic configuration.

What does it do ?

This Ansible playbook,

  • Install necessary packages
  • Create image files with size defined in playbook
  • Create loop devices with image files
  • Create mount directories
  • Create GlusterFW Replication
  • Mount

Requirements

For able to use this Playbook,

  • Your servers/hosts should be Ansible ready
  • Ansible user should be able to become
  • Servers/hosts can communicate each other. (For FW restrictions look at this)

Usage

For create GlusterFS Replication,

  • Define your servers/hosts in the hosts file under glusterfs_servers group
  • Define the size of the disk in install.yml file which will be created as loop device
  • Run playbook with the command below
ansible-playbook -i hosts install.yml

After successful install, directory /my-gluster-disk will be mounted on all servers/hosts. This directory is the GlusterFS Replicated directory. You can user this path to store your files and folders.

Uninstall

For removing GlusterFS Replication run the command below

ansible-playbook -i hosts uninstall.yml

Advanced configuration

For advanced configuration, you can change the file roles/gluster-loop-cluster/defaults/main.yml for your needs.

glusterfs-cluster-with-loop-devices's People

Contributors

aytuncbeken avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

standadhd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.