[Samba] smbd does not start under ctdb

steve steve at steve-ss.com
Fri Jul 11 05:49:44 MDT 2014


On Thu, 2014-07-10 at 14:33 +0200, David Disseldorp wrote:
> On Thu, 10 Jul 2014 11:41:23 +0200, steve wrote:
> 
> > Hi. OK. We've now tried that. We're on openSUSE 13.1. With the stock 2.3
> > ctdb:
> > Nothing is started.
> > 
> > With 2.5.3 from the ha repo indeed, smb starts, but both nodes are
> > reported as UNHEALTHY. Always.
> 
> Are there errors or similar in the smbd or ctdbd logs?

Hi
Managed to get smbd started.

Next:
2014/07/11 13:25:46.072674 [recoverd: 6654]: Takeover run starting
2014/07/11 13:25:46.133389 [recoverd: 6654]: Failed to find node to
cover ip 192.168.1.81
2014/07/11 13:25:46.134735 [recoverd: 6654]: Failed to find node to
cover ip 192.168.1.80
2014/07/11 13:25:47.201705 [recoverd: 6654]: Takeover run completed
successfully
2014/07/11 13:25:53.002192 [recoverd: 6654]: Node 1 has changed flags -
now 0x0  was 0x2

and
 ctdb status
Number of nodes:2
pnn:0 192.168.0.10     PARTIALLYONLINE (THIS NODE)
pnn:1 192.168.0.11     PARTIALLYONLINE
Generation:1617462891
Size:2
hash:0 lmaster:0
hash:1 lmaster:1
Recovery mode:NORMAL (0)
Recovery master:0

 ctdb status
Number of nodes:2
pnn:0 192.168.0.10     PARTIALLYONLINE
pnn:1 192.168.0.11     PARTIALLYONLINE (THIS NODE)
Generation:1617462891
Size:2
hash:0 lmaster:0
hash:1 lmaster:1
Recovery mode:NORMAL (0)
Recovery master:0

Not sure how to configure the public_addresses interface.
 /etc/ctdb/public_addresses
192.168.1.80/24 enp0s3
192.168.1.81/24 enp0s3

this is currently on DHCP addesses ony via NetworkManager:

enp0s3    Link encap:Ethernet  HWaddr 08:00:27:AF:E4:55  
          inet addr:192.168.1.21  Bcast:192.168.1.255
Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:feaf:e455/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:500 errors:0 dropped:0 overruns:0 frame:0
          TX packets:311 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:89309 (87.2 Kb)  TX bytes:48546 (47.4 Kb)

How do I configure the interface? Disable it?

Then if we go both nodes primary:
cat /proc/drbd
version: 8.4.4 (api:1/proto:86-101)
GIT-hash: 3c1f46cb19993f98b22fdf7e18958c21ad75176d build by SuSE Build
Service

 1: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
    ns:0 nr:12697 dw:12697 dr:744 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1
wo:f oos:0

All seems well. We can enable and disable nodes BUT no public IP.
Any ideas?





More information about the samba mailing list