Configuring GlusterFS
From GlusterDocumentation
Contents |
About Configuring GlusterFS
This chapter describes how to configure volumes using the glusterfs-volgen command on your server. These volume files are used by the client and the server.
FIXME: Fix link to installing GlusterFS on the server when that file is renamed
FIXME: QUESTION: Does the client configuration file change if you are using oVirt, CIFS, NFS, or WebDAV?)
Before configuration, install GlusterFS on the server. See Installing GlusterFS on the Server.
Also, before configuring volumes, you need to know about the hardware and business requirements of your storage cluster. For example:
- How many servers can you dedicate to storage?
- How much RAM to dedicate to caching?
- Do you have critical data that should be replicated?
If you are not sure of the answers, discuss these issues with your team before proceeding.
For the reference page of the glusterfs-volgen command, see glusterfs-volgen.
Common Volume Configurations
Configuring Distributed Volumes
To create a simple distributed volume on multiple servers, follow the --name argument with the name of the store and the name or IP address of each host. (There are eight servers in the following example.)
$ glusterfs-volgen --name store1 hostname001 hostname002 .. hostname008
Creating Replicated Volumes
To create distributed replicated volume of multiple servers:
- Follow the --name argument with the name of the store and the name or IP address of each host. (There are eight servers in the following example.)
- Enter raid 1 for replication.)
$ glusterfs-volgen --name repstore1 --raid 1 hostname001 .. hostname008
Creating Volumes over InfiniBand
To create a distributed volume over InfiniBand with 2GB client caching:
$ glusterfs-volgen --name ibstore1 --transport ib-verbs --cache-size 2GB hostname001 .. hostname008
To create a striped volume over InfiniBand:
$ glusterfs-volgen --name ibstripe1 --transport ib-verbs --raid 0 hostname001
.. hostname008
Checking the Configuration
FIXME: Any suggestions for if it doesn't work?
See if you can start the server by entering the following command. If successful, a start message is displayed.
bash# glusterfsd -f /etc/glusterfs/glusterfsd.vol bash# tail -f /var/log/glusterfs/glusterfsd.log .... .... .... [2009-05-29 17:43:49] N [glusterfsd.c:1152:main] glusterfs: Successfully started bash#
Next Steps
FIXME: Fix links to the following when the files are renamed
The next steps depend on your GlusterFS implementation:
- To install GlusterFS on the client, see Installing GlusterFS on the Client
- To install on a client that does not use FUSE, see Adding unfs3


