<!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.16809" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=2> Hello :</FONT></DIV>
<DIV><FONT color=#000080> I have some
question of </FONT><FONT color=#000000>Replicate ,when i use tow servers and one
client , the <SPAN class=trans><FONT color=#0547c0>configuration
files</FONT></SPAN> are these :</FONT></DIV>
<DIV> </DIV>
<DIV> GFS server 1 and 2 </DIV>
<DIV>glusterfsd.vol </DIV>
<DIV>=======================================================</DIV>
<DIV>volume posix1<BR> type
storage/posix
# POSIX FS translator<BR> option directory
/data1 # Export this
directory<BR>end-volume</DIV>
<DIV> </DIV>
<DIV>
<DIV>volume posix2</DIV>
<DIV> type storage/posix # POSIX FS translator</DIV>
<DIV> option directory /data2 # Export this directory</DIV>
<DIV>end-volume</DIV>### Add POSIX record locking support to the storage brick<BR>volume
brick1<BR> type features/posix-locks<BR> #option mandatory-locks
on # enables mandatory
locking on all files<BR> subvolumes posix1<BR>end-volume</DIV>
<DIV>
<DIV></DIV>
<DIV> </DIV>
<DIV>volume brick2</DIV>
<DIV> type features/posix-locks</DIV>
<DIV> #option mandatory-locks on # enables mandatory locking on all files</DIV>
<DIV> subvolumes posix2</DIV>
<DIV>end-volume</DIV>
<DIV> </DIV></DIV>
<DIV>volume ns<BR> type
storage/posix
# POSIX FS translator<BR> option directory /export #
Export this directory<BR>end-volume</DIV>
<DIV> </DIV>
<DIV>volume name<BR> type features/posix-locks<BR> #option
mandatory-locks on #
enables mandatory locking on all files<BR> subvolumes
ns<BR>end-volume</DIV>
<DIV> </DIV>
<DIV>
<DIV></DIV>
<DIV>### Add network serving capability to above brick.</DIV>
<DIV>volume server</DIV>
<DIV> type protocol/server</DIV>
<DIV> option transport-type tcp # For TCP/IP transport</DIV>
<DIV> subvolumes brick1 brick2 name</DIV>
<DIV> option auth.addr.brick1.allow * # access to "brick" volume</DIV>
<DIV>
option auth.addr.brick2.allow * # access to "brick" volume</DIV>
<DIV>
option auth.addr.name.allow * # access to "brick" volume</DIV>
<DIV>end-volume</DIV></DIV>
<DIV>=================================================================</DIV>
<DIV>GFS client </DIV>
<DIV>
<DIV>volume client1</DIV>
<DIV> type protocol/client</DIV>
<DIV> option transport-type tcp # for TCP/IP transport</DIV>
<DIV> option remote-host 172.20.92.249 # IP address of the remote brick</DIV>
<DIV> option remote-subvolume brick1 # name of the remote volume</DIV>
<DIV>end-volume</DIV>
<DIV></DIV>
<DIV>### Add client feature and attach to remote subvolume of server2</DIV>
<DIV>volume client2</DIV>
<DIV> type protocol/client</DIV>
<DIV> option transport-type tcp # for TCP/IP transport</DIV>
<DIV> option remote-host 172.20.92.249 # IP address of the remote brick</DIV>
<DIV> option remote-subvolume brick2 # name of the remote volume</DIV>
<DIV>end-volume</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>volume client3</DIV>
<DIV> type protocol/client</DIV>
<DIV> option transport-type tcp # for TCP/IP transport</DIV>
<DIV> option remote-host 172.20.92.250 # IP address of the remote brick</DIV>
<DIV> option remote-subvolume brick1 # name of the remote volume</DIV>
<DIV>end-volume</DIV>
<DIV></DIV>
<DIV>volume client4</DIV>
<DIV> type protocol/client</DIV>
<DIV> option transport-type tcp # for TCP/IP transport</DIV>
<DIV> option remote-host 172.20.92.250 # IP address of the remote brick</DIV>
<DIV> option remote-subvolume brick2 # name of the remote volume</DIV>
<DIV>end-volume</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>volume ns1 </DIV>
<DIV> type protocol/client</DIV>
<DIV> option transport-type tcp # for TCP/IP transport</DIV>
<DIV> option remote-host 172.20.92.249 # IP address of the remote brick</DIV>
<DIV> option remote-subvolume name # name of the remote volume</DIV>
<DIV>end-volume</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>volume ns2 </DIV>
<DIV> type protocol/client</DIV>
<DIV> option transport-type tcp # for TCP/IP transport</DIV>
<DIV> option remote-host 172.20.92.250 # IP address of the remote brick</DIV>
<DIV> option remote-subvolume name # name of the remote volume</DIV>
<DIV>end-volume</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>## Add replicate feature.</DIV>
<DIV>volume rep1</DIV>
<DIV> type cluster/replicate</DIV>
<DIV> subvolumes client1 client3</DIV>
<DIV>end-volume</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>volume rep2</DIV>
<DIV> type cluster/replicate</DIV>
<DIV> subvolumes client2 client4 </DIV>
<DIV>end-volume</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>volume rep-ns</DIV>
<DIV> type cluster/replicate</DIV>
<DIV> end-volume</DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>volume bricks</DIV>
<DIV> type cluster/unify</DIV>
<DIV> option namespace rep-ns # this will not be storage child of unify.</DIV>
<DIV> subvolumes rep1 rep2</DIV>
<DIV> option self-heal background # foreground off # default is foreground</DIV>
<DIV> option scheduler rr</DIV>
<DIV>end-volume</DIV>
<DIV>========================================================================</DIV>
<DIV>
glusterfs -f /etc/glusterfs/glusterfs.vol
/data </DIV></DIV>
<DIV><FONT face=Verdana color=#000080 size=2> </FONT></DIV>
<DIV><FONT color=#000080>After mount ,I touch 11 22 33 44 four files
into /data ,for the Replicate,four files are both exist in
92.249 and 92.250</FONT></DIV>
<DIV><FONT color=#000080>On GFS client I echo "aaaaaaaaaaaaaaa"
> 11 ,then on 92.249 </FONT> i rm -fr /data1/11 , just like
the file was lost. So on client I couldn't read 11 correct, I " ll
-h ",the file is appear again in 92.249,but have not the right "<FONT
color=#000080>aaaaaaaaaaaaaaa",it was like "@@@@@@@@@@@" messy code ! If i copy
11 from 92.250 to 92.249, on GFS client I read the right file
"aaaaaaaaaaaaaaa" . Was that my configuring wrong ? why the file not renew
accurate?</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080> </FONT></DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2009-03-04 </FONT></DIV><FONT
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>eagleeyes</SPAN>
</FONT></DIV>
<DIV><FONT face=Verdana size=2> </DIV></FONT></BODY></HTML>