background preloader

Deployment & Quickstart

Facebook Twitter

Mount a GlusterFS volume. Setup Glusterfs with a replicated volume over 2 nodes. This post will show you how to install GlusterFS in Ubuntu/ Debian however the steps will be similar with Red Hat based linux operating systems with minor changes to the commands. Gluster File System is a distributed files system allowing you to create a single volume of storage which spans multiple disks, multiple machines and even multiple data centres.

Before we get started, install the required packages using apt-get. With Red Hat/ Cent based operating systems you will need to use yum, or download the package directly from Perform this on both of your servers. If you have more than two servers, perform this command on all of the servers required for the volume. You will now need each of these servers to know about the others. Run gluster peer probe and the ip address of all the other servers in your GlusterFS cluster. Each of the commands should return with Probe successful which means the node is now known to this machine. Add launchpad PPA repository to Ubuntu. Most Linux based systems use a software repository which is either local (a CD-ROM) or remote (a web address) to install new software and manage software updates to already installed software.

For Ubuntu/ Debian based Linux distributions apt-get is used to interact with these software repositories, for Red Hat/ CentOS its yum. With a default Linux installation a suite of repositories are installed to manage the core operating system and install additional applications. As these repositories are critical to the Linux distribution it is difficult for software developers to get their software included in them because they have to be verified for stability and security. This means that the repositories are often behind the official release schedule of 3rd party software or don’t include the software at all. In older versions of Linux support may have been dropped altogether in favour of maintaining the newer versions of the distribution. It’s here where Launchpad comes in. Glusterfs example: SpecialInterestGroup/Storage/gluster-Quickstart.

Purpose This document is intended to give you a step by step guide to setting up GlusterFS for the first time. For this tutorial, we will assume you are using CentOS (other distributions and methods can be found in the new user guide, below). We also do not explain the steps in detail here, this guide is just to help you get it up and running as soon as possible. After you deploy GlusterFS by following these steps, we recommend that you read the GlusterFS Admin Guide to learn how to administer GlusterFS and how to select a volume type that fits your needs. Read the GlusterFS New User Guide for a more detailed explanation of the steps we took here.

We want you to be successful in as short a time as possible. If you would like a more detailed walk through with instructions for installing using different methods (in local virtual machines, EC2 and baremetal) and different distributions, then have a look at the [[Getting_started_overview| Getting Started]] with GlusterFS guide. From "server1" Quick Start Guide — Gluster.

Getting started rrqsg - GlusterDocumentation. Overview Common Criteria Really, Really Quick Start Guide Setup - Virtual Machines Setup - AWS Install Configure Wrap Up Really Really Quick Start Guide Here are the bare minimum steps you need to get Gluster up and running. You will need to have at least two nodes with a 64 bit OS and a working network connection.

Partition, Format and mount the bricks Assuming you have a brick at /dev/sdb: fdisk /dev/sdb and create a single partition Format the partition mkfs.xfs -i size=512 /dev/sdb1 Mount the partition as a Gluster "brick" mkdir -p /export/sdb1 && mount /dev/sdb1 /export/sdb1 && mkdir -p /export/sdb1/brick Add an entry to /etc/fstab echo "/dev/sdb1 /export/sdb1 xfs defaults 0 0" >> /etc/fstab Install Gluster packages on both nodes rpm -Uvh Note: This example assumes Fedora 16 Run the gluster peer probe command gluster peer probe <ip or hostname of second host> QuickStart - GlusterDocumentation. Purpose This document is intended to give you a step by step guide to setting up GlusterFS for the first time. For this tutorial, we will assume you are using Fedora 20 virtual machines (other distributions and methods can be found in the new user guide, below.

We also do not explain the steps in detail here, this guide is just to help you get it up and running as soon as possible. After you deploy GlusterFS by following these steps, we recommend that you read the GlusterFS Admin Guide to learn how to administer GlusterFS and how to select a volume type that fits your needs. If you would like a more detailed walk through with instructions for installing using different methods (in local virtual machines, EC2 and baremetal) and different distributions, then have a look at the Getting Started with GlusterFS guide. Automatically Deploying GlusterFS with Puppet-Gluster+Vagrant If you'd like to deploy GlusterFS automatically using Puppet-Gluster+Vagrant, have a look at this article. getenforce. High-Availability Storage With GlusterFS 3.2.x On CentOS 6.3 - Automatic File Replication (Mirror) Across Two Storage Servers. Version 1.0 Author: Falko Timme Follow me on Twitter Last edited 12/17/2012 This tutorial shows how to set up a high-availability storage with two storage servers (CentOS 6.3) that use GlusterFS.

Each storage server will be a mirror of the other storage server, and files will be replicated automatically across both storage servers. The client system (CentOS 6.3 as well) will be able to access the storage as if it was a local filesystem. GlusterFS is a clustered file-system capable of scaling to several peta-bytes. I do not issue any guarantee that this will work for you! 1 Preliminary Note In this tutorial I use three systems, two servers and a client: server1.example.com: IP address 192.168.0.100 (server) server2.example.com: IP address 192.168.0.101 (server) client1.example.com: IP address 192.168.0.102 (client) All three systems should be able to resolve the other systems' hostnames. Vi /etc/hosts (It is also possible to use IP addresses instead of hostnames in the following setup.

Mount.