GithubHelp home page GithubHelp logo

rozofsbox_multi's Introduction

Getting started with RozoFS and Vagrant

This Vagrant file describes the deployment of four virtual machines on which is set a full installation of RozoFS to play with.

Presentation

RozoFS - distributed file system

RozoFS is an I/O centric distributed file system that deals with data reliability. It is meant to protect data and services upon failures. This protection is done by the Mojette erasure code. RozoFS is based on three components:

  • exportd: the metadata manager;

  • storaged: the data store;

  • rozofsmount: this program relies on FUSE to mount the file system.

Vagrant - deploy virtual environments

Vagrant is an open source software to "create and configure lightweight, reproducible and portable development environments". It relies on boxes (available at VagrantCloud) that can be shared and used by anyone who wants to launch the same virtual environment, based on industry-standard technology. Essentially, given a small document in Ruby called a Vagrantfile that describes the configuration of a set of VMs, Vagrant will download, configure and run these VMs in VirtualBox or other software.

What does it do ?

Deploy RozoFS over 4 VMs

The Vagrantfile here describes how the 4 VMs - based on an Ubuntu 14.04 box that contains the software RozoFS - are deployed. Two types of nodes are deployed: one MetaData Server (MDS) that runs exportd, storaged and rozofsmount (optional), and three Mojette Projection Storage Servers (MPSS) which run storaged and rozofsmount (optional).

Here is the architecture of the virtual environment:

+-------------------------------------------------------------------------------+
| +---------------+   +---------------+   +---------------+   +---------------+ |
| |      MDS      |   |     MPSS1     |   |     MPSS2     |   |     MPSS3     | |
| |               |   |               |   |               |   |               | |
| |  exportd      |   |               |   |               |   |               | |
| |  storaged     |   |  storaged     |   |  storaged     |   |  storaged     | |
| |  rozofsmount  |   |  rozofsmount  |   |  rozofsmount  |   |  rozofsmount  | |
| +---------------+   +---------------+   +---------------+   +---------------+ |
|  192.168.100.10      192.168.100.11      192.168.100.12      192.168.100.13   |
+-------------------------------------------------------------------------------+

Setup

Requirements

The followings are needed:

Using

The deployment has been tested with Vagrant 1.6.3, VirtualBox 4.3.14, on Ubuntu 13.10 (Linux 3.11). It is very simple:

$ git clone http://github.com/denaitre/rozofsbox_multi
$ cd rozofsbox_multi
$ vagrant up
$ # ???            this part might take a long time...
$ # profit !

Tadaaaam!

Play with it

Check the state of RozoFS

RozoFS is mounted on each VM you can access by ssh. For example:

$ vagrant ssh mds
vagrant@mds:~$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda1       41251136  1287080  38228144   4% /
none                   4        0         4   0% /sys/fs/cgroup
udev              249996       12    249984   1% /dev
tmpfs              50724      376     50348   1% /run
none                5120        4      5116   1% /run/lock
none              253612        0    253612   0% /run/shm
none              102400        0    102400   0% /run/user
vagrant         67154552 62232620   4921932  93% /vagrant
rozofs         106570960        0 106570960   0% /mnt/[email protected]/export_1

If RozoFS is installed on your host machine, it is also possible to mount the file system on your host machine :) Please check before that the versions of RozoFS are the same on your machine and on your VMs.

$ rozo --version
$ (sudo) mkdir /mnt/rozofs/
$ (sudo) rozofsmount /mnt/rozofs/ -H 192.168.100.10 -E /srv/rozofs/exports/export_1

rozofsbox_multi's People

Contributors

dpertin avatar

Stargazers

Matt Gleeson avatar Antoine Précigout avatar

Watchers

 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.