Mounting a GlusterFS Volume

From GlusterDocumentation

Jump to: navigation, search

Contents

Introduction

To use the volume spec file provided by a GlusterFS server (glusterfsd), you can use the IP address of any one of the servers in your storage cluster, provided you have copied the client volume spec file on all the clients.

The name and path to the client volume spec file is configured by option client-volume-filename /etc/glusterfs/glusterfs-client.vol under protocol/server volume in the server volume spec file.

Here are some various ways you can mount a GlusterFS volume.

Using server supplied spec file

Mount using server supplied client volume spec file:

$ glusterfs -s 192.168.0.1 /mnt/glusterfs

Using client supplied spec file

Mount using local client volume spec file:

$ glusterfs -f /etc/glusterfs/glusterfs-client.vol /mnt/glusterfs

Using fstab and server supplied spec file

Mount using an entry in /etc/fstab to mount automatically every time on boot with a server supplied client volume spec file:

192.168.0.1  /mnt/glusterfs  glusterfs  defaults  0  0

Using fstab and client supplied spec file

Mount using an entry in /etc/fstab to mount automatically every time on boot with a local client volume spec file:

/etc/glusterfs/glusterfs-client.vol  /mnt/glusterfs  glusterfs  defaults  0  0
Personal tools