wiki:GlusterFS_Installation

Version 2 (modified by rock, 16 years ago) (diff)

--

Using GlusterFS in DRBL Environment

0.Introduction


1.Installation

  • Installation Manual
  • Install Requirements Packages
    $ aptitude install autotools libtool gcc flex bison byacc linux-headers-`uname -r`
    
  • Install GlusterFS patched FUSE Module 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 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 
    


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


3.Test


4.Refernece

GlusterFS

Attachments (3)

Download all attachments as: .zip