File replication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your suggestion.  The setup works as described.  This brought
two more questions:
 
1. Is it possible to run the gclusterfs client not as a root user?  I
see in tcp-client.c that it's trying to open a priviledged port, which
means that it requires root rights, but I didn't find in docs a
statement that it has to run as root.
 
2. Is it possible to have a setup where on N participating hosts (named
one, two, three in the example below) would have their local directory
(/local/data) available to all glusterfs clients (as
/mnt/data/{one,two,three}) so that by default no data would be copied
from host to host:
 
Host   LocalResource  SharedResource
one    /local/data    /mnt/data/one
two    /local/data    /mnt/data/two
three  /local/data    /mnt/data/three
 
In this setup if I am on the host 'one' and do:
 
$ cd /mnt/data
$ grep "Test" /mnt/data/*/test.txt
 
that this would actually go to corresponding hosts, fetch the local file
/local/data/test.txt and send it to the host executing the grep command,
so that it can be processed there.
 
This setup could be described as a mount of Host:/local/data to
/mnt/data/Host.
 
Is this setup achievable through glusterfs?
 
________________________________

From: basavanagowda at gmail.com [mailto:basavanagowda at gmail.com] On Behalf
Of Basavanagowda Kanur
Sent: Tuesday, November 11, 2008 2:49 AM
To: Aleynikov, Serge
Cc: gluster-users at gluster.org
Subject: Re: File replication



	Aleynikov,
	
	Find replies inline.
	
	
	On Tue, Nov 11, 2008 at 4:06 AM, Aleynikov, Serge
<Serge.Aleynikov at gs.com> wrote:
	

		Hi, 

		I am new to this list, and would like to find out if
GlusterFS can serve the following need. 

		I have N servers running services that log to local disk
and I need the content of these local logs to be replicated in
"close-to-real-time" to some central storage to be accessible by other
tools.

		Can I use GlusterFS for this purpose?  If so, could you
point me to a sample configuration setup? 

	Yes, you can use.
	
	Run glusterfs server on central storage node. with the following
spec file
	
	volume storage
	    type storage/posix
	    option directory <export-directory>
	end-volume
	
	volume server
	    type protocol/server
	    option transport-type <tcp-or-ibverbs>
	    option auth.addr.storage.allow <ipaddress-or-username>
	    subvolumes storage
	end-volume
	
	On the machines where your log files are updated, mount
glusterfs using the following spec:
	
	volume client
	    type protoco/client
	    option remote-host <ipaddress>
	    option remote-subvolume storage
	end-volume
	
	volume local-storage
	     type  storage/posix
	     option directory <local-directory>
	end-volume
	
	volume afr
	     type cluster/afr
	     subvolumes local-storage client
	end-volume
	
	And point your logging process to log on mounted directory.
	
	

		

		Thanks. 

		Serge 


		_______________________________________________
		Gluster-users mailing list
		Gluster-users at gluster.org
	
http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
		
		




	-- 
	gowda
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://zresearch.com/pipermail/gluster-users/attachments/20081111/317649a7/attachment.htm 


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux