[LVS] After a LVS entry is deleted manualy by ipvsadm -d , all entries are deleted when a nanny detect a real server shutdown

Solution Unverified - Updated -

Issue

After a LVS  entry  is deleted manualy  by ipvsadm -d ,  all entries are deleted when a nanny detect a real server shutdown.

Is this  a correct behavior?

Please see the following behavior

1. check  that all entries  are correct

# ipvsadm -Ln
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.16.148.233:80 wlc
  -> 192.168.0.100:80             Masq    1      0          0         
  -> 192.168.0.200:80             Masq    1      0          0         
TCP  172.16.148.244:21 rr persistent 60
  -> 192.168.0.200:21             Masq    1      0          0         
  -> 192.168.0.100:21             Masq    1      0          0

2 . delete a entry

#  ipvsadm -d -t 172.16.148.233:80  -r 192.168.0.100:80

3. check that a entry is deleted

# ipvsadm -Ln
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.16.148.233:80 wlc
  -> 192.168.0.200:80             Masq    1      0          0         
TCP  172.16.148.244:21 rr persistent 60
  -> 192.168.0.200:21             Masq    1      0          0         
  -> 192.168.0.100:21             Masq    1      0          0 

4.  stop a service  in a real server

In this case,  at  192.168.0.100

# service httpd stop

5.  check that all entries have deleted

# ipvsadm -Ln
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn

6. check  the /var/log/message

Aug 30 10:47:17 rhel4-cluster1 nanny[4745]: shutting down 192.168.0.100:80 due to connection failure
Aug 30 10:47:17 rhel4-cluster1 nanny[4745]: /sbin/ipvsadm command failed!
Aug 30 10:47:17 rhel4-cluster1 lvs[4732]: nanny for child HTTP/S-INWWW5 died! shutting down lvs
Aug 30 10:47:17 rhel4-cluster1 lvs[4732]: shutting down virtual service HTTP
Aug 30 10:47:17 rhel4-cluster1 nanny[4746]: Terminating due to signal 15
Aug 30 10:47:17 rhel4-cluster1 lvs[4732]: shutting down virtual service FTP
Aug 30 10:47:17 rhel4-cluster1 nanny[4748]: Terminating due to signal 15
Aug 30 10:47:17 rhel4-cluster1 nanny[4749]: Terminating due to signal 15

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4

  • pirnaha

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content