[Ultramonkey-l7-users 407] Re: Failed to add virtual service to l7vsd エラーについて

Back to archive index

takep****@gmail***** takep****@gmail*****
2011年 6月 27日 (月) 15:24:23 JST


雲雀様

 回答ありがとうございます。

 利用バージョンは、3.0.1です。

 l7directord.cfは、以下の内容となっています。
(振り分けに関して、IPアドレスの数字が違っていますが、
 ご容赦ください)

-------------------------------------------------
##
## This is the l7directord configuration file.
## See `l7directord --help' for detailed information.
##

# = GLOBAL DIRECTIVES

# - Monitor Settings
checktimeout     = 5
negotiatetimeout = 5
checkinterval    = 10
retryinterval    = 5
checkcount       = 3

# - Logging
logfile          = /var/log/l7vs/l7directord.log
#logfile          = local0
#supervised

# - Real Server Operation
quiescent        = yes
#fallback         = 127.0.0.1:80

# - Monitor Configuration File
configinterval   = 10
autoreload       = no
#callback         = /opt/config_change.sh

# = VIRTUAL DIRECTIVES
# - A sample virtual section with a sorry server.
# - checkcount and quiescent settings are override the global settings.

virtual  = g.g.g.3:80
        real = l.l.l.11:80 masq 1
        module      = sessionless --forwarded-for
        scheduler   = rr
        checktype   = connect
        service     = http
        request     = "index.php"
        receive     = "html"
        quiescent   = no
        checkcount  = 2

virtual  = g.g.g.1:80
        real = l.l.l.13:80 masq 1
        real = l.l.l.22:80 masq 1
        module      = sessionless --forwarded-for
        scheduler   = rr
        checktype   = connect
        service     = http
        request     = "index.html"
        receive     = "html"
        quiescent   = no
        checkcount  = 2

virtual  = g.g.g.2:80
        real = l.l.l.12:80 masq 1
        real = l.l.l.21:80 masq 1
        module      = sessionless --forwarded-for
        scheduler   = rr
        checktype   = connect
        service     = http
        request     = "index.php"
        receive     = "html"
        quiescent   = no
        checkcount  = 2

virtual  = g.g.g.3:443
        real = l.l.l.11:443 masq 1
        module        = sessionless --forwarded-for
        scheduler     = rr
        checktype     = connect
        service       = https
        request       = "index.php"
        receive       = "html"
        quiescent     = no
        checkcount    = 2

virtual  = g.g.g.1:443
        real = l.l.l.13:443 masq 1
        real = l.l.l.22:443 masq 1
        module        = sessionless --forwarded-for
        scheduler     = rr
        checktype     = connect
        service       = https
        request       = "index.html"
        receive       = "html"
        quiescent     = no
        checkcount    = 2

virtual  = g.g.g.2:443
        real = l.l.l.12:443 masq 1
        real = l.l.l.21:443 masq 1
        module        = sessionless --forwarded-for
        scheduler     = rr
        checktype     = connect
        service       = https
        request       = "index.php"
        receive       = "html"
        quiescent     = no
        checkcount    = 2
-------------------------------------------------

 よろしくお願いいたします。


On Mon, 27 Jun 2011 13:18:24 +0900
雲雀 路朗 <hibar****@nttco*****> wrote:

> 竹内様
> 
> お世話になっております。
> 雲雀と申します。
> 
> 手持ちの環境で、動作確認を行ってみましたが、
> 同様の条件で問題なく稼動しております。
> # v3.0.1とv2.1.3-1で動作確認をしました。
> 
> IPアドレス等は下記のように伏せた状態で結構ですので、
> 解析のため設定ファイル"l7directord.cf"をお見せ願えない
> でしょうか?
> 
> また、あわせてお使いのUltraMonkey-L7のバージョンも
> お教え願います。
> 
> 以上、よろしくお願いいたします。
> 
> (2011/06/27 10:30), takep****@gmail***** wrote:
> > 竹内と申します。よろしくお願いいたします。
> >
> > l7vsd、l7directordが稼働するサーバがあり、ここに
> > グローバルIPアドレスを3つ当てています。
> > (IPアドレスをg.g.g.1、g.g.g.2、g.g.g.3とします。)
> >
> > そして、それぞれのIPアドレスでhttp及びhttpsを稼働させ、
> > 下記のようにローカルサーバに振り分けようと思っています。
> >
> > g.g.g.1:80  → l.l.l.11:80、l.l.l.12:80
> > g.g.g.1:443 → l.l.l.11.443、l.l.l.12:443
> > g.g.g.2:80  → l.l.l.21:80、l.l.l.22:80
> > g.g.g.2:443 → l.l.l.21.443、l.l.l.22:443
> > g.g.g.3:80  → l.l.l.31:80、l.l.l.32:80
> > g.g.g.3:443 → l.l.l.31.443、l.l.l.32:443
> > (l.l.l.nはローカルサーバのIPアドレスです)
> >
> > ここで上記のように振り分けるように /etc/ha.d/conf/l7directord.cf に
> > 記述をし、l7vsd、l7directordを起動すると、
> > /var/log/l7vs/l7directord.log に
> > -------------------------------------------------
> > [ERR0303] Failed to command `/usr/sbin/l7vsadm -A -t g.g.g.1:443
> > -m sessionless --forwarded-for -s rr -u 0 -b 0.0.0.0:0  -Q 0 -q 0 2>&1'
> > with return: 65280
> > -------------------------------------------------
> > というエラーが表示され、その後
> > --------------------------------------------------
> > [ERR0207] Trying add server `l.l.l.11:443', but virtual
> > service `g.g.g.1:443' is not found.
> > --------------------------------------------------
> > というエラーが出て、バーチャルサービスが稼働していないため、
> > リアルサーバのサービスが紐づけられません。
> >
> > 上記では3IPアドレス×2サービスで合計6ポートが稼働するのを
> > 期待しているのですが、restartを掛けるたびに稼働するポートの数が
> > 2ポートだったり、3ポートだったり、4ポートだったりします。
> >
> > /etc/ha.d/conf/l7directord.cfへの記述順を色々変えて
> > みたりしたのですが、5ポート以上稼働させることができません。
> >
> > アドバイスをいただけたら幸甚です。
> > よろしくお願いします。
> >
> > _______________________________________________
> > Ultramonkey-l7-users mailing list
> > Ultra****@lists*****
> > http://lists.sourceforge.jp/mailman/listinfo/ultramonkey-l7-users
> >
> >
> 
> 
> -- 
> ==============================================
> NTTコムウェア株式会社
> 基盤技術本部 技術SE部 基盤ソフトSE・OSS部門
> 雲雀 路朗(ひばり みちろう)
> E-Mail:hibar****@nttco*****
> TEL:043-211-2452
> ==============================================





Ultramonkey-l7-users メーリングリストの案内
Back to archive index