LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba High Availability issue using luci (HA Manager) on CentOS (https://www.linuxquestions.org/questions/linux-server-73/samba-high-availability-issue-using-luci-ha-manager-on-centos-4175575487/)

sunnysthakur 03-21-2016 04:49 AM

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.

sunnysthakur 04-05-2016 04:44 AM

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.


All times are GMT -5. The time now is 03:34 PM.