<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.20900" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face=Arial
color=#0000ff size=2>Thanks for your suggestion. The setup works as
described. This brought two more questions:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face=Arial
color=#0000ff size=2>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:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>Host LocalResource
SharedResource</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>one /local/data
/mnt/data/one</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>two /local/data
/mnt/data/two</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>three /local/data
/mnt/data/three</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>In this setup if I am on the host 'one' and
do:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>$ cd /mnt/data</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>$ grep
"Test" /mnt/data/*/test.txt</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>This setup could be described as a mount of
Host:/local/data to /mnt/data/Host.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face="Courier New"
color=#0000ff size=2>Is this setup achievable through
glusterfs?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=169501623-11112008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B>
basavanagowda@gmail.com [mailto:basavanagowda@gmail.com] <B>On Behalf Of
</B>Basavanagowda Kanur<BR><B>Sent:</B> Tuesday, November 11, 2008 2:49
AM<BR><B>To:</B> Aleynikov, Serge<BR><B>Cc:</B>
gluster-users@gluster.org<BR><B>Subject:</B> Re: [Gluster-users] File
replication<BR></FONT><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>Aleynikov,<BR><BR>Find replies inline.<BR><BR>
<DIV class=gmail_quote>On Tue, Nov 11, 2008 at 4:06 AM, Aleynikov, Serge <SPAN
dir=ltr><<A
href="mailto:Serge.Aleynikov@gs.com">Serge.Aleynikov@gs.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>I am new to this list, and would like to find out
if GlusterFS can serve the following need.</FONT> </P>
<P><FONT face=Arial size=2>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.</FONT></P>
<P><FONT face=Arial size=2>Can I use GlusterFS for this purpose? If
so, could you point me to a sample configuration setup?</FONT>
</P></DIV></BLOCKQUOTE>
<DIV>Yes, you can use.<BR><BR>Run glusterfs server on central storage node.
with the following spec file<BR><BR>volume storage<BR> type
storage/posix<BR> option directory
<export-directory><BR>end-volume<BR><BR>volume server<BR>
type protocol/server<BR> option transport-type
<tcp-or-ibverbs><BR> option auth.addr.storage.allow
<ipaddress-or-username><BR> subvolumes
storage<BR>end-volume<BR><BR>On the machines where your log files are updated,
mount glusterfs using the following spec:<BR><BR>volume client<BR>
type protoco/client<BR> option remote-host
<ipaddress><BR> option remote-subvolume
storage<BR>end-volume<BR><BR>volume local-storage<BR>
type storage/posix<BR> option directory
<local-directory><BR>end-volume<BR><BR>volume
afr<BR> type cluster/afr<BR>
subvolumes local-storage client<BR>end-volume<BR><BR>And point your logging
process to log on mounted directory.<BR><BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<P></P>
<P><FONT face=Arial size=2>Thanks.</FONT> </P>
<P><FONT face=Arial size=2>Serge</FONT>
</P></DIV><BR>_______________________________________________<BR>Gluster-users
mailing list<BR><A
href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</A><BR><A
href="http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users"
target=_blank>http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>gowda<BR></BLOCKQUOTE></BODY></HTML>