• No results found

5 Installing Linux Infrastructure Components

In document 01 HCNA-Cloud V2.0 Lab Guide (Page 83-97)

1

Step 1: Create a bare VM.

5. (Only for vAG, vLB, vAG/vLB) Set 'NIC type' to 'HW_V_NET'. When create vAG, vLB, vAG/vLB VMs, you should set 'NIC type' to 'HW_V_NET’.

6. Configure NICs. Select port groups based

on actual plan.

• Select the service plane port group for the first NIC;

Select the management plane port group for the second NIC. Among the Linux VMs in the scenarios described in this document, only vAG/vLB VMs have management plane NICs.

7. Click Next.

5.1 Creating Linux VMs

1

2

3

2 1 3

2 3

4

Step 1: Create a bare VM.

5. Configure disks. Select a

non-virtualization data store. and set the Configuration mode to Common.

9. Confirm the settings, and click Finish. Record the VM ID. For example: i-0000006

10. Click Create Another and refer to the preceding steps to create the GaussDB/WI/HDC, active and standby vAG/vLB VMs. Record the VM ID.

-

5.1 Creating Linux VMs

Step 2 Set the automatic recovery attribute for Linux infrastructure VMs.

1. Log in to the VRM active node by using PuTTY with the VRM floating IP address. The login account is gandalf.

Default password:

Huawei@CLOUD8 2. Run the following command to switch to the root user.

su – root TMOUT=0

Default password:

Huawei@CLOUD8!

3. For each newly created infrastructure VM, run the following command:

sh /opt/galax/vrm/tomcat/script/modifyRecover.sh vmId true vmId is the ID of the VM.

This command must be run for each infrastructure VM.

4. Restart the VRM process.

service vrmd restart

Run this command only after the previous step is complete on all the VMs.

5. On the FusionCompute portal, choose VM and Template, click the VM tab, locate the row that contains the GaussDB/WI/HDC/License VM, choose More > Forcibly stop.

Stop and restart the VM for the configuration to take effect.

6. After Status of the VM changes to Stopped, locate the row that contains the VM, choose Start.

-

7. Refer to 5 to 6 to stop and start all Linux infrastructure VMs. -

Select data stores in different RAID groups for the VMs working in active/standby mode.

CAUTION

Step 3 Set VMs to be mutually exclusive.

1. Choose Computing Pool > Host and Cluster.

2. Open the window for setting resource scheduling policies. To ensure reliability, set the VMs of the same component to be mutually exclusive so that the VMs are always on different host nodes. When a host is faulty, FusionAccess can continue to work properly.

3. Add a rule. -

4. Set Type to Keep VMs mutually exclusive.

5. Add the GaussDB/WI/HDC/License and GaussDB/WI/HDC VMs to Selected VMs.

-

6. Click OK as prompted to add the rule. -

7. Refer to 3 to 6 to set vAG/vLB VMs to be mutually exclusive. -

8. On the lower part of the page, click OK. -

5.1 Creating Linux VMs

2 1

3

4

5

6

1

2

2 1

Step 4 Install the OS.

1. Log in to the GaussDB/WI/HDC/License component VM. Locate the row that contains the VM.

2. Mount a CD-ROM drive. -

3. Select Install within 30 seconds, and press Enter. Within 30 seconds

4. Configure the service IP address and gateway (B2). Repeat to configure the

management IP for the vAG/vLB VM, where is eth1: not configured.

Keyboard operations:

• Press Tab, ↑, or ↓ to move the cursor.

• Press Enter to select or execute the item that the cursor selects.

• Press the space key to select the item selected by the cursor.

• When you enter a digit, use the digital keys in the upper part of the

5.1 Creating Linux VMs

1

Step 4 Install the OS.

5. Configure the gateway. Service plane gateway.

6. Configure the host name (B2). -

7. Configure the time zone. -

8. Configure the password (C2). -

9. Press F12 and press Enter twice to start the OS installation. About 8 minutes.

10. Log in to the VM using the root account and the password configured in step 8.

- 2

1 3

1

2

3 4

1

3

2

5.1 Creating Linux VMs

1

2

1

Step 5: Install the PV-Driver.

1. On the FusionCompute portal, mount tools on the GaussDB/WI/HDC/License VM.

Locate the row that contains the

