<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 4, 2015 at 5:19 PM, Sharad Shukla <span dir="ltr">&lt;<a href="mailto:sharadshukla19@gmail.com" target="_blank">sharadshukla19@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi Thomas,<br><br></div>Thank you so much for your reply.<br><br></div>I tried the steps which you advised but unfortunately the issue still persists. Please find the below details..<br><br>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br></div>Ctdb config:<br><br>CTDB_RECOVERY_LOCK=&quot;/mnt/datavaol/lock/lockfile&quot;<br>CTDB_PUBLIC_ADDRESSES=/mnt/datavol/lock/public_addresses<br>CTDB_MANAGES_SAMBA=yes<br>CTDB_NODES=/mnt/datavol/lock/nodes<br>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br>/var/log/log.ctdb<br>-------------------------<br><br>2015/05/04 13:21:42.521866 [24966]: Freeze priority 2<br>2015/05/04 13:21:42.522969 [24966]: Freeze priority 3<br>2015/05/04 13:21:42.716936 [24966]: Freeze priority 1<br>2015/05/04 13:21:42.717029 [24966]: Freeze priority 2<br>2015/05/04 13:21:42.717092 [24966]: Freeze priority 3<br>2015/05/04 13:21:45.721344 [recoverd:25127]: Taking out recovery lock from recovery daemon<br>2015/05/04 13:21:45.721441 [recoverd:25127]: Take the recovery lock<br>2015/05/04 13:21:45.721496 [recoverd:25127]: ctdb_recovery_lock: Unable to open /mnt/datavaol/lock/lockfile - (No such file or directory)<br>2015/05/04 13:21:45.721517 [recoverd:25127]: Unable to get recovery lock - aborting recovery and ban ourself for 300 seconds<br>2015/05/04 13:21:45.721569 [24966]: Banning this node for 300 seconds<br>2015/05/04 13:23:42.718113 [24966]: server/ctdb_recover.c:562 Been in recovery mode for too long. Dropping all IPS<br>2015/05/04 13:26:45.722369 [24966]: Banning timedout<br>2015/05/04 13:26:46.169915 [recoverd:25127]: server/ctdb_recoverd.c:3699 Current recmaster node 1 does not have CAP_RECMASTER, but we (node 0) have - force an election<br>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br># ctdb status<br>Number of nodes:2<br>pnn:0 192.168.3.131    BANNED|UNHEALTHY|INACTIVE (THIS NODE)<br>pnn:1 192.168.3.132    DISCONNECTED|UNHEALTHY|INACTIVE<br>Generation:INVALID<br>Size:2<br>hash:0 lmaster:0<br>hash:1 lmaster:1<br>Recovery mode:RECOVERY (1)<br>Recovery master:0<br><br>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br></div>So it directly goes to the recovery mode.  Please help with this...  Please let me know if you need any other details..<br><br><br></div></div></div></blockquote><div>There is a typo in the config file</div><div><br></div><div>CTDB_RECOVERY_LOCK=&quot;/mnt/datavaol/lock/lockfile&quot;<br>CTDB_PUBLIC_ADDRESSES=/mnt/datavol/lock/public_addresses<br></div><div><br></div><div>s/datavaol/datavol</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div></div>Thanks<br></div>Sharad<br><div><div><div><br><br><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 8:36 PM, Thomas Holkenbrink <span dir="ltr">&lt;<a href="mailto:tholkenbrink@greenhousedata.com" target="_blank">tholkenbrink@greenhousedata.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Forgot to add…
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">In your Interface config file Add a LINK DELAY which will assure that the network is online before Gluster comes online.  CTDB is dependent on the mount to be
 there so that its Config files can be seen.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">In my /etc/sysconfig/network-scripts/ifcfg-eth0  I add this
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:0.5in"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">LINKDELAY=10<u></u><u></u></span></p><span class=""><span>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thomas Holkenbrink / Systems Architect, Cloud
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">e: <a href="mailto:tholkenbrink@greenhousedata.com" target="_blank">tholkenbrink@greenhousedata.com</a>
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">t: <a href="tel:425-328-1172" value="+14253281172" target="_blank">425-328-1172</a> |  c: <a href="tel:206-659-3677" value="+12066593677" target="_blank">206-659-3677</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> <a href="mailto:gluster-users-bounces@gluster.org" target="_blank">gluster-users-bounces@gluster.org</a> [mailto:<a href="mailto:gluster-users-bounces@gluster.org" target="_blank">gluster-users-bounces@gluster.org</a>]
<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<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</span></span><div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">Hi Alex and friends,<u></u><u></u></p>
</div><div><div class="h5"><div><div>
<p class="MsoNormal" style="margin-bottom:12pt">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>
<u></u><u></u></p>
</div></div></div></div></div><div><div class="h5"><div><div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><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>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">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....  I was getting the following error:<br>
Starting SMB services: /bin/bash: line 1:  4339 Aborted                 (core dumped) smbd -D<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><i>Following is the smb.conf:</i><br>
[global]<br>
        clustering = yes<br>
        idmap backend = tdb2<br>
        private dir = /mnt/datavol/lock<br>
