Ubuntu glusterfs Configuration Debugging

Source: Internet
Author: User
Tags glusterfs gluster

Xfsprogs

Official documentation Quick Configuration steps

Installing GlusterFS-a Quick Start guidepurpose of ThisDocumentthis Document isIntended to give, step by step guide, setting up GlusterFS forThe first time. For ThisTutorial, we'll assume you isusingFedora +(or later)VirtualMachines (Other distributions and methods can be foundinchTheNewUser Guide, below. We Also DoNot explain the stepsinchDetail here, ThisGuide isJust to helpGetIt up and running asSoon asPossible. After your deploy GlusterFS by following these steps, we recommend so you read the GlusterFS Admin Guide to learn Administer GlusterFS and how toSelectA volume type that fits your needs. Read the GlusterFS New User Guide forA more detailed explanation of the steps we took here. We want you are successfulinch  as  ShortA time aspossible. If you would as a more detailed walk through with instructions forInstallingusingDifferent Methods (inchLocalVirtualmachines, EC2 and baremetal) and different distributions, then has a look at the Install guide. Automatically deploying GlusterFS with Puppet-gluster+vagrantif'd like to deploy GlusterFS automatically using Puppet-gluster+vagrant, with a look at this article.Step1–have at least-nodes Fedora -On nodes named"Server1"and"Server2"A Working Network connection at leastVirtualDisks, one forThe OS installation, and one to is used to serve GlusterFS storage (SDB). This would emulate a real world deployment,whereWould want to separate GlusterFS storage fromThe OS install. Note:glusterfs stores its dynamically generated configuration files at/var/lib/glusterd. If at any pointinchTime GlusterFS isUnable to write to these files ( forExample, when the backing filesystem isFull), it'll at minimum cause erratic behavior foryour system; Or worse, take your system offline completely. It isadvisable to create separate partitions forDirectories such as/var/log to ensure Thisdoes not happen. Step2-Format and mount the bricks (on both nodes): Note:these Examples is going to assume the brick isGoing to reside on/dev/SDB1. MKFS.XFS-I. size= +/dev/sdb1 mkdir-p/data/Brick1 Echo'/dev/sdb1/data/brick1 XFS defaults 1 2'>>/etc/Fstab Mount-A &&Mountyou should now see SDB1 mounted at/data/Brick1step3-installing GlusterFS (on both servers) install the software yum install GlusterFS-ServerStart the GlusterFS management daemon:service glusterd start service glusterd status Glusterd.service -lsb:glusterfs Server loaded:loaded (/etc/rc.d/init.d/glusterd) Active:active (running) since Mon, -The -  -: Geneva: One-0700; 2s ago Process:19254Execstart=/etc/rc.d/init.d/glusterd Start (code=exited, status=0/SUCCESS) Cgroup:name=systemd:/system/Glusterd.service├19260/usr/sbin/glusterd-p/run/Glusterd.pid├19304/USR/SBIN/GLUSTERFSD--xlator-option georep-server.listen-port=24009-S-localhost ... └19309/usr/sbin/glusterfs-f/var/lib/glusterd/nfs/nfs-server.vol-p/var/lib/glusterd/... Step4-Configure the trusted poolfrom"Server1"Gluster peer probe Server2note:whenusingHostnames, the first server needs to be probed fromOne other server toSetits hostname. from"Server2"Gluster peer probe Server1note:once ThisPool have been established, only trusted members may probeNewServers into the pool. ANewServer cannot probe the pool, it must be probed fromThe pool. Step5-Set up a GlusterFS Volumeon both Server1 and Server2:mkdir/data/brick1/Gv0from Any single server:gluster volume create Gv0 replica2Server1:/data/brick1/gv0 server2:/data/brick1/gv0 gluster Volume start gv0confirm that the volume shows"Started": Gluster Volume infonote:if the volume isNot started, clues asTo what went wrong would beinchLog files under/var/log/glusterfs on one or both of the servers-usuallyinchetc-glusterfs-Glusterd.vol.logStep6-testing the GlusterFS volumefor ThisStep, we'll use one of the servers to mount the volume. Typically, you would Do  This  fromAn external machine, known asA"Client". Sinceusing  ThisMethod would require additional packages to being installed on the client machine, we'll use one of the servers asA simple place to test first, as ifIt were that"Client". Mount-T Glusterfs server1:/gv0/mnt forIinch' Seq-w1  -`; DoCP-RP/var/log/messages/mnt/copy-test-$i; Donefirst, check the Mount Point:ls-la/mnt | WC-Lyou should see -files returned. Next, check the GlusterFS mount points on each server:ls-la/data/brick1/Gv0you should see -Files on each serverusingThe method we listed here. Without replication,inchA distribute only volume (not detailed here), and you should see about -Files on each one . Terminologies you should is familiar with.

Ubuntu glusterfs Configuration Debugging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.