Advertisement

Friday, March 3, 2017

Oracle Database - Grid Infrastructure / RAC 12c Installation - Part 5 - Machine Cloning (OEL 7.1)

 

In this blog we are going to clone the machine which we create

Before cloning we will create the directories (make note of users)

[root@rac1 ~]# mkdir /u01
[root@rac1 ~]# chmod 777 /u01
[root@rac1 ~]# chmod 777 /u01/app
[root@rac1 ~]# chown -R oracle:oinstall /u01
[grid@rac1 ~]$ mkdir -p  /u01/app/12.1.0.2/grid
[oracle@rac1 ~]$ mkdir -p /u01/app/oracle/product/12.1.0.2/dbhome_1

shutdown -h now


  • Create a New Machine but create it without a hdd, Make Memory as 3072M and Processor count as 2
  • Make sure to attach 4 network interfaces






"C:\Program Files\Oracle\VirtualBox\VBoxManage" clonehd "C:\Users\vineet\VirtualBox VMs\OEL_71_Node1\OEL_71_Node1.vdi" "C:\Users\vineet\VirtualBox VMs\OEL_71_Node3\OEL_71_Node3.vdi"
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone medium created in format 'VDI'. UUID: 44a95fd1-3958-4796-a277-5da5859fac99




(I will create one more copy as backup)
"C:\Program Files\Oracle\VirtualBox\VBoxManage" clonehd "C:\Users\vineet\VirtualBox VMs\OEL_71_Node1\OEL_71_Node1.vdi" "C:\Users\vineet\VirtualBox VMs\OEL_71_Node3\OEL_71_Node3.vdi"

Choose Existing Disk which is just cloned and click OK for the new disk




Attach now the shared disks to this machine 

"C:\Program Files\Oracle\VirtualBox\VBoxManage" storageattach OEL_71_Node2 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1_disk.vdi --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage" storageattach OEL_71_Node2 --storagectl "SATA" --port 2 --device 0 --type hdd --medium asm2_disk.vdi --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage" storageattach OEL_71_Node2 --storagectl "SATA" --port 3 --device 0 --type hdd --medium asm3_disk.vdi --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage" storageattach OEL_71_Node2 --storagectl "SATA" --port 4 --device 0 --type hdd --medium asm4_disk.vdi --mtype shareable


Make below Changes to the new machine

Hostname change
[root@rac1 ~]# cat /etc/hostname 
rac2.localdomain

Make IPADDR changes as below
[root@rac1 network-scripts]# grep IPADDR ifcfg*
ifcfg-enp0s10:IPADDR=192.168.10.2
ifcfg-enp0s3:IPADDR=10.10.10.2
ifcfg-enp0s8:IPADDR=192.168.0.2
ifcfg-enp0s9:IPADDR=192.168.1.2


Make sure correct entry is there in /etc/resolv.conf
nameserver 10.10.10.1
search localdomain
options attempts:1
options timeout:1

Disable the DNS service - for our setup one dns server is fine
systemctl disable named.service

No comments:
Write comments