Professional Documents
Culture Documents
This is the manual process for creating self contained GlusterFS storage on ECP Nodes:
mkdir /glusterfs
On the primary node run the following to create the configuration files:
cd /root
mkdir gluster-config
cd gluster-config
glusterfs-volgen -n images cc1:/glusterfs cc2:/glusterfs cc3:/glusterfs cc4:/glusterfs
NOTE: You must substitute the hostnames in the example with valid hostnames or IP addresses
NOTE: You can enable Raid functionality on glusterfs by adding -r1 before the -n images. Raid capability
is only possible with an even number of storage locations (ie. 2/4/6/8/10).
After generating the configuration files, they must be copied to the appropriate hosts live configuration
directory:
Modify the startup commands to include glusterfs storage daemon on each host:
chkconfig glusterfsd on
Modify the rc.local on each host to ensure glusterfs is mounting the images directory:
Modify the IPTables firewall rules to include an exception for the glusterfsd daemon process:
At this point you will want to reboot the host machines and verify that /var/lib/xen/images is indeed
working properly across all nodes. It should show the aggregate storage of all the free space found in
/glusterfs on all hosts. If storage is verified proceed to replace FUSE.
The default FUSE module will not work properly with KVM sparse image files. If you are running RAW
images only, this step can be skipped:
killall glusterfs
# Remove the fuse kernel module
rmmod fuse
yum install -y make gcc gcc-c++ sshfs build-essential flex bison byacc vim wget kernel-xen-devel fuse
dkms dkms-fuse openib libibverbs iftop kernel-devel
wget http://ftp.gluster.com/pub/gluster/glusterfs/fuse/fuse-2.7.4glfs11.tar.gz
cd fuse-2.7.4glfs11
ln -s /usr/src/kernels/2.6.18-194.*.el5-x86_64 /usr/src/linux
# Reboot hosts.
If you are running your cluster in HA mode and you are experiencing issues with cloning: