Oracle Rac setup step by step in KVM virtual machines(OS installation)

OS :Oracle linux 7.4
Database and Grid :12.2.0.1
Above softwares are down from edelivery site.
Most of Documents is about setup with virtualbox ,but for my env ,I prefer kvm and it is also a good challenge for me :)

Before start to install Oracle linux ,we need to config the network ,the default network for kvm is a NAT network named 'default', and it's ip range is 192.168.122.0 as default (you can create your own or edit it ) ,this network is okay for Oracle rac public IP ,but rac also need to private network for heartbeat and performance .KVM is not as easy as virtualbox to create a private network ,we need to create a bridge br0 (for example ) ,as this is only used for internal connection ,so there is no need to assign one IP to this bridge.

virtual disks ,to make is simple , I want to install the OS and softeware in one disk ,another disk is used to ASM shared disk .
to avoid trouble , it is better to assign the size large enough .Not sure why Oracle software is so huge .so for OS disk ,40G should be enough, and for ASM disk ,at least 40GB.

I installed the Linux with mini group packages , that means we can keep the OS simple and small as possible(still used up to 1.2GB for / ,I gave swap about 2GB ) .

After installation , some post install work should be done .
systemctl stop NetworkManager
systemctl stop firewalld
systemctl disable NetworkManager
systemctl disable firewalld
setenforce 0

by default ,the network interface is not onboot start , so we need to edit them ,the config file for interface is under /etc/sysconfig/network-scripts, ifcfg....
we need change the dhcp to static , onboot to yes , add IPADDR=192.168.122.100 NETMASK=255.255.255.0
GATEWAY=192.168.122.1 DNS1=192.168.122.1

Run yum update -y to update the packages update to date.
in the past , we have to create groups ,IDs and tune the kernel setting by ourselves ,but now the easy way to do this is install a rpm package .
yum search preinstall , you will get the right package for you and just install it !
This will install another 56 packages and size is just 36M .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值