Mailing List Archive

[lvs-users] cannot start master/backup daemon Centos 7
Hi,

We're trying to get IPVS working on Centos7 and running into something I
didn't see on earlier versions. IPVS is working otherwise. It is able to
load balance to backends and such but I cannot make the master/backup
daemons start.

I don't really have a lot to go on really and looking for suggested avenues
of investigation. I did try deleting the ipv6 address off this vlan
interface but it didn't help. (I read syncing only works with ipv4).

# ipvsadm --start-daemon master --mcast-interface vlan1101 --syncid 1
No such device or address

# ip addr show dev vlan1101
9: vlan1101@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue
state UP qlen 1000
link/ether 00:0a:f7:bd:c7:04 brd ff:ff:ff:ff:ff:ff
inet 10.241.8.69/26 brd 10.241.8.127 scope global vlan1101
valid_lft forever preferred_lft forever
inet6 fe80::20a:f7ff:febd:c704/64 scope link
valid_lft forever preferred_lft forever

# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

# uname --r
3.10.0-862.3.2.el7.x86_64

ipvsadm v1.27 2008/5/15 (compiled with popt and IPVS v1.2.1)
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] cannot start master/backup daemon Centos 7 [ In reply to ]
Ok, well I figured this out. From 6 -> 7 the sync process names changed.
Turns out.. they were already running.

6 was [ipvs_syncmaster] and [ipvs_syncbackup]
7 is now [ipvs-m:0:0] and [ipvs-b:0:0]



On Tue, Jun 26, 2018 at 11:01 AM, Phillip Moore <pdm@pobox.com> wrote:

>
> Hi,
>
> We're trying to get IPVS working on Centos7 and running into something I
> didn't see on earlier versions. IPVS is working otherwise. It is able to
> load balance to backends and such but I cannot make the master/backup
> daemons start.
>
> I don't really have a lot to go on really and looking for suggested
> avenues of investigation. I did try deleting the ipv6 address off this vlan
> interface but it didn't help. (I read syncing only works with ipv4).
>
> # ipvsadm --start-daemon master --mcast-interface vlan1101 --syncid 1
> No such device or address
>
> # ip addr show dev vlan1101
> 9: vlan1101@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc
> noqueue state UP qlen 1000
> link/ether 00:0a:f7:bd:c7:04 brd ff:ff:ff:ff:ff:ff
> inet 10.241.8.69/26 brd 10.241.8.127 scope global vlan1101
> valid_lft forever preferred_lft forever
> inet6 fe80::20a:f7ff:febd:c704/64 scope link
> valid_lft forever preferred_lft forever
>
> # cat /etc/redhat-release
> CentOS Linux release 7.4.1708 (Core)
>
> # uname --r
> 3.10.0-862.3.2.el7.x86_64
>
> ipvsadm v1.27 2008/5/15 (compiled with popt and IPVS v1.2.1)
>
>
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] cannot start master/backup daemon Centos 7 [ In reply to ]
Hello,

On Tue, 26 Jun 2018, Phillip Moore wrote:

> Ok, well I figured this out. From 6 -> 7 the sync process names changed.
> Turns out.. they were already running.
>
> 6 was [ipvs_syncmaster] and [ipvs_syncbackup]
> 7 is now [ipvs-m:0:0] and [ipvs-b:0:0]

Yes, the support for many sync threads and ports...
ipvs-<TYPE>:<NETNS_ID>:<THREAD_ID>

> > # ipvsadm --start-daemon master --mcast-interface vlan1101 --syncid 1
> > No such device or address

Also, ipvsadm up to v1.29 can print wrong error messages.
It is fixed [1] but not yet in release. You have to get it from git:

git://git.kernel.org/pub/scm/utils/kernel/ipvsadm/ipvsadm.git

You should see such error:

{ ipvs_start_daemon, EEXIST, "Daemon has already run" }

[1]
ipvsadm: catch the original errno from netlink answer

nl_recvmsgs_default() returns NLE_* error codes and not
errno values. As result, attempt to delete virtual service
returns NLE_OBJ_NOTFOUND (12) which matches the ENOMEM value.

Problem as reported by Emanuele Rocca:

ipvsadm -D -t example.org:80
Memory allocation problem

Fix it by providing generic error handler to catch the errno
value as returned in netlink answer. By this way all netlink
commands will get proper error string. The problem is present
only when ipvsadm is compiled with libnl.

ipvsadm -D -t example.org:80
No such service

Regards

--
Julian Anastasov <ja@ssi.bg>

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users