'''AN!CDB''' is designed to run on a stand-alone PC, outside of the cluster. Most users have a machine on which they run <span class="code">[[virt-manager]]</span>, which is perfect for this application. This tutorial will assume that the machine is running [[CentOS]] or [[RHEL]] version 6.x, 64-bit. It is also assumed that it has been installed as a "Graphical Desktop".
Installing '''AN!CDB''' is very easy now. The instructions are at the page below;
Copy and paste the following commands into a terminal logged in as the <span class="code">root</span>. This will install all needed applications, [[perl]] modules and disable <span class="code">selinux</span> and the firewall. Once you have things working, you may wish to re-enable those.
* [[Installing AN!CDB]]
{{warning|1=The dashboard will have password-less SSH access to the cluster nodes. As such, you will want to ensure that the dashboard machine is not on public networks. If you must put it on public networks, be sure to re-enable <span class="code">selinux</span> and the firewall and to take any other security precautions needed for your environment.}}
Make the <span class="code">apache</span> user have a home directory at <span class="code">/var/www/home</span> and enable it's login. This allows the Apache server to have ssh access to the cluster nodes.
<source lang="bash">
mkdir /var/www/home
chown apache:apache /var/www/home/
cp /etc/passwd ~/passwd.orig
sed -i 's/apache\(.*\)www:\/sbin\/nologin/apache\1www\/home:\/bin\/bash/g' /etc/passwd
Still as the <span class="code">apache</span> user, <span class="code">ssh</span> into the two nodes so that you populate the <span class="code">~/.ssh/known_hosts</span> file.
<source lang="bash">
ssh root@an-c01n01
ssh root@an-c01n02
</source>
Now create the [[ssh]] <span class="code">config</span> if you need special ports to reach the nodes (only needed if you're behind a firewall and using port forwards).
Copy your ssh public key to the target nodes;
== Setup Apache To Require a Password ==
First, create an <span class="code">htpasswd</span> file with the user account set.
It's first and foremost goal is to be extremely easy to use. No special skills or understanding of HA is required!
To achieve this ease of use, the cluster must be built to fairly specific requirements. Simplicity of use requires many assumptions be made.
AN!CDB provides;
A single view of all cluster components and their current status.
Control of the cluster nodes. Nodes can be:
Powered On, Powered Off and Fenced
Join to and withdrawn from the cluster
Control of the virtual servers. Servers can be:
Booted up, gracefully shut down and forced off
Migrated between nodes
Create, modify and delete servers;
Create and upload installation and driver media
Provision new servers, installing from media just like bare-iron servers
Insert and Eject CD/DVD images
Change allocated RAM and CPUs
Delete servers that are no longer needed.
AN!CDB is designed to run on a machine outside of the cluster. The only customization needed is for the cluster name and the name of the nodes be added to the program. Once done, AN!CDB will collect and cache everything needed to control the cluster, even when both nodes are offline.
Save and exit. You can now install the OS via PXE. If you plan to leave this machine on a network with an existing PXE server, be sure the change the boot priority to put PXE at the bottom of the list after you finish the install.
OS Install Notes
The internal hard drives shows up as /dev/sdb, so update any kickstart scripts you use accordingly.
Once a minimal OS install is complete, run, follow these tutorials;
Advanced > South Bridge > SB SATA Configuration > OnChip SATA Type = AHCI
Advanced > APM > Restore AC Power Loss = Last State
Save, reboot and re-enter the BIOS (needed to add 'PXE boot' to the boot options).
Boot > Setup Prompt Timeout = 5
Boot > Full Screen Logo = Disabled
Boot > Boot Option #1 = Realtek PXE B02 D00
Save and exit. You can now install the OS via PXE. If you plan to leave this machine on a network with an existing PXE server, be sure the change the boot priority to put PXE at the bottom of the list after you finish the install.
OS Install Notes
The internal hard drives shows up as /dev/sdb, so update any kickstart scripts you use accordingly.
Once a minimal OS install is complete, run, follow these tutorials;