[[PageOutline]] = Using GlusterFS in DRBL Environment = == 0.Introduction == [[BR]] == 1.Installation == * [http://www.gluster.org/docs/index.php/Install_GlusterFS_from_Source Installation Manual] * Install Requirements Packages {{{ $ aptitude install autotools libtool gcc flex bison byacc linux-headers-`uname -r` }}} * Install GlusterFS patched FUSE Module [http://ftp.zresearch.com/pub/gluster/glusterfs/fuse/ GlusterFS patched FUSE] {{{ $ wget http://ftp.zresearch.com/pub/gluster/glusterfs/fuse/fuse-2.7.3glfs10.tar.gz $ tar -zxvf fuse-2.7.3glfs10.tar.gz $ cd fuse-2.7.3glfs10 $ ./configure --prefix=/usr --enable-kernel-module $ make install $ ldconfig $ depmod -a $ rmmod fuse $ modprobe fuse $ vim /etc/modules fuse }}} * Install GlusterFS [http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/ GlusterFS 1.3] {{{ $ wget http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/glusterfs-1.3.11.tar.gz $ tar -xzf glusterfs-1.3.11.tar.gz $ cd glusterfs-1.3.11 $ ./configure --prefix= $ make install }}} [[BR]] == 2.FS design == * Cloud0 {{{ $ cat drbl_Cloud.vol ### Cloud Server ### volume brick1 type storage/posix option directory /home/b1 end-volume volume brick2 type storage/posix option directory /home/b2 end-volume volume server type protocol/server subvolumes brick1 brick2 option transport-type tcp/server # For TCP/IP transport option auth.ip.brick1.allow 192.168.1.* option auth.ip.brick2.allow 192.168.1.* end-volume ### Client ### ##Cloud## volume client1 type protocol/client option transport-type tcp/client option remote-host Cloud0 option remote-subvolume brick1 end-volume volume client2 type protocol/client option transport-type tcp/client option remote-host Cloud0 option remote-subvolume brick2 end-volume ##Cloud1## volume client3 type protocol/client option transport-type tcp/client option remote-host Cloud1 option remote-subvolume brick end-volume ##Cloud2## volume client4 type protocol/client option transport-type tcp/client option remote-host Cloud2 option remote-subvolume brick end-volume volume stripe0 type cluster/stripe option block-size *:1MB subvolumes client1 client2 client3 client4 end-volume }}} * Cloud1 ~ Cloud2 {{{ }}} [[BR]] == 3.Test == * [[Image(drbl_Cloud0.png)]] [[BR]] == 4.Refernece == [http://www.gluster.org/docs/index.php/GlusterFS GlusterFS]