Setup Primary Node
The example uses the following parameter settings - HOSTNAME=adaclu51 and DBID=51.
To set up a primary node in a three-node cluster:
1. Login to host, source Adabas environment and execute following commands:
crdemodb 51
adaini dbid=51 add topic=nucparms item=OPTIONS=AUTO_EXPAND
adaini dbid=51 add topic=nucparms item=ADATCP
adaini dbid=51 add topic=nucparms item=PORTNUMBER=56051
adaini dbid=51 add topic=nucparms item=CLUSTER_PORT=55051
adaini dbid=51 add topic=nucparms item=CLUSTER_URL=gcomm://adaclu52:55052,adaclu53:55053
export CLUSTER_BOOTSTRAP=
adastart 51
unset CLUSTER_BOOTSTRAP
It is recommended to set the CLUSTER_URL parameter for all nodes of the Adabas cluster from the start and set CLUSTER_BOOTSTRAP for the first node.
It is recommended to update the first node with the CLUSTER_URL parameter if the parameter is not already set from a previous version.
2. Display nucleus parameter settings and status of cluster:
[saguser@ADACLU51 softwareag]$ adaini dbid=51 show topic=nucparms
ADATCP
CLUSTER_PORT=55051
LBP=100M
LOGGING=
LWP=16M
NOPLOG
NT=6
OPTIONS=AUTO_EXPAND
PORTNUMBER=56051
TNAA=900
TNAE=900
TNAX=900
TT=300
[saguser@ADACLU51 softwareag]$ adaopr dbid=51 disp=clu
%ADAOPR-I-STARTED, 23-MAR-2022 10:58:46, Version d.d.d.d (Linux 64Bit)
Database 51, startup at 23-MAR-2022 10:56:38
ADANUC Version d.d.d.d, PID 21489
ADANUC Version d.d.d.d
Database 51 Cluster on 23-MAR-2022 10:58:46
Cluster UUID ea08facf-aa97-11ec-b33a-0a85c666cf2c
view was last updated at sequence number 1
cluster is at sequence number 2
1 Node(s) Primary component of the cluster
NAME ADATCP STATUS
ADACLU51-55051 adatcp://ADACLU51:56051 SYNCED
Primary node: ADACLU51-55051
Current node: ADACLU51-55051
Status of this node: Synced
%ADAOPR-I-TERMINATED, 23-MAR-2022 10:58:47, elapsed time: 00:00:01