This section provides steps for a starter installation of Dynamic Cluster to enable dynamic virtual machine provisioning. Complete these steps to install LSF and Platform Cluster Manager and enable Dynamic Cluster on your chosen hosts.
Swap space on your KVM hypervisors should be at least double their physical memory for VM saving to work properly.
Either use an existing Oracle database installation or download the following Oracle database packages:
Download the Oracle Instant Client RPM packages from http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html after accepting the license agreement at the top of the page.
Download the Oracle Database XE database package from http://www.oracle.com/technetwork/products/express-edition/downloads/index.html after accepting the license agreement at the top of the page.
Copy the Oracle database packages to the directory where the Platform Cluster Manager management server package is located. The Platform Cluster Manager management server installer will install the Oracle packages automatically.
All hypervisor hosts must be running the same operating system type and version.
To install the Platform Cluster Manager master services in the default installation folder /opt/platform, complete the following installation steps on the intended management server:
To install the Platform Cluster Manager agent (PVMO agent) on the KVM hypervisors, complete the following installation steps on each intended hypervisor:
To complete the Platform Cluster Manager installation, add IP address to the IP pool.
When Dynamic Cluster powers on a VM, it must be assigned an IP address by the management server from its IP pool. VM IP addresses and host names must be DNS resolvable.
Platform Cluster Manager creates new virtual machines based on a template which contains the guest operating system and the application stack. To create a VM template, you must first manually create a VM on one of your hypervisors, install the basic software components required for the LSF compute host, and convert it to a template using the Portal for Platform Cluster Manager.
The rest of this guide assumes that you have used the directory /opt/lsf as your top-level LSF installation directory.
Complete the following steps to make your LSF installation aware of the Dynamic Cluster functionality and mark hosts in your cluster as valid for dynamic provisioning.
You can define a post-provisioning script in Dynamic Cluster to run when a virtual machine of a given template is first started. For example, this functionality allows you to further customize the VM instance configurations by adding users, installing applications, or running any other commands you need before running a VM job.
The name and arguments of the post-provisioning script for each given template is specified in
the template definition of the Dynamic Cluster configuration file. Enable your script by copying it to the post
provisioning scripts directory
(/opt/platform/virtualization/conf/postProvisionScript)
on
your Platform Cluster Manager management server.
egosh user logon -u Admin -x Admin
egosh service stop VMOManager
egosh service start VMOManager
After completing the installation steps, start the LSF services on your master host and run the bdc host and bdc tmpl commands to verify that your cluster is up and running:
# bdc host
NAME STATUS TYPE TEMPLATE CPUS MAXMEM RESGROUP NPMJOBS
dc-kvm2 on HV_PM RH_KVM 4 7998 MB KVMRedHa 0
dc-kvm1 on HV_PM RH_KVM 4 7998 MB KVMRedHa 0
# bdc tmpl
NAME MACHINE_TYPE RESGROUP
RH_KVM VM KVMRedHat_Hosts
If you update the Platform Cluster Manager entitlement file, restart the ego service by running egosh ego restart.
To verify that the entitlement file is working, run egosh resource list and verify that there are no error messages about entitlement files.