GaussDB/WI/HDC/Licens e VM.

2. Click OK twice. -

3. In the VNC window on the VM, install the PV-Driver.

4. Press Enter twice to install the PV-Driver. -

5. After the PV-Driver is installed, press F8 as prompted to restart the VM. - 6. After the restart, log in to the VM as the root user. -

Step 6 Install other VMs.

1. Refer to step 4 to step 5 in this section to install the following software on the GaussDB/HDC/WI VM and the active and standby vAG/vLB VMs:

1. Install the OS.

2. Install the PV-Driver.

You can install OS on different VMs at the same time. After OS installation, perform subsequent operation.

5.1 Creating Linux VMs

4

2 1

1 2

3 4

5.2 Installing the GaussDB/HDC/WI/License Components

Step 1 Install components.

1. In the VNC window on the VM, enter startTools to start the installation tool.

-

2. Select Software > INSTALL All in sequence. -

3. Press Enter, after the installation finished and press Enter. -

Step 2 Configure the GaussDB

1. Configure HA information (B2). -

3

4 1

2

1

2

3

5.2 Installing the GaussDB/HDC/WI/License Components

Step 2 Configure the GaussDB

2. Configure HA information (B2).

• Local HA IP Address is the service plane IP address of this VM.

• Peer HA IP address is the service plane IP address of the peer VM that works with this GaussDB in

active/standby mode.

• Gateway: service plane gateway

3. Configure the floating IP address of GaussDB (B2). -

4. Configure the floating IP address of GaussDB (B2).

Floating IP address and subnet mask of GaussDB

1

2

1

1

2

3

1

2

1

5.2 Installing the GaussDB/HDC/WI/License Components

Step 3 Install the GaussDB/HDC/WI server.

1. Refer to the previous information in this section, and log in to the

GaussDB/HDC/WI component server to perform the following operations:

1. Select install all to install all components.

2. Configure the GaussDB HA information and floating IP address.

• The procedure for installing both the active and standby servers are the same, except for the data planning. You can obtain the data from the data planning table.

• The GaussDB

components on the two servers work in

active/standby mode. If HA is configured, the two servers are peers.

5.3 Installing the vAGvLB Components

Step 1 Install vAG.

1. In the VNC window on the VM, enter startTools to start the installation tool. - 2. Go to the installation directory.

1

2

3

4

5

Step 2 Install vLB.

1. Run the installation program. -

1

2

4

5.3 Installing the vAGvLB Components

Step 3 Configure the IP address of the WI/UNS servers.

1. Go to the installation directory. -

2. Configure the IP address of the WI/UNS servers (B2). Service plane IP addresses of the WI/UNS servers.

1

2

5

5

3

4

5.3 Installing the vAGvLB Components

Step 4 Configure the HA of the vLB.

1. Configure the HA of the vLB (B2). -

2. Configure the IP address of the HA (B2). •Local HA IP Address is the service plane IP address of this VM.

•Peer HA IP address is the service plane IP address of the peer VM that works with this vLB in load balancing mode.

•Gateway: Service plane gateway

1

2

5 3

4

5

5.3 Installing the vAGvLB Components

Step 5 Configure the Float IP addresses for the vLB servers.

1. Go to the installation directory. -

2. Configure the Float IP addresses for the vLB servers. Service plane Float IP addresses of the vLB servers.

1

2

3

4

5

Step 6 Install the vAG/vLB servers.

1. Refer to the previous information in this section, and perform the following operations to install the standby vAG/vLB component:

1. Install the vAG component.

2. Install the vLB component.

3. Configure IP addresses for the WI servers.

4. Configure the HA for the vLB servers.

5. Configure the floating IP address for the vLB servers.

• The procedure for installing both the active and standby servers are the same, except for the data planning. You can obtain the data from the data planning table.

6.1 Creating an Infrastructure VM Template

Step 1 Create a bare VM.

1. On the FusionCompute portal, choose VDC Management > VM and Template.

-

2. On the Summary page, click Create VM. -

3. On the Create VM page, click Next. -

4. Set the VM properties. VM name:

Customized OS version:

Windows Server 2008 R2 Standard 64bit

4 VCPU/4 GB memory/1 disk/1 NIC Select Restart.

In document 01 HCNA-Cloud V2.0 Lab Guide (Page 83-97)

Related documents