GithubHelp home page GithubHelp logo

glusterfs's Introduction

glusterfs

Setup of glusterfs server with Ansible

  1. Setup 2 servers using virtualbox.

  2. Install openssh-server on 2 servers. Ssh once into the servers before proceeding to add it in the list of known hosts.

  3. Install ansible on client.

  4. Add in /etc/hosts of client 10.131.125.2 server1 10.131.125.4 server2

  5. Ansible uses an inventory file (basically, a list of servers) to communicate with your servers. Like a hosts file (at /etc/hosts) that matches IP addresses to domain names, an Ansible inventory file matches servers (IP addresses or domain names) to groups. Inventory files can do a lot more, but for now, we’ll just create a simple file with one server. Create a file at /etc/ansible/hosts (the default location for Ansible’s inventory file), and add one server to it:

    $ sudo mkdir /etc/ansible $ sudo touch /etc/ansible/hosts

  6. Edit /etc/ansible/hosts [web] server1 server2

  7. Try ping from ansible sudo ansible web -m ping -u vagrant --ask-pass

Should give success

-> Create yml files(playbooks): Playbook.yml - glusterfs initial setup Glus.yml:starting server and peer probing. Include var file computer_server.yml Computeserver.yml: list of servers and thier ip address Glus1.yml: volume creation computeserver.yml: has the ip addresses of the servers

Run the playbooks

Ansible playbook <abc.yml> -u vagrant --ask-pass

Should give success

glusterfs's People

Contributors

lilimapradhan9 avatar

Watchers

James Cloos avatar ayushi_sharma avatar

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.