Instalar Dependencias
aptitude install sshfs build-essential flex bison byacc libdb4.6 libdb4.6-dev
Descargar, compilar e instlar GlusterFS
cd /tmp
wget http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.7.tar.gz
tar xvfz glusterfs-2.0.7.tar.gz
cd glusterfs-2.0.7
wget http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.7.tar.gz
tar xvfz glusterfs-2.0.7.tar.gz
cd glusterfs-2.0.7
Por defecto se instala en /usr/etc/glusterfs , vamos a modificar esto haciendo prefix='' en el archivo configure.
vim configure
server1:/tmp/glusterfs-2.0.7# ./configure
GlusterFS configure summary
===========================
FUSE client : no
Infiniband verbs : no
epoll IO multiplex : yes
Berkeley-DB : yes
libglusterfsclient : yes
mod_glusterfs : no ()
argp-standalone : no
Instalamos:
make && make install
ldconfig
glusterfs --version
ldconfig
glusterfs --version
Ejemplo de configuración de GlusterFS (server)
vi /etc/glusterfs/glusterfsd.vol
Ejemplo:
volume posix
type storage/posix
option directory /data/export
end-volume
volume locks
type features/locks
option mandatory-locks on
subvolumes posix
end-volume
volume brick
type performance/io-threads
option thread-count 8
subvolumes locks
end-volume
volume server
type protocol/server
option transport-type tcp
option auth.addr.brick.allow 192.168.0.101 # Edit and add list of allowed clients comma separated IP addrs(names) here
subvolumes brick
end-volume
update-rc.d glusterfsd defaults
/etc/init.d/glusterfsd start
No hay comentarios:
Publicar un comentario