[Samba] ctdb PARTIALLYONLINE
steve
steve at steve-ss.com
Sat Jul 12 09:55:11 MDT 2014
On Sat, 2014-07-12 at 09:01 +0200, steve wrote:
> On Fri, 2014-07-11 at 23:50 +0200, steve wrote:
> > On Sat, 2014-07-12 at 06:58 +1100, me at electronico.nc wrote:
> > > Le 12/07/2014 03:40, steve a écrit :
> > > > drbd ctdb ocfs2
> > > > Hi
> > > > Everything seems OK apart from the IP takeover.
> > > >
> > > > public_addresses
> > > > 192.168.1.80/24 enp0s3
> > > > 192.168.1.81/24 enp0s3
> > > >
> > > > ctdb status
> > > > Number of nodes:2
> > > > pnn:0 192.168.1.10 PARTIALLYONLINE
> > > > pnn:1 192.168.1.11 PARTIALLYONLINE (THIS NODE)
> > > > Generation:2090727463
> > > > Size:2
> > > > hash:0 lmaster:0
> > > > hash:1 lmaster:1
> > > > Recovery mode:NORMAL (0)
> > > > Recovery master:1
> > > >
> > > > but we are getting:
> > > > 2014/07/11 18:17:37.313940 [recoverd:15925]: Failed to find node to
> > > > cover ip 192.168.1.81
> > > > 2014/07/11 18:17:37.314608 [recoverd:15925]: Failed to find node to
> > > > cover ip 192.168.1.80
> > > >
> > > > our nodes are on the other interface, enps08:
> > > > 192.168.1.10
> > > > 192.168.1.11
> > > >
> > > > At the moment, enp0s3 have fixed IPs:
> > > > 192.168.1.82
> > > > 192.168.1.83
> > > >
> > > > Question: how do we configure the interface for the public IPs?
> > > > Dow we need a third interface for the public ips?
> > > > Cheers,
> > > > Steve
> > > >
> > > Hi Steve,
> > > Do you have 2 NICs :
> > > enp0s3
> > > enps08
> > > ?
> > > Which one is LAN ?
> > > Is the other one only for HA ?
> > > Why have you used the same subnet on the 2 NICs ?
> > > Nicolas
> >
> > Hi
> > enp0s3 LAN
> > enp0s8 ha
> >
> > We used the same subnet, otherwise, nothing showed up with ctdb ip.
> > (Initially we had the ha on 192.168.0.10 and 192.168.0.11)
> >
> > No idea how to configure the interface for the public IPs. We'd like the
> > lan IPs to be on the 192.168.1.x network if possible. We're joined to
> > the AD domain on that subnet.
> >
> > The HA nics are easy to configure with fixed IPs but how do we configure
> > the other card for the public IPs? ATM it's configured with fixed IP's.
> >
> > Any clues most gratefully received. I'm sure we've overlooked something
> > simple.
> > Cheers,
> > Steve
> >
> >
> OK. just one clue: would reading about 'bonding' be of any use?
>
Anyone?
Anyway, it looks like it is bonding so I created a bonding interface and
placed the public addresses there:
/etc/ctdb/public_addresses
192.168.1.80/24 bond0
192.168.1.81/24 bond0
(we've also tried with enp0s3 in place of bond0)
placed the nodes on their own subnet:
/etc/ctdb/nodes
192.168.0.10
192.168.0.11
and the enslaved the real interface with the bond. e.g. here is node 2:
bond0 Link encap:Ethernet HWaddr 08:00:27:F6:93:3E
inet addr:192.168.1.83 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:257 errors:0 dropped:0 overruns:0 frame:0
TX packets:239 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:43129 (42.1 Kb) TX bytes:25820 (25.2 Kb)
enp0s3 Link encap:Ethernet HWaddr 08:00:27:F6:93:3E
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:257 errors:0 dropped:0 overruns:0 frame:0
TX packets:239 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43129 (42.1 Kb) TX bytes:25820 (25.2 Kb)
enp0s8 Link encap:Ethernet HWaddr 08:00:27:7F:F3:4E
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:765 errors:0 dropped:0 overruns:0 frame:0
TX packets:644 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:56880 (55.5 Kb) TX bytes:51283 (50.0 Kb)
But still we have no IPs allocated:
2014/07/12 17:51:03.285396 [recoverd: 2508]: Failed to find node to cover ip 192.168.1.81
2014/07/12 17:51:03.286017 [recoverd: 2508]: Failed to find node to cover ip 192.168.1.80
ctdb status
Number of nodes:2
pnn:0 192.168.0.10 PARTIALLYONLINE (THIS NODE)
pnn:1 192.168.0.11 PARTIALLYONLINE
Generation:1715867719
Size:2
hash:0 lmaster:0
hash:1 lmaster:1
Recovery mode:NORMAL (0)
Recovery master:1
Everything else is working fine.
Give up yet?
Cheers,
Steve
More information about the samba
mailing list