2015-04-06 Build REDFERN2 on Victoria


Overview

Following the success of creating the first node of the REDFERN cluster ( REDFERN1 ), I went ahead with the creation of the second node ( REDFERN1 ).

References

Procedure

In general, I followed the same procedure as described in Build REDFERN1 on Victoria .

Shutdown REDFERN1

In order to avoid any conflicts over the VNC console, I shutdown REDFERN1 as follows:

xl shutdown $(xl domid redfern1)

Instead of using xl list to find the domain id of REDFERN1 , before issuing the xl shutdown command, I fold these two (2) steps into one (1).

Create Local Disk for REDFERN2

As for REDFERN1 , I created a 50G disk for use by the operating system for REDFERN2 as follows:

dd bs=1G count=50 if=/dev/zero of=/OVS/running_pool/REDFERN/redfern2/root_disk &

Create XEN Configuration File for REDFERN1

cat <<DONE >redfern2.hvm # ===================================================================== # HVM guest configuration for REDFERN1 # Generated $(date +"%F %T") # ===================================================================== # # This is a fairly minimal example of what is required for an # HVM guest. For a more complete guide see xl.cfg(5) # This configures an HVM rather than PV guest builder = "hvm" # Guest name name = "redfern2" # 128-bit UUID for the domain as a hexadecimal number. # Use "uuidgen" to generate one if required. uuid = "$(uuidgen)" # Initial memory allocation (MB) memory = 4096 # Number of VCPUS vcpus = 2 # Network devices # A list of 'vifspec' entries as described in # docs/misc/xl-network-configuration.markdown vif = [ 'mac=00:16:3E:00:00:12,bridge=xenbr0', 'mac=00:16:3E:00:00:13,bridge=xenbr1', 'mac=00:16:3E:00:00:14,bridge=xenbr2', 'mac=00:16:3E:00:00:15,bridge=xenbr3' ] # Disk Devices # A list of 'diskspec' entries as described in # docs/misc/xl-disk-configuration.txt disk = [ '/OVS/running_pool/REDFERN/redfern2/root_disk,raw,xvda,rw', '/OVS/iso_pool/V46135-01.iso,raw,xvdc,ro,cdrom', '/OVS/running_pool/REDFERN/shared/DATA_01,raw,xvdd,rw', '/OVS/running_pool/REDFERN/shared/FRA_01,raw,xvde,rw', '/OVS/running_pool/REDFERN/shared/REDO1_01,raw,xvdf,rw', '/OVS/running_pool/REDFERN/shared/REDO2_01,raw,xvdg,rw', '/OVS/running_pool/REDFERN/shared/VOTE_01,raw,xvdh,rw' ] # Guest VGA console configuration, either SDL or VNC vnc = 1 vnclisten = "0.0.0.0" vncdisplay = "4" DONE

The MAC addresses for the NICs were obtained from the listing on Victoria VM Resources .

Complete Network Configuration

Using the example in Set Up XEN Network , I ran the following script, on REDFERN1 , to populate the device descriptions for the four (4) Ethernet NICs:

cd /etc/sysconfig/network-scripts for iface in 0 1 2 3 do nw=$(((iface + 1))) nic=$(((18 + iface))) ifacename=eth${iface} uuid=$(uuidgen) hwaddr=$(printf "00:16:3e:00:00:%0.2X" ${nic}) # ==== Create Interface cat <<DONE >ifcfg-${ifacename} # ----------------------------------------------------------------------------- # NIC ${ifacename} # Generated $(date +"%F %T") # ----------------------------------------------------------------------------- # Device identification DEVICE="${ifacename}" UUID="${uuid}" HWADDR="${hwaddr}" # Device options BOOTPROTO="static" TYPE="Ethernet" ONBOOT="yes" DELAY="0" NM_CONTROLLED="no" # IPV4 Networking IPADDR="192.168.${nw}.141" NETMASK="255.255.255.0" GATEWAY="192.168.1.1" # DNS DNS1="192.168.1.252" DNS2="192.168.1.1" PEERDNS="yes" DOMAIN="yaocm.id.au" DONE done

Then I brought this NICs up as follows:

ifup eth0 ifup eth1 ifup eth2 ifup eth3

ping confirmed connectivity on both REDFERN2 and VICTORIA :

ping -c 1 192.168.1.141 ping -c 1 192.168.2.141 ping -c 1 192.168.3.141 ping -c 1 192.168.4.141

Rename Host

Because I did not set up networking during OEL7 installation, the hostname was left as localhost.hostname . To rectify this, I used the following command:

hostname redfern2.yaocm.id.au
And I updated /etc/hostname.

I started REDFERN1 and made a similar change there as well.