[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #FVT-875334]: LDM source IP used when connecting to remote server



Robert,

Very odd. The ps(1) output indicates that all the child processes of the LDM 
server should be using IP address 128.117.110.43.

I've looked at the code, and the bind() function did use that IP address.

Would you please send me the output of the command "netstat --inet -t -a -n"

> Here you go.  With more than you asked for.
> 
> 
> ldm@punk ~]$ ps -ef | grep ldmd
> ldm      26767     1  0 Jun24 ?        00:00:00 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      26772 26767  0 Jun24 ?        00:00:15 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      26774 26767  0 Jun24 ?        00:00:02 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      26775 26767  0 Jun24 ?        00:00:00 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      28418 26767  0 Jun24 ?        00:06:57 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      28419 26767  0 Jun24 ?        00:06:52 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      28420 26767  0 Jun24 ?        00:06:37 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      28421 26767  0 Jun24 ?        00:06:18 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      28422 26767  0 Jun24 ?        00:06:37 ldmd -I 128.117.110.43
> -P 388 -M 256 -m 3600 -o 3600 -q /var/log/ldm/queues/ldm.pq
> /usr/local/ldm/etc/ldmd.conf
> ldm      45012 43944  0 14:41 pts/2    00:00:00 grep ldmd
> 
> [ldm@punk ~]$ ldmadmin config
> hostname:              ldm.comet.ucar.edu
> os:                    Linux
> release:               2.6.32-754.15.3.el6.x86_64
> ldmhome:               /usr/local/ldm
> LDM version:           6.12.14
> PATH:                 
> /usr/local/ldm/ldm-6.12.14/bin:/usr/local/ldm/decoders:/usr/local/ldm/util:/usr/local/ldm/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
> LDM conf file:         /usr/local/ldm/etc/ldmd.conf
> pqact(1) conf file:    /usr/local/ldm/etc/pqact.conf
> scour(1) conf file:    /usr/local/ldm/etc/scour.conf
> product queue:         /var/log/ldm/queues/ldm.pq
> queue size:            500M bytes
> queue slots:           default
> reconciliation mode:   do nothing
> pqsurf(1) path:        /var/log/ldm/queues/pqsurf.pq
> pqsurf(1) size:        2M
> IP address:            128.117.110.43
> port:                  388
> PID file:              /usr/local/ldm/ldmd.pid
> Lock file:             /usr/local/ldm/.ldmadmin.lck
> maximum clients:       256
> maximum latency:       3600
> time offset:           3600
> log file:              /usr/local/ldm/log/ldmd.log
> numlogs:               7
> log_rotate:            1
> netstat:               /bin/netstat -A inet -t -n
> top:                   /usr/bin/top -b -n 1
> metrics file:          /usr/local/ldm/log/metrics.txt
> metrics files:         /usr/local/ldm/log/metrics.txt*
> num_metrics:           4
> check time:            1
> delete info files:     0
> ntpdate(1):            /usr/sbin/ntpdate
> ntpdate(1) timeout:    5
> time servers:          128.117.110.251 128.117.110.253
> timeserver.unidata.ucar.edu
> time-offset limit:     10
> 
> -------------------
> FYI, why I have multiple IPs.   I'm running ldmd in a HA configuration. 
> Using Pacemaker/Corosync with crm (cluster management shell) instead of
> native pcs. I had to modify /etc/init.d/ldmd to add status for heartbeat
> checks. This is attached if you want to see what I had to do to get
> pacemaker going.
> 
> 
> [root@punk ~]# crm status
> 
> Last updated: Wed Jun 26 14:44:17 2019
> Last change: Mon Jun 24 13:34:08 2019
> Stack: classic openais (with plugin)
> Current DC: punk - partition with quorum
> Version: 1.1.11-97629de
> 2 Nodes configured, 2 expected votes
> 6 Resources configured
> 
> 
> Online: [ daft punk ]
> 
>  Resource Group: Comet
>      vip01    (ocf::heartbeat:IPaddr2):    Started daft
>      http_comet    (ocf::heartbeat:apache):    Started daft
>  Resource Group: FDTB
>      vip02    (ocf::heartbeat:IPaddr2):    Started punk
>      http_fdtb    (ocf::heartbeat:apache):    Started punk
>  Resource Group: LDM
>      vip06    (ocf::heartbeat:IPaddr2):    Started punk
>      ldmd    (lsb:ldmd):    Started punk
> 
> 
> My HA configuration
> 
> [root@punk ~]# cat /tmp/crm.out
> 
> node daft
> node punk
> primitive http_comet apache \
>     params httpd="/usr/local/apache/bin/httpd"
> configfile="/usr/local/apache/conf/httpd-vip01.conf"
> statusurl="http://vip01.comet.ucar.edu/index.html"; \
>     op monitor interval=20s \
>     op start interval=0 timeout=60s \
>     op stop interval=0 timeout=60s
> primitive http_fdtb apache \
>     params httpd="/usr/local/apache/bin/httpd"
> configfile="/usr/local/apache/conf/httpd-vip02.conf"
> statusurl="http://vip02.comet.ucar.edu/index.html"; \
>     op monitor interval=20s \
>     op start interval=0 timeout=60s \
>     op stop interval=0 timeout=60s
> *primitive ldmd lsb:ldmd \*
> *    op monitor interval=20s \*
> *    op start interval=0 timeout=60s \*
> *    op stop interval=0 timeout=60s*
> primitive vip01 IPaddr2 \
>     params ip=128.117.110.221 nic=em1 \
>     op monitor interval=5s
> primitive vip02 IPaddr2 \
>     params ip=128.117.110.222 nic=em1 \
>     op monitor interval=5s
> *primitive vip06 IPaddr2 \*
> *    params ip=128.117.110.43 nic=em1 \*
> *    op monitor interval=5s*
> group Comet vip01 http_comet \
>     meta target-role=Started
> group FDTB vip02 http_fdtb \
>     meta target-role=Started
> group LDM vip06 ldmd \
>     meta target-role=Started
> location PreferedNodeComet Comet 100: daft
> location PreferedNodeFDTB FDTB 100: punk
> *location PreferedNodeLDM LDM 100: punk*
> order vip01-before-http inf: vip01:start http_comet:start
> order vip02-before-http inf: vip02:start http_fdtb:start
> *order vip06-before-ldmd inf: vip06:start ldmd:start*
> property cib-bootstrap-options: \
>     dc-version=1.1.11-97629de \
>     cluster-infrastructure="classic openais (with plugin)" \
>     expected-quorum-votes=2 \
>     stonith-enabled=false \
>     no-quorum-policy=ignore \
>     last-lrm-refresh=1561395956

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: FVT-875334
Department: Support LDM
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.