Linux glusterfs

Solo disponible en BuenasTareas
  • Páginas : 3 (702 palabras )
  • Descarga(s) : 0
  • Publicado : 30 de diciembre de 2010
Leer documento completo
Vista previa del texto
1. In this tutorial I use three systems, two servers and a client:
• • •

storage1.debian.com: IP address 192.168.0.1 (server) storage2.debian.com: IP address 192.168.0.2 (server)client1.debian.com: IP address 192.168.0.3 (client)

All five systems should be able to resolve the other systems' hostnames. If this cannot be done through DNS, you should edit the /etc/hosts file so that itlooks as follows on all five systems: gedit /etc/hosts
127.0.0.1 192.168.0.1 192.168.0.2 192.168.0.3 localhost.localdomain storage1.debian.com storage2.debian.com client1.debian.com localhost storage1storage2 client1

# The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2ip6-allrouters ff02::3 ip6-allhosts

2. Setting Up The GlusterFS Servers
storage1.debian.com/storage2.debian.com: aptitude install sshfs build-essential flex bison byacc libdb4.6 libdb4.6-dev cd /tmpwget http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.9.tar.gz tar xvfz glusterfs-2.0.9.tar.gz cd glusterfs-2.0.9 ./configure --prefix=/usr > /dev/null make && make installldconfig

The command glusterfs --version should now show the GlusterFS version that you've just compiled

Next we create a few directories: mkdir /data/ mkdir /data/export mkdir /data/export-ns mkdir/etc/glusterfs Now we create the GlusterFS server configuration file /etc/glusterfs/glusterfsd.vol which defines which directory will be exported (/data/export) and what client is allowed to connect(192.168.0.3 = client1.debian.com): gedit /etc/glusterfs/glusterfsd.vol
volume posix type storage/posix option directory /data/export end-volume volume locks type features/locks subvolumes posixend-volume volume brick type performance/io-threads option thread-count 8 subvolumes locks end-volume volume server type protocol/server option transport-type tcp/server option auth.addr.brick.allow...
tracking img