<br>
[share]<br>
        comment = Gluster and CTDB based shared volume<br>
        path = /mnt/datavol/share<br>
        read only = no<br>
        guest ok = yes<br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">I tried every possible way to start Samba daemon but failed to do so ..<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">I would really appreciate if you can look into this configuration and suggest me some tips to make ctdb running without any errors..<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks &amp; Regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Sharad<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
<br>
<u></u><u></u></p>
</div>
</div></div></div></div></div><div><div class="h5"><div><div>
<div>
<p class="MsoNormal"><u></u> <u></u></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:<u></u><u></u></p>
<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On 29/04/15 10:34, Sharad Shukla wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">Hi Susant,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">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..<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">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:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">gluster volume set [VOLUME] auth.allow [IP ADDRESS]<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">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;<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">I need this ip address reachable so that I can connect my application which needs to use this shared ip to connect to cluster.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">This application is a little urgent for me. I would really appreciate your help..<u></u><u></u></p>
</div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<p class="MsoNormal">Sharad<u></u><u></u></p>
</div>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></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&#39;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&#39;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>
<u></u><u></u></p>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><span style="color:rgb(136,136,136)"><br>
<span>-- </span><br>
<span>This message has been scanned for viruses and </span><br>
<span>dangerous content by <a href="http://www.mailscanner.info/" target="_blank">
<b>MailScanner</b></a>, and is </span><br>
<span>believed to be clean. <u></u><u></u></span></span></p>
<pre><span style="color:rgb(136,136,136)">_______________________________________________<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">Gluster-users mailing list<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)"><a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)"><a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a></span><u></u><u></u></pre>
</blockquote>
<p class="MsoNormal"><span style="color:rgb(136,136,136)"><br>
<br>
</span><span><u></u><u></u></span></p>
<pre><span style="color:rgb(136,136,136)">-- <u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">This message is intended only for the addressee and may contain<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">confidential information. Unless you are that person, you may not<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">disclose its contents or use it in any way and are requested to delete<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">the message along with any attachments and notify us immediately.<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">&quot;Transact&quot; is operated by Integrated Financial Arrangements plc. 29<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">Clement&#39;s Lane, London EC4N 7AE. Tel: <a href="tel:%28020%29%207608%204900" value="+912076084900" target="_blank">(020) 7608 4900</a> Fax: (020) 7608<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">5300. (Registered office: as above; Registered in England and Wales<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">under number: 3727592). Authorised and regulated by the Financial<u></u><u></u></span></pre>
<pre><span style="color:rgb(136,136,136)">Conduct Authority (entered on the Financial Services Register; no. 190856).<u></u><u></u></span></pre>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">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><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div></div></div>
</div>

</blockquote></div><br></div>
<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><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font color="#666666"><b>Raghavendra Talur </b></font><div><br></div></div></div>
</div></div>