<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.hoenzb
        {mso-style-name:hoenzb;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">The Lock file has to be on the Shared BRICK mounted.&nbsp; Make sure that GlusterFS is running.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">The CTDB files must be on the same Gluster Volume mounted on each server for it to work correctly.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Here’s my steps.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">=== CTDB install<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 ~]# yum install ctdb<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 ~]# cd /etc/ctdb/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 ctdb]# ln -s /mnt/GlusterVolume001/ctdb/nodes .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 ctdb]# ln -s /mnt/ GlusterVolume001/ctdb/public_addresses .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 ctdb]# cd /etc/sysconfig/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 sysconfig]# rm -f ctdb<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 sysconfig]# ln -s /mnt/ GlusterVolume001/ctdb/ctdb .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 sysconfig]# service ctdb start<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">[root@gls001 sysconfig]# chkconfig ctdb on<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Thomas Holkenbrink / Systems Architect, Cloud
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">e: tholkenbrink@greenhousedata.com
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">t: 425-328-1172 |&nbsp; c: 206-659-3677<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> gluster-users-bounces@gluster.org [mailto:gluster-users-bounces@gluster.org]
<b>On Behalf Of </b>Sharad Shukla<br>
<b>Sent:</b> Thursday, April 30, 2015 9:56 AM<br>
<b>To:</b> Alex Crow<br>
<b>Cc:</b> gluster-users<br>
<b>Subject:</b> Re: [Gluster-users] Shared IP address<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Alex and friends,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have installed CTDB and all related packages . I did all the required steps to configure ctdb and samba configuration, but somehow the lockfile functionality does not work.<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><i>Following is the ctdb configuration:</i><br>
CTDB_RECOVERY_LOCK=&quot;/mnt/datavaol/lock/lockfile&quot;<br>
CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses<br>
CTDB_MANAGES_SAMBA=yes<br>
CTDB_NODES=/etc/ctdb/nodes<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Having the above config I was getting the error &quot;Unable to find lockfile&quot;. So the problem was with CTDB_RECOVERY_LOCK, so I commented it. After this I again started ctdb services but now the Samba starting was
 a big problem....&nbsp; I was getting the following error:<br>
Starting SMB services: /bin/bash: line 1:&nbsp; 4339 Aborted&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (core dumped) smbd -D<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><i>Following is the smb.conf:</i><br>
[global]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; clustering = yes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idmap backend = tdb2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private dir = /mnt/datavol/lock<br>
<br>
[share]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comment = Gluster and CTDB based shared volume<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path = /mnt/datavol/share<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read only = no<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; guest ok = yes<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I tried every possible way to start Samba daemon but failed to do so ..<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I would really appreciate if you can look into this configuration and suggest me some tips to make ctdb running without any errors..<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks &amp; Regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Sharad<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Wed, Apr 29, 2015 at 11:45 AM, Alex Crow &lt;<a href="mailto:acrow@integrafin.co.uk" target="_blank">acrow@integrafin.co.uk</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 29/04/15 10:34, Sharad Shukla wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Susant,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have installed Glusterfs in 2 machines which I want to use for establishing cluster. I am using CentOs 6.6. The gluster volume is set up and running fine. I am manually creating the files onto the mounted
 volume and they are replicating..<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">So far looks like everything is working. Now I have configured a shared ip address for reaching the replicated volume by using the following command:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">gluster volume set [VOLUME] auth.allow [IP ADDRESS]<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">This IP address is visible to me under &quot;gluster volume info&quot;, but I am unable to ping this ip address. I am getting the message that &quot;Host is unreachable&quot;<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I need this ip address reachable so that I can connect my application which needs to use this shared ip to connect to cluster.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">This application is a little urgent for me. I would really appreciate your help..<o:p></o:p></p>
</div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<p class="MsoNormal">Sharad<o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<p class="MsoNormal">Hi,<br>
<br>
That command is just setting an acl for that IP to connect to the gluster daemon.<br>
<br>
Normally you don't need to add any IP addresses as glusterfs clients will know about both servers as soon as they connect to one of them. If you're using Samba or NFS the preferred option is to use CTDB to spread a pool of virtual IP addresses over the servers.<br>
<br>
Cheers<br>
<br>
Alex<br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#888888"><br>
<span class="hoenzb">-- </span><br>
<span class="hoenzb">This message has been scanned for viruses and </span><br>
<span class="hoenzb">dangerous content by <a href="http://www.mailscanner.info/" target="_blank">
<b>MailScanner</b></a>, and is </span><br>
<span class="hoenzb">believed to be clean. <o:p></o:p></span></span></p>
<pre><span style="color:#888888">_______________________________________________<o:p></o:p></span></pre>
<pre><span style="color:#888888">Gluster-users mailing list<o:p></o:p></span></pre>
<pre><span style="color:#888888"><a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><o:p></o:p></span></pre>
<pre><span style="color:#888888"><a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a></span><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="color:#888888"><br>
<br>
</span><span class="hoenzb"><o:p></o:p></span></p>
<pre><span style="color:#888888">-- <o:p></o:p></span></pre>
<pre><span style="color:#888888">This message is intended only for the addressee and may contain<o:p></o:p></span></pre>
<pre><span style="color:#888888">confidential information. Unless you are that person, you may not<o:p></o:p></span></pre>
<pre><span style="color:#888888">disclose its contents or use it in any way and are requested to delete<o:p></o:p></span></pre>
<pre><span style="color:#888888">the message along with any attachments and notify us immediately.<o:p></o:p></span></pre>
<pre><span style="color:#888888">&quot;Transact&quot; is operated by Integrated Financial Arrangements plc. 29<o:p></o:p></span></pre>
<pre><span style="color:#888888">Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608<o:p></o:p></span></pre>
<pre><span style="color:#888888">5300. (Registered office: as above; Registered in England and Wales<o:p></o:p></span></pre>
<pre><span style="color:#888888">under number: 3727592). Authorised and regulated by the Financial<o:p></o:p></span></pre>
<pre><span style="color:#888888">Conduct Authority (entered on the Financial Services Register; no. 190856).<o:p></o:p></span></pre>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>