Unless noted, words in brackets < > (for example, <Template>) refer to properties found in the dsu.IT.properties.json file (see Sample Properties File (JSON).
- Clone the DSU VM based on the <Template> property, store it in the <Datastore> provided on host <ESXiHost>, and name it <vmName>.
- Assign 4 CPUs and 16 GB memory to the VM.
- Attach the public network adapter to the VM based on the <public_vswitch> property, and set the MTU to 1500.
[Optional] Attach the CMIC network adapters to the VM based on the <cmic_vswitch1> and <cmic_vswitch2> properties, and set the MTU to 1500.
DSU can use the public network to connect to the existing CMIC server. This step is only required if you plan to connect to the CMIC server using the two private CMIC networks that the nodes use.
Use <cmic_primary_ip>, <cmic_secondary_ip>, and <cmic_submask>.If you skip this step, set the CMIC values in the script to "unset" in step 10.
The cmic_configuration.txt file mentioned in Adding the DSU vNode into the Current CMIC Configuration is generated by the PowerCLI scripts. You need to create this file manually.
- [Optional] Attach the private DSU network adapter to the VM based on the <dsu_vswitch> property. Set the MTU to 9000. DSU can use the public network as the backup/restore datapath. This step only is required if you plan to use a private network for the DSU backup/restore datapath. When the private DSU network is used, you add the private network adapter to the DSU VM, and the script adds it to networkConfigure.sh when you use a configuration_bitmask parameter of 4.
- Power on the DSU VM.
[Optional] Copy the database COP entries into hosts_dsu.txt.
This step is highly recommended. List the COP aliases in hosts_dsu.txt as shown in the following examples:If the DSU VM only needs to connect to the bnrprod database:
$ cat hosts_dsu.txt xx.xx.xx.xx bnrprodcop1 xx.xx.xx.xx bnrprodcop2 xx.xx.xx.xx bnrprodcop3 xx.xx.xx.xx bnrprodcop4If the DSU VM only needs to connect to the bnrtest database:
$ cat hosts_dsu.txt xx.xx.xx.xx bnrtestcop1 xx.xx.xx.xx bnrtestcop2 xx.xx.xx.xx bnrtestcop3 xx.xx.xx.xx bnrtestcop4If the DSU VM needs to connect to both the bnrprod and bnrtest databases:
$ cat hosts_dsu.txt xx.xx.xx.xx bnrprodcop1 xx.xx.xx.xx bnrprodcop2 xx.xx.xx.xx bnrprodcop3 xx.xx.xx.xx bnrprodcop4 xx.xx.xx.xx bnrtestcop1 xx.xx.xx.xx bnrtestcop2 xx.xx.xx.xx bnrtestcop3 xx.xx.xx.xx bnrtestcop4
Copy the following files to /root/tvme under the DSU VM.
If step 7 was skipped, create an empty hosts_dsu.txt and copy it into the DSU VM.
- Set the root password. The default is iumb123.
# dos2unix /root/tvme/networkConfigure.sh # sh /root/tvme/networkConfigure.sh <configuration_bitmask> <public_ip> <public_submask> <cmic_primary_ip> <cmic_submask> <cmic_secondary_ip> <vmName> <domain> <dns1> <dns2> hosts_dsu.txt <public_gateway> <dsu_ip> <dsu_submask>Parameters other than configuration _bitmask are found in the dsu.IT.properties.json file.If you are only using the public network, set the following parameters to "unset" (no quotes).
Select the configuration_bitmask value from the following table.
configuration_bitmask Description 0 Only the public network is configured 1 Public network and one private CMIC network are configured 3 Public network and two private CMIC networks are configured 4 Public network and DSU private network are configured 5 Public network, DSU private network, one CMIC private network are configured 7 Public network, DSU private network, two CMIC private networks are configured
- Reboot the DSU VM.
# dos2unix /root/tvme/configureNTP.sh # sh /root/tvme/configureNTP.sh dsu parent <ntp1> <ntp2>
If one server is sufficient, set ntp2 to "unset."
Set the OS time zone:
# dos2unix /root/tvme/setTimeZone.sh # sh /root/tvme/setTimeZone.sh <OSTimeZone>
where OSTimeZone is one of the strings in LinuxTimeZoneStrings.txt.
# dos2unix /root/tvme/dsu_setup.sh # sh /root/tvme/dsu_setup.sh 1 <DSU_IP> <viewpoint_ip>where DSU_IP corresponds to either of the following:
- public_ip: if step 5 was skipped
- dsu_ip: if you are using a private dsu network
Continue with the remaining configuration topics in this chapter.