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:
• • • IP address (server) IP address (server) IP address (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 localhost.localdomain 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 aptitude install sshfs build-essential flex bison byacc libdb4.6 libdb4.6-dev cd /tmpwget 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( = 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