14.4 既知の問題
この項には、既知の問題に関する情報が含まれます。
スケール・アップ/ダウン後のdsreplication出力にUnknown状態のポッドが表示される
スケール・アップまたはスケール・ダウン時に、dsreplication出力に正しくないデータが表示されることがあります。次の例では、
replicaCount
が4
から3
に変更されています。oud-ds-rs-3
サーバーは、消失しているはずですが、<Unknown>
として表示されています:dc=example,dc=com - Replication Enabled
=======================================
Server : Entries : M.C. [1] : A.O.M.C. [2] : Port [3] : Encryption [4] : Trust [5] : U.C. [6] : Status [7] : ChangeLog [8] : Group ID [9] : Connected To [10]
-------------------------------:---------:----------:--------------:----------:----------------:-----------:----------:------------:---------------:--------------:-------------------------------
oud-ds-rs-3:<Unknown> : -- : N/A : -- : 1898 : Disabled : -- : -- : Unknown : -- : N/A : --
[11] : : : : : : : : : : :
oud-ds-rs-0:1444 : 39135 : 0 : 0 : 1898 : Disabled : Trusted : -- : Normal : Enabled : 1 : oud-ds-rs-2:1898
: : : : : : : : : : : (GID=1)
oud-ds-rs-1:1444 : 39135 : 0 : 0 : 1898 : Disabled : Trusted : -- : Normal : Enabled : 1 : oud-ds-rs-1:1898
: : : : : : : : : : : (GID=1)
oud-ds-rs-2:1444 : 39135 : 0 : 0 : 1898 : Disabled : Trusted : -- : Normal : Enabled : 1 : oud-ds-rs-2:1898
: : : : : : : : : : : (GID=1)
Replication Server [12] : RS #1 : RS #2 : RS #3 : RS #4
------------------------------:-------:-------:-------:------
oud-ds-rs-0:1898 (#1) : -- : Yes : Yes : N/A
oud-ds-rs-1:1898 (#2) : Yes : -- : Yes : N/A
oud-ds-rs-2:1898 (#3) : Yes : Yes : -- : N/A
oud-ds-rs-3:1898 (#4) : No : No : No : --
この場合、次のステップを実行してサーバーを削除します:
- 次のコマンドを実行して、OUD Kubernetesポッドに移動します:
例:kubectl --namespace <namespace> exec -it -c <containername> <podname> -- bash
これにより、ポッドに移動します:kubectl --namespace oudns exec -it -c oud-ds-rs oud-ds-rs-0 -- bash
[oracle@oud-ds-rs-0 oracle]$
- ポッド内に移動したら、次のコマンドを実行してパスワード・ファイルを作成します:
echo <ADMIN_PASSWORD> > /tmp/adminpassword.txt
- 次のコマンドを実行して、
replicationPort
を削除します:
出力は次のようになります:/u01/oracle/oud/bin/dsreplication disable --hostname localhost --port $adminConnectorPort --adminUID admin --trustAll --adminPasswordFile /tmp/adminpassword.txt --no-prompt --unreachableServer oud-ds-rs-3:$replicationPort
Establishing connections and reading configuration ........ Done. The following errors were encountered reading the configuration of the existing servers: Could not connect to the server oud-ds-rs-3:1444. Check that the server is running and that is accessible from the local machine. Details: oud-ds-rs-3:1444 The tool will try to update the configuration in a best effort mode. Removing references to replication server oud-ds-rs-3:1898 ..... Done.
- 次のコマンドを実行して、
adminConnectorPort
を削除します:
出力は次のようになります:/u01/oracle/oud/bin/dsreplication disable --hostname localhost --port $adminConnectorPort --adminUID admin --trustAll --adminPasswordFile /tmp/adminpassword.txt --no-prompt --unreachableServer oud-ds-rs-3:$adminConnectorPort
Establishing connections and reading configuration ...... Done. Removing server oud-ds-rs-3:1444 from the registration information ..... Done.
- パスワード・ファイルを削除します:
rm /tmp/adminpassword.txt