2017-05-02 17 views
0

を初期化できませんでした。 corosync-cfgtool -sコマンドは次のように得られます。は、ドッキングウィンドウコンテナ内corosyncランニングを初期化できませんcorosync設定APIエラー12

Could not initialize corosync configuration API error 12 

/etc/corosync/corosync.confファイルには、次があります。

compatibility: whitetank 

totem { 
    version: 2 
    secauth: off 
    threads: 0 
    interface { 
     ringnumber: 0 
     bindnetaddr: 127.0.0.1 
     mcastaddr: 239.255.1.1 
     mcastport: 5405 
     ttl: 1 
    } 
} 

logging { 
    fileline: off 
    to_stderr: no 
    to_logfile: yes 
    logfile: /var/log/corosync.log 
    to_syslog: yes 
    debug: off 
    timestamp: on 
    logger_subsys { 
     subsys: AMF 
     debug: off 
    } 
} 

/var/log/corosync.logファイルには、次のことを示しています

May 02 20:13:22 corosync [MAIN ] Could not set SCHED_RR at priority 99: Operation not permitted (1) 
May 02 20:13:22 corosync [MAIN ] Could not lock memory of service to avoid page faults: Cannot allocate memory (12) 
May 02 20:13:22 corosync [MAIN ] Corosync Cluster Engine ('1.4.6'): started and ready to provide service. 
May 02 20:13:22 corosync [MAIN ] Corosync built-in features: nss 
May 02 20:13:22 corosync [MAIN ] Successfully read main configuration file '/etc/corosync/corosync.conf'. 
May 02 20:13:22 corosync [TOTEM ] Initializing transport (UDP/IP Multicast). 
May 02 20:13:22 corosync [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0). 

答えて

0

私はbashで以下を実行していましたスクリプト:

service corosync start 
service corosync status 
corosync-cfgtool -s 

どうやらそれはあまりにも早く実行し、初期化するのに十分な時間を与えてcorosyncいませんでした。以下にスクリプトを変更すると、働いているようだ:

service corosync start 
service corosync status 
sleep 5 
corosync-cfgtool -s 

私は今corosync-cfgtool -sからの次の出力を参照してください。

Printing ring status. 
Local node ID 16777343 
RING ID 0 
    id = 127.0.0.1 
    status = ring 0 active with no faults 
関連する問題