Execution guide

From GlusterDocumentation

This information is out of date
and does not contain information related to the current version of Gluster

Documentation Home


See it running

After installation is complete, it is simple to get the GlusterFS working.

We need to have a server-volfile in the server (atleast one server) and export a directory from it using glusterfs command (example syntax given below the example volfile). We also need to have a client-volfile in the client (atleast one client - client and server could be the same machine) and mount the exported (from server) directory on to a directory on client, using glusterfs command.

In the basic example given below, there are two machines, '192.168.0.1' and '192.168.0.2'. 192.168.0.1 is the server and 192.168.0.2 is the client. Change IPs according to your setup requirements if needed. One can even use 'localhost' as the server/client.

Server machine: [192.168.0.1]

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# 

Client machine: [192.168.0.2]

bash# modprobe fuse
bash# mount -t glusterfs storage1 /mnt/glusterfs
bash# mount
....
glusterfs#storage1 on /mnt/glusterfs type fuse.glusterfs (rw,allow_other,default_permissions,max_read=131072)
bash# df
....
....
glusterfs#storage1  140T  11T  123T   9% /mnt/glusterfs
bash# 

Next step to check, is to create some directories/files in the mounted directory - /mnt/glusterfs. The created directories/files should be seen in the server(192.168.0.1) in the exported directories.

Also check the log-file /var/log/glusterfs/glusterfs.log(default) on both server and client to see the messages logged by GlusterFS.

This information is out of date
and does not contain information related to the current version of Gluster

Documentation Home

 

Copyright © Gluster, Inc. All Rights Reserved.