Configuring high availability on virtual machines

Note: The following procedures are for VMWare ESX.

Workflow

The following figure illustrates the workflow for configuring High Availability:

20130620_121459-17

Disable SCSI reservation

Follow the steps to disable SCSI reservation:

  1. Make an SSH connection to the Node.
  2. Execute the command touch /etc/disablescsi.

Creating virtual machines

  1. Launch vSphere vClient (Start > All Programs > VMware Sphere Client).
  2. In the login page, provide the IP address of ESX host. Also provide the root user name and password that you specified during the setup of your server.
  3. VMware vSphere Client login
  4. In the following page, right-click your server IP address and choose New Virtual Machine.
  5. right_click_ip_address

  6. In the following page, select Configuration type as Custom and then click Next.
  7. In the following page, specify a name for the virtual machine and then click Next.
  8. From the list of Datastores, select one and then click Next.
  9. In the following screen, leave the default option as it is and then click Next.
  10. Select Other for Guest Operating System and then FreeBSD (64-bit) from the drop-down list.
  11. create_virtual_machine
  12. Click Next.
  13. In the following page, specify the number of CPUs required and then click Next.
  14. Specify the required RAM size and then click Next.
  15. Select the number of interfaces you want to connect to and then click Next.
  16. In the following page, select the default option and then click Next.
  17. create_virtual_machine.scsi_controller
  18. In the following page, select the default option and then click Next.
  19. Specify disk size.
  20. Do the following:
    1. (For vm3 and vm4) Select the option Thick Provision Eager Zeroed.
    2. (For vm1 and vm2) Leave the default settings as it is.

    create_virtual_machine_create_disk

  21. Click Next.
  22. In the following page, select the default option and then click Next.
  23. Select the option Edit the virtual machine settings before completion and then click Continue.
  24. create_virtual_machine_complete
  25. Set the SCSI Controller type to Physical and then click Finish for vm3 and vm 4. For vm1 and vm2, leave the default settings as it is.

Discover iSCSI LUNs on ESX

  1. Log in to ESX and then select properties (Configurations > Storage Adapters).
  2. log_in_esx
  3. In the following page, select Dynamic Discovery and then click Add.
  4. Specify the IP address of the iSCSI Server and then click OK.
  5. Ensure that the LUNs are discovered in Static Discovery and exit.
  6. Click Yes and close the rescan message that pops up.
  7. The connected targets in Details section display the discovered iSCSI LUNs.

Mapping iSCSI LUN as a raw device on ElastiStor HA Node1

  1. Log in to ESX and then in the left pane, right-click the virtual machine name and then select Edit Settings.
  2. In the Virtual Machine Properties page, click Add and then select Hard Disk.
  3. In the following page, select the disk type as Raw Device Mapping and then click Next.
  4. raw_disk
  5. From the list, select the iSCSI LUN discovered on the ESX and then click Next.
  6. Leave the default options as they are in the following pages and complete the wizard.

Mapping iSCSI LUN as a virtual disk on ElastiStor HA Node2

  1. Log in to ESX and then in the left pane, right-click the virtual machine name and then select Edit Settings.
  2. In the Virtual Machine Properties page, click Add and then select Hard Disk.
  3. In the following page, select the disk type as Use an existing virtual disk and then click Next.
  4. virtual_disk
  5. (In the following page) Click Browse and locate vm3 which is ElastiStor HA Node 1 in the datastore, select the disks whichare in vmdk format, and then click OK.
  6. browsw_datastores
  7. In the following pages, leave the default settings as they are and complete the wizard.