LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-21-2016, 04:49 AM   #1
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Rep: Reputation: Disabled
Samba High Availability issue using luci (HA Manager) on CentOS


Hello,

I am working on to setup a Samba High availability on CentOS using luci (HA Manager) and GFS2 using 2 nodes cluster.

I am successfully able to configure GFS HA and VIP HA using luci but when trying to add samba server HA, i am in trouble and not able to figure out what is the issue. Below are the errors from /var/log/messages

Quote:
Mar 21 13:57:09 node1 rgmanager[26935]: [samba] Looking For IP Addresses [samba:samba] > Failed - No IP Addresses Found
Mar 21 13:57:09 node1 rgmanager[2170]: start on samba "samba" returned 1 (generic error)
Mar 21 13:57:09 node1 rgmanager[2170]: #68: Failed to start service:samba; return value: 1
Mar 21 13:57:09 node1 rgmanager[2170]: Stopping service service:samba
Mar 21 13:57:10 node1 rgmanager[27025]: [samba] Stopping Service samba:samba
Mar 21 13:57:10 node1 rgmanager[27047]: [samba] Checking Existence Of File /var/run/cluster/samba/samba:samba/smbd-smb.conf.pid [samba:samba] > Failed - File Doesn't
Mar 21 13:57:11 node1 rgmanager[27069]: [samba] Checking Existence Of File /var/run/cluster/samba/samba:samba/nmbd-smb.conf.pid [samba:samba] > Failed - File Doesn't
Mar 21 13:57:11 node1 rgmanager[27091]: [samba] Stopping Service samba:samba > Succeed
Mar 21 13:57:11 node1 rgmanager[2170]: Service service:samba is recovering
Mar 21 13:57:11 node1 rgmanager[2170]: #71: Relocating failed service service:samba
Mar 21 13:57:13 node1 ricci[27121]: Executing '/usr/bin/virsh nodeinfo'.

Finding bit on internet and found that there are some lines need to add in smb.conf file. I create a new file smb.conf.cluster1 which will be use by samba HA from luci. Same is copied to another node.

workgroup = QASLABS
pid directory = /var/run/cluster/samba/samba:smb
lock directory = /var/cache/samba/cluster1
server string = Samba Server Version %v
log file = /var/log/samba/%m.log
encrypt passwords = yes
bind interfaces only = yes
netbios name = smb
interfaces = 10.10.1.122
local master = no
domain master = no
preferred master = no
password server = none
guest ok = yes
guest account = root
security = SHARE
dns proy = no
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
hosts allow = 10.10.1. 10.10.10. 127.

But that too not working. Please let me know if i am missing something else.
 
Old 04-05-2016, 04:44 AM   #2
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Original Poster
Rep: Reputation: Disabled
I didn't figure out the issue and didn't get a help from internet regarding this issue.
However i did this by using some other alternative. Instead of setup Samba HA using LUCI/Conga i used CTDB with LUCI/Conga and DRBD for this Active-Active Samba setup.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability and Failover with Centos 6.3 markjohnson Linux - Networking 2 01-15-2013 10:13 PM
Hight Availability in centOS ( luci ) nightwish Linux - Software 1 11-25-2011 07:54 AM
Hight Availability ( luci ) nightwish Linux - Software 2 11-21-2011 03:54 AM
LXer: High-Availability Storage With GlusterFS On CentOS 5.4 LXer Syndicated Linux News 0 03-19-2010 01:20 PM
High availability samba server? jedimastermopar Linux - General 2 05-10-2005 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration