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.
In Prism Central, go to Infrastructure > Compute & Storage > OVAs and click Upload OVA.
Select the OVA file and the AHV cluster, and enter a name. Leave the checksum field empty.
In Tasks, wait until OVA validate shows Succeeded.
Select the OVA, then Actions > Deploy as VM.
Name the VM, set 8 vCPUs and 16 GB RAM, and select Legacy BIOS Mode and Default Boot Order.
Attach the network, create the VM, power it on, and click Launch Console.
Configure the UI VM
AHV can't pass the IP address and passwords to the VM, so you set them from the console.
Log in as
faddomand run the network script. On AHV it lists onlyens3, so accept it.
cd /etc/illuminit
sudo ./configIp.sh
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.
Activate Faddom with your activation key.
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
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.
On the DB VM, check that passwordless sudo works. The migration script needs it.
sudo -u faddom sudo whoami
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.
On the DB VM, find the data disk. The filesystem should be xfs.
df -h /data/pgsql/data lsblk -f
Shut down the DB VM:
sudo shutdown -h now
In Prism Central, edit the VM's disks and increase the size of the data disk.
Power on the VM and repartition the disk, replacing
sdXwith 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.
Reboot, then grow the filesystem:
sudo reboot sudo xfs_growfs /dev/sdX1 df -h /data/pgsql/data
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.
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.shCheck 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}'Run the migration:
sudo /etc/illuminit/migrateDatabase.sh
For the source location, enter
1(localhost), then the faddom password twice.For the destination location, enter
2(remote server), then the userfaddom, the DB VM's IP address and its password.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
/32line has an address, including the UI VM's IP addressPostgreSQL 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.