Performing the management server installation on zCX
Task 1: To unzip the installation file
Create the file system hierarchy by using the following commands:
cd /root
unzip /root/model9-v2.7.0_build_caf1b68-server-s390x.zip
# Create the diag directory
mkdir diag
# Update the docker-entrypoint-initdb.d directory
cp conf/docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d
# Logout of Alpine container (CTRL+D)
Task 2: To copy the containers to the zCX instance
Copy the Docker containers from the Alpine Docker container by using the following commands:
docker cp dummy:/root/postgres-14.5-s390x.docker.gz ./
Task 3: To load the docker container to the zCX instance
Create the file system hierarchy by using the following commands:
docker load -i postgres-14.5-s390x.docker.gz
Task 4: To start the BMC AMI Cloud database container
Create a Docker network bridge by using the following command:
docker network create -d bridge model9networkStart the BMC AMI Cloud PostgreSQL database container by using the following command:
docker run -p 127.0.0.1:5432:5432 \
-v model9db:/var/lib/postgresql/data:z \
-v model9db_initdb:/docker-entrypoint-initdb.d:z \
--name model9db --restart unless-stopped \
--network model9network \
-e POSTGRES_PASSWORD=model9 -e POSTGRES_DB=model9 -d s390x/postgres:14.5Verify the health status of the container and that it is ready to accept connections by issuing the docker logs model9db command and verifying its output as shown in the example:
2023-10-06 06:15:27.770 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-10-06 06:15:27.777 UTC [49] LOG: database system was shut down at 2023-10-06 06:15:27 UTC
2023-10-06 06:15:27.782 UTC [48] LOG: database system is ready to accept connections
Task 5: To update the BMC AMI Cloud management server parameters file
Login to the alpine container by using the following commands:
docker exec -it dummy sh
cd /root
vi conf/model9-local.yml
#Logout of Alpine container (CTRL+D)Update the default parameters in the model9-local.yml file.
Task 6: To start the BMC AMI Cloud server
When the object storage is available and the PostgreSQL container is running, start the server by using the following commands, replacing <zCX-VIPA> with the zCX instance VIPA:
--sysctl net.ipv4.tcp_keepalive_time=600 \
--sysctl net.ipv4.tcp_keepalive_intvl=30 \
--sysctl net.ipv4.tcp_keepalive_probes=10 \
-v model9:/model9:z -h $(hostname) --restart unless-stopped \
-e "TZ=America/New_York" \
-e "CATALINA_OPTS=-Xmx2048m" \
--network model9network \
--name model9-v2.7.0 model9:v2.7.0.caf1b68