GlusterFS
From Gentoo Linux Wiki
GlusterFS is a cluster file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is based on a stackable user space design without compromising performance. For a list of features, see GlusterFS Features.
Contents |
[edit] Installation
[edit] Fuse Support (prerequisites)
Filesystems in Userspace (aka FUSE) is required in order to use GlusterFS. Gluster also provides a patch for FUSE to provide the following benefits over the current stock release.
- It supports higher IO buffer size, which gives increased IO performance.
- It provides flock() syscall, which provides you with advisory locks functionality. This is not present in regular fuse tarball.
- Supports O_DIRECT flag handling in open() calls
GlusterFS works with fuse version 2.6.0 and above. If you are using kernel <2.6.25 you can use fuse from within your kernel or portage. (As of Dec-08, Gluster recommends that the patched version of FUSE be used for kernels newer than 2.6.25.) However it is recommended that you install/use the patched version as described from here on.
- First you need to ensure that FUSE_FS(Filesystem in Userspace support) is disabled in your kernel.
- Then remove fuse if its installed via portage
- Download patched FUSE from either of the following:
- Run the following as root:
[edit] Installing Gluster
Just unmask (if nessesary) and emerge glusterfs:
[edit] Creating a configuration File
To keep from reinventing the wheel here is a good page to help setup a working configuration file. http://gluster.org/docs/index.php/GlusterFS
[edit] Mounting your GlusterFS
GlusterFS shares can be mounted with ease ...
- Mount glusterFS Storage
/usr/sbin/glusterfs --volfile=/etc/glusterfs/glusterfs.vol /mnt/glusterfs
will mount the GlusterFS volume to /mnt/glusterfs
I had trouble launching XEN VMs when stored on a GlusterFS volume, what fixed it for me was to add --disable-direct-io-mode to the command above, so now I am using, /usr/sbin/glusterfs --disable-direct-io-mode --volfile=/etc/glusterfs/glusterfs.vol /mnt/glusterfs
[edit] Adding a GlusterFS brick in fstab
See Mounting a GlusterFS Volume of the official documentation.
