Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Sample Analysis of RAC Infrastructure deployment

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "sample Analysis of RAC Infrastructure deployment", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "sample Analysis of RAC Infrastructure deployment".

Overall diagram

The overall picture is as follows:

Insert a picture that we often have a headache.

Don't talk nonsense, start the text

RAC infrastructure deployment solution

I. preparation or planning in advance:

1. IP address and VLAN partition

A set of RAC services requires two physical hosts, each with a private network remote access address, heartbeat address, or scan IP address, and a total of 5 or 7 IP addresses shared by the two physical hosts. As follows

Access remote IP address: one for each, such as 172.17.1.2 intranet address.

Heartbeat detection IP address: one for each machine; for example, 10.10.10.2 is only used inside the host.

Load VIP address: two hosts share the same address, such as 172.17.1.200 private network address

Or scanIP address: one for each, such as 172.17.1.100. Used for scanning services and heartbeat addresses to cooperate with each other. (may not be used)

In the above IP address, the access remote address and the load vip address are one network segment and one vlan. The heartbeat address is a single vlan and a network segment.

2. Array shared storage

The two physical hosts for RAC share a storage resource, which requires at least 3 or 5 failover disks, which are generally about 5G in size and do not store data. It seems that a general RAC service has the following LUN storage resources.

LUN for failover or multi-transaction processing must have 3-5 disks with a size of about 5G.

The LUN for storing data is generally determined according to the volume of business, such as 1T, 10T, 20T and so on.

Example:

Network configuration (example)

Server hostname

Yfkrzdb1

Yfkrzdb2

Public IP address (bond0)

172.19.2.1

172.19.2.2

Virtual IP address (bond0)

172.19.2.101

172.19.2.102

Private IP address (bond1)

10.10.10.1

10.10.10.2

ORACLE RAC SID

Rac1

Rac2

Cluster instance name

Rac-cluster

SCAN IP (bond0)

Rac-scan: 172.19.2.225

Operating system

Linux

Oracle

11.2.0.3.0

Storage configuration (example):

Size (GB)

Mount point

File system Typ

File system name

Description of storage content

one

/ cluster_ocr1

File system

/ cluster_ocr1

Cluster OCR

one

/ cluster_ocr2

File system

/ cluster_ocr2

Cluster OCR

one

/ cluster_ocr3

File system

/ cluster_ocr3

Cluster OCR

one

/ cluster_vote1

File system

/ cluster_vote1

Cluster voting

one

/ cluster_vote2

File system

/ cluster_vote2

Cluster voting

one

/ cluster_vote3

File system

/ cluster_vote3

Cluster voting

one thousand

/ oracle

File system

/ oracle

Oracle database

eight hundred

/ arch

File system

/ arch

Oracle Archive Lo

The specific size should be configured according to the actual needs.

3. The network topology diagram is as follows (two physical hosts-overall structure)

4. Requirements of a single physical host

Requirements for a single physical machine:

A, host specification: (to be filled, the memory must be large. The two hosts are identical)

The configuration of the two hosts is the same, and each host has two 300G disks to do physical raid1+0 before installing the system. (the free space of the system is about 285g)

B, host physical network card configuration: there are two network cards on each host, and each network card has four interfaces. In the current network, each network card has two network cables connected to different switches. The network card uses gigabit ports to connect with the gigabit ports of the switch. The figure below is as follows

C. Host HBA configuration: HBA is the interface for connecting storage, which is connected by FC-SAN. Each host has two FC cards, and each card has two interfaces. In the current network, each card is connected with a HBA jumper to the fiber optic switch. The figure below is as follows

2. System deployment:

2.1.The system type is RedHat Enterprise Linux 6.464bit. (custom)

2.2.2.The system installation language: US

2.3.The system partition requirements: divided into three partitions: boot partition-ext4 format-size 500m, the remaining space size is all LVM partition requirements, as follows

There are swap partitions in LVM-the size is 128000m, and the rest are all root (/) partitions-the ext4- size is about 157000m.

2.4. System installation package: the option of [Development Environment] will be made in the system installation.

2.5. security settings: iptables and selinux are all turned off by default during boot.

Remote access: turn on the sshd service that comes with the system.

Other configurations: yum configuration-copy the CD package to the / RHEL directory and use the local YUM environment. The missing package needs to be installed by the customer, and the non-conforming package also needs to be handled by the customer.

Network configuration of a single physical machine

Provide the business IP address-private network IP according to the requirement. If it is a RAC application, you need to specify the heartbeat address.

Network port division: configure the corresponding VLAN and port mode on the two switches as shown in figure 1.2. There are mainly two VLAN: private network and heartbeat. The private network VLAN is divided according to the customer IP configuration, and the two VLAN cannot be mixed.

3.2. network card binding: specify bond0 and bond1 in the system, paying special attention to the distinction of the network card and the choice of bond mode. Refer to the website http://chier11.blog.51cto.com/4922641/1314396

Network address configuration: the private network IP address is configured according to the specified ip address for remote access and business transmission. The heartbeat IP address needs to be specified as another network segment address according to the specific situation. It is especially important to note that the heartbeat gateway cannot be configured.

192.168.40.134-K6K7 switch configuration information:

Switch port

VlanID

Server network card

G1/0/0/7

1805

ETH0

G1/0/0/23

five hundred and eighteen

ETH5

G2/0/0/7

five hundred and eighteen

ETH1

G2/0/0/23

1805

ETH7

In this example, there are two network switches K6 and K7, respectively, and the two switches are connected in a stacked manner, so you can see the port information of the two switches after logging in. For example, the first switch port is Ghand 1max 0max 0max 7, and the second switch port is G2max 0max 0max 7. Vlan:1805 is the remote access network segment and vlan518 is the heartbeat network segment.

3.4. Verify:

A. Long ping service IP address to see whether the network status is stable and whether the delay is within an acceptable range.

B. In the long ping, ifdown drops one of the NICs bound by bonb in the private network VLAN to observe the network status. Then ifup the network card, and down another network card, and continue to observe the network status.

C, the heartbeat network card is also verified in accordance with the above requirements.

D. Observe the change of the MAC address of bond during the whole process.

The screenshot of the example is as follows: it mainly looks at the distribution of MAC addresses and network cards bound to bond, as shown in figure 1.2

View of bond:

Configuration of bond:

Storage configuration of two physical machines

If you deploy RAC services, you need to pay attention to the size and number of LUN, as well as the type. RAC needs 3-5 small LUN (about 5 gigabytes in size) to make a transfer disk, and the disk to store data is decided according to business needs.

4.1.Partition of storage zone: partition zone on different fiber switches as shown in figure 1. 3.

4.2. Storage array division: add the corresponding type of storage to the corresponding storage and name it according to the corresponding rules.

4.3, multipath software installation: install the corresponding multipath storage software in the system according to the storage brand. And check whether the status and path are consistent with the actual number of paths and active status.

Verification: the drive letter of the same LUN on the two hosts is the same. The screenshot of the example is as follows (compare whether the ID and drive letter of LUN are consistent between the two hosts)

In the case of LUN on a single host, take Huawei Storage as an example, the host is also installed with Huawei's multipath software.

These are all the contents of the article "sample Analysis of RAC Infrastructure deployment". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report