Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

How to connect to GlusterFS from a client machine

Neerav Mehta

Founder & CEO

If you still haven't installed GlusterFS server, then read the article on installing and configuring GlusterFS server.

You can connect to GlusterFS server using multiple clients: GlusterFS native client, NFS or CISF. In this article, we'll show you how to install GlusterFS native client 3.5.2 on Ubuntu 12.04 and then how to connect to the GlusterFS server using it.

Here are the steps to connect to the server from a client:

  1. Add the GlusterFS PPA.

sudo add-apt-repository ppa:gluster/glusterfs-3.5
sudo apt-get update
  1. Install GlusterFS client library.

sudo apt-get install glusterfs-client
  1. Create a directory on the client machine where you would want to mount GlusterFS in future. In our case, we used /data.

sudo mkdir /data
  1. Mount the GlusterFS volume over /data directory. You will need to provide hostname of one of the GlusterFS servers. For demonstration, we are using server1.redcrackle.com. Please change it with your GlusterFS server's hostname. Similarly replace files-volume in the command below by your GlusterFS volume name.

sudo mount -t glusterfs server1.redcrackle.com:/files-volume /data
  1. Make sure that GlusterFS volume has been mounted. Replace /data in the following command by the directory where you mounted GlusterFS. Output of this command shouldn't be blank.

df -h | grep "/data"
  1. If the above command was successful, that means you should be able to create files on GlusterFS from your client machine. Go to /data and create a new file. Then go to each GlusterFS server and make sure that it is present on all of them (if you have set up GlusterFS in replication mode) or in at least one of the servers (if you have set up GlusterFS in distributed mode).
Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.