<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
You do not create anything on "one volume". That will not replicate
properly.<br>
<br>
Mount the <i>gluster</i> volume -- in a different place -- and
create the volume on the <i>gluster</i> volume. It will then
replicate to both bricks.<br>
<br>
Line in /etc/fstab should look like: <br>
primary:str /mnt/glusterfs <b>glusterfs</b> default
0 0<br>
or<br>
primary:/str /mnt/glusterfs <b>nfs</b>
default 0 0<br>
<br>
When you mount the <i>gluster</i> volume, it does not "replicate
from one brick to another" it is created on both bricks at the same
time".<br>
<br>
If you mounted the volume correctly, you can just look at the bricks
on each server, and you can see what is replicated. The entire file
structure will be there.<br>
<br>
Ted Miller<br>
Elkhart, IN, USA<br>
<br>
P.S. This is one of the most common mistakes made by newbies.
Don't feel bad if you made it. If you did not, congratulate
yourself.<br>
<br>
<br>
<div class="moz-cite-prefix">On 5/28/2014 5:13 AM,
<a class="moz-txt-link-abbreviated" href="mailto:yalla.gnan.kumar@accenture.com">yalla.gnan.kumar@accenture.com</a> wrote:<br>
</div>
<blockquote
cite="mid:67765C71374B974FBFD2AD05AF438EFF0BD44C25@048-CH1MPN3-361.048d.mgd.msft.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I got it. Its
due to lack of hostnames in /etc/hosts. Now it is working.
</span><span style="font-family:Wingdings;color:#1F497D">J</span><span
style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am facing
another problem. I have used replicated volumes in the two
node gluster. I have used these replicated volume in
openstack.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have created
file system on one volume. But how to verify that the same
content in one node is replicated on the gluster disk of
another node ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kumar<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
Gnan Kumar, Yalla
<br>
<b>Sent:</b> Wednesday, May 28, 2014 2:27 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
<b>Subject:</b> nfs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a two node gluster storage. The
gluster version is 3.2.5. But while mounting from a remote
server as nfs volume, it is failing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-------------- <o:p></o:p></p>
<p class="MsoNormal">root@compute:~# showmount -e primary<o:p></o:p></p>
<p class="MsoNormal">Export list for primary:<o:p></o:p></p>
<p class="MsoNormal">/rpl *<o:p></o:p></p>
<p class="MsoNormal">/str *<o:p></o:p></p>
<p class="MsoNormal">/dst *<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@compute:~# mount -vvv -o
mountproto=tcp -t nfs primary:/str /mnt/glusterfs<o:p></o:p></p>
<p class="MsoNormal">mount: fstab path: "/etc/fstab"<o:p></o:p></p>
<p class="MsoNormal">mount: mtab path: "/etc/mtab"<o:p></o:p></p>
<p class="MsoNormal">mount: lock path: "/etc/mtab~"<o:p></o:p></p>
<p class="MsoNormal">mount: temp path: "/etc/mtab.tmp"<o:p></o:p></p>
<p class="MsoNormal">mount: UID: 0<o:p></o:p></p>
<p class="MsoNormal">mount: eUID: 0<o:p></o:p></p>
<p class="MsoNormal">mount: spec: "primary:/str"<o:p></o:p></p>
<p class="MsoNormal">mount: node: "/mnt/glusterfs"<o:p></o:p></p>
<p class="MsoNormal">mount: types: "nfs"<o:p></o:p></p>
<p class="MsoNormal">mount: opts: "mountproto=tcp"<o:p></o:p></p>
<p class="MsoNormal">mount: external mount: argv[0] =
"/sbin/mount.nfs"<o:p></o:p></p>
<p class="MsoNormal">mount: external mount: argv[1] =
"primary:/str"<o:p></o:p></p>
<p class="MsoNormal">mount: external mount: argv[2] =
"/mnt/glusterfs"<o:p></o:p></p>
<p class="MsoNormal">mount: external mount: argv[3] = "-v"<o:p></o:p></p>
<p class="MsoNormal">mount: external mount: argv[4] = "-o"<o:p></o:p></p>
<p class="MsoNormal">mount: external mount: argv[5] =
"rw,mountproto=tcp"<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: timeout set for Wed May 28
06:13:38 2014<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: trying text-based options
'mountproto=tcp,addr=10.211.203.66,mountaddr=10.211.203.66'<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: prog 100003, trying vers=3,
prot=6<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: trying 10.211.203.66 prog 100003
vers 3 prot TCP port 38467<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: prog 100005, trying vers=3,
prot=6<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: trying 10.211.203.66 prog 100005
vers 3 prot TCP port 38465<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: mount(2): Permission denied<o:p></o:p></p>
<p class="MsoNormal">mount.nfs: access denied by server while
mounting primary:/str<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What is the reason ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Kumar<o:p></o:p></p>
</div>
<br>
<hr>
<font size="1" face="Arial" color="Gray"><br>
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise confidential
information. If you have received it in error, please notify the
sender immediately and delete the original. Any other use of the
e-mail by you is prohibited. Where allowed by local law,
electronic communications with Accenture and its affiliates,
including e-mail and instant messaging (including content), may
be scanned by our systems for the purposes of information
security and assessment of internal compliance with Accenture
policy. <br>
______________________________________________________________________________________<br>
<br>
<a class="moz-txt-link-abbreviated" href="http://www.accenture.com">www.accenture.com</a><br>
</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="77">--
"He is no fool who gives what he cannot keep, to gain what he cannot lose." - - Jim Elliot
For more information about Jim Elliot and his unusual life, see <a class="moz-txt-link-freetext" href="http://www.christianliteratureandliving.com/march2003/carolyn.html">http://www.christianliteratureandliving.com/march2003/carolyn.html</a>.
Ted Miller
Design Engineer
HCJB Global Technology Center, a ministry of Reach Beyond
2830 South 17th St
Elkhart, IN 46517
574--970-4272 my desk
574--970-4252 receptionist</pre>
</body>
</html>