Instalar Dependencias
aptitude install sshfs build-essential flex bison byacc libdb4.6 libdb4.6-dev
Descargar, compilar e instlar Fuse
cd /tmp
wget ftp://ftp.zresearch.com/pub/gluster/glusterfs/fuse/fuse-2.7.4glfs11.tar.gz
tar -zxvf fuse-2.7.4glfs11.tar.gz
cd fuse-2.7.4glfs11
./configure
make && make install
wget ftp://ftp.zresearch.com/pub/gluster/glusterfs/fuse/fuse-2.7.4glfs11.tar.gz
tar -zxvf fuse-2.7.4glfs11.tar.gz
cd fuse-2.7.4glfs11
./configure
make && make install
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 : yes
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 (cliente)
vi /etc/glusterfs/glusterfs.vol
Ejemplo:
volume remote
type protocol/client
option transport-type tcp
option remote-host server1.example.com # can be IP or hostname
option remote-subvolume brick
end-volume
volume writebehind
type performance/write-behind
option window-size 4MB
subvolumes remote
end-volume
volume cache
type performance/io-cache
option cache-size 512MB
subvolumes writebehind
end-volume
glusterfs -f /etc/glusterfs/glusterfs.vol /mnt/glusterfs
o
mount -t glusterfs /etc/glusterfs/glusterfs.vol /mnt/glusterfs
mount
df -h
vi /etc/fstab
[...]
/etc/glusterfs/glusterfs.vol /mnt/glusterfs glusterfs defaults 0 0
init 6
No hay comentarios:
Publicar un comentario