Skip to main content

Deploying a split installation of Faddom on Nutanix

Written by Egor Marachev

Environments with over 1,000 servers run best with Faddom split across two VMs: one runs the web UI, the other runs the PostgreSQL database. This article deploys the Faddom OVA on Nutanix AHV and splits it into a UI VM and a DB VM.

Prerequisites

  • The Faddom OVA for VMware and Nutanix (Oracle Linux 9) from download.faddom.com, and your activation key

  • Prism Central access with a user who can upload OVAs and create VMs

  • Two free IP addresses in the same subnet, plus the mask, gateway and DNS

  • 8 CPUs, 16 GB RAM and 40 GB free disk per VM. For 2,000 or more servers, the DB VM needs a data disk of at least 200 GB

  • Ports 22 and 5432 open between the two VMs

For 2,000 or more servers, the DB VM needs a data disk of at least 200 GB.

Upload the OVA and deploy the UI VM

Upload the OVA under OVAs, not under VM templates. The "Create VM from Template" dialog doesn't list uploaded OVAs.

  1. In Prism Central, go to Infrastructure > Compute & Storage > OVAs and click Upload OVA.

  2. Select the OVA file and the AHV cluster, and enter a name. Leave the checksum field empty.

  3. In Tasks, wait until OVA validate shows Succeeded.

  4. Select the OVA, then Actions > Deploy as VM.

  5. Name the VM, set 8 vCPUs and 16 GB RAM, and select Legacy BIOS Mode and Default Boot Order.

  6. Attach the network, create the VM, power it on, and click Launch Console.

The Upload OVA dialog after the upload completes
The Tasks page with OVA upload and OVA validate showing Succeeded

Configure the UI VM

AHV can't pass the IP address and passwords to the VM, so you set them from the console.

  1. Log in as faddom and run the network script. On AHV it lists only ens3, so accept it.

cd /etc/illuminit
sudo ./configIp.sh
The configIp.sh prompt listing only ens3
  1. In a browser, open https://<server IP>:9443/faddom and set the initial password for the user Administrator. This password is separate from the SSH password.

  2. Activate Faddom with your activation key.

  3. The console banner shows a blank IP because it uses the VMware interface name. To fix it, run:

IF=$(ip -o -4 route show to default | awk '{print $5}')
sudo sed -i "s/ens160/$IF/g" /etc/issue

Deploy the DB VM

  1. Deploy a second VM from the same OVA, with its own IP address in the same subnet. Set the IP and fix the console banner as on the UI VM. Don't activate Faddom on the DB VM.

  2. On the DB VM, check that passwordless sudo works. The migration script needs it.

sudo -u faddom sudo whoami
  1. If the command doesn't print root, fix the sudoers file as root and run the check again:

su - echo 'Defaults:faddom !requiretty' > /etc/sudoers.d/faddom echo 'faddom ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/faddom chmod 440 /etc/sudoers.d/faddom sudo -u faddom sudo whoami

Important: Don't run the migration until the check prints root.

Increase the DB VM data disk

Increase the data disk to double the Estimated Storage value, found under the gear icon > Global Parameters > Connection Storage. Take a snapshot of the DB VM first.

The data disk is the one mounted on /data/pgsql/data, and its device letter differs between deployments. Never change the 20 GiB boot disk.

  1. On the DB VM, find the data disk. The filesystem should be xfs.

df -h /data/pgsql/data lsblk -f
  1. Shut down the DB VM:

sudo shutdown -h now
  1. In Prism Central, edit the VM's disks and increase the size of the data disk.

  2. Power on the VM and repartition the disk, replacing sdX with the disk from step 1:

sudo fdisk /dev/sdX

In fdisk, enter p and note the Start value. Enter d to delete the partition, then n and accept the defaults. Answer y if fdisk offers to remove the xfs signature. Enter p to check that the Start value is unchanged, then w. Your data stays intact as long as the start sector is the same.

  1. Reboot, then grow the filesystem:

sudo reboot sudo xfs_growfs /dev/sdX1 df -h /data/pgsql/data
xfs_growfs output after the data disk was increased

Migrate the database to the DB VM

On AHV, update the interface name in the migration script before you run it. The script uses the VMware interface name ens160. Without this change, the migration writes empty addresses into the DB VM's PostgreSQL access rules.

Before you start, take a snapshot of both VMs and check that both disks have at least 50% free space.

  1. On the UI VM, update the script:

IF=$(ip -o -4 route show to default | awk '{print $5}'); echo $IF sudo cp /etc/illuminit/migrateDatabase.sh /etc/illuminit/migrateDatabase.sh.orig sudo sed -i "s/ens160/$IF/g" /etc/issue /etc/illuminit/migrateDatabase.sh
  1. Check the result. The first command must print nothing, and the second must print the UI VM's IP address:

sudo grep -n "ens160" /etc/issue /etc/illuminit/migrateDatabase.sh ifconfig $IF | awk -F':| +' '/inet / {print $3}'
  1. Run the migration:

sudo /etc/illuminit/migrateDatabase.sh
  1. For the source location, enter 1 (localhost), then the faddom password twice.

  2. For the destination location, enter 2 (remote server), then the user faddom, the DB VM's IP address and its password.

  3. Let the script run until it prints Database migration completed!

SLF4J warnings and chown: missing operand messages during the run don't affect the migration.

Verify the migration

On the UI VM, run:

grep database.server /usr/local/tomcat10/conf/illuminit.properties systemctl status tomcat --no-pager

The first command shows the DB VM's IP address, and Tomcat is active.

On the DB VM, run:

sudo grep -n "/32" /data/pgsql/data/pg_hba.conf systemctl status postgresql --no-pager df -h /data/pgsql/data

Check that:

  • Every /32 line has an address, including the UI VM's IP address

  • PostgreSQL is active, with connections from the UI VM's IP address

  • The data disk shows the new size

Then log in to the UI at https://<UI VM IP>:9443/faddom and check that the activation and settings are still there.

If you experience any issues or need assistance, contact support@faddom.com.

Did this answer your question?