Add Application Node to Existing Machine (Manually)

Assuming agent1 is the name of new agent and agent0 is already installed via cloud formation and username is the username on the new agent

Prerequisites

agent0 and agent1 must be running a Linux operating system. You must have SSH access to both agent0 and agent1 using a non-root user with sudo privileges. Please follow How to create passwordless access between VMs

Instructions

  1. Login to agent0

ssh -i <key_file>.pem ubuntu@agent0
  1. Copy the ZebClient files and /etc/hosts file from agent0 to agent1. The following bash command will copy the files to agent1 using scp:

scp -r /etc/zebclient/ username@agent1.example.com:/tmp
scp /usr/local/bin/zebclient username@agent1.example.com:/tmp
scp /etc/systemd/system/zebclient-agent.service username@agent1.example.com:/tmp
 code
scp /etc/hosts username@agent1.example.com:/tmp

Replace username with the username you use to access agent1. This will copy the /etc/zebclient directory, zebclient binary file, zebclient-agent systemd service file, and /etc/hosts file from agent0 to the corresponding locations on agent1.

If you don't have passwordless access to agent1, you will be prompted to enter your password.

  1. Log in to agent1 using SSH:

ssh username@agent1
  1. Make zebclient config location

sudo mkdir -p /etc/zebclient
  1. Copy agent config and license to ZebClient config location

sudo mv /tmp/agent.yaml /etc/zebclient
sudo mv /tmp/zebclient_license.json /etc/zebclient
  1. Copy zebclient binary and give execute privilege

sudo mv /tmp/zebclient /usr/local/bin/zebclient
sudo chmod a+x /usr/local/bin/zebclient
  1. Copy systemd file for ZebClient agent

sudo mv /tmp/zebclient-agent.service /etc/systemd/system/
  1. Add entries to /etc/hosts

grep -E 'agent|server|db' hosts | sudo tee -a /etc/hosts
  1. Reload the systemd daemon to recognize the new service file:

sudo systemctl daemon-reload
  1. Start the zebclient-agent service:

sudo systemctl start zebclient-agent.service
  1. Enable the zebclient-agent service to start automatically on boot:

sudo systemctl enable zebclient-agent.service

The zebclient-agent service will now start automatically every time agent1 boots up.

  1. Verify if ZebClient mount point is created

df -h | grep ZCFS

Last updated