RAC Attack - Oracle Cluster Database at Home/RAC Attack 12c/Configure Second Linux VM

From Wikibooks, open books for an open world
Jump to navigation Jump to search


  1. The network won't be available yet because we reinitialized the network adapters so the following changes will need to be done in the VM. Log in as root/racattack. Type the command system-config-network. Device configuration is already highlighted. Press Enter.
  2. RA-Oracle_Linux_6_64bit-Configure_OS-post clone network change
  3. eth0 (eth0) - Ethernet is already highlighted. Press Enter.
  4. RA-Oracle_Linux_6_64bit-Configure_OS-post clone network save devices
  5. Go down to the Static IP line. Change the IP to 192.168.78.52. Go down to Ok and press Enter.
  6. RA-Oracle_Linux_6_64bit-Configure_OS-post clone network eth0
  7. Select eth1 (eth1) - Ethernet and press Enter. Go down to the Static IP line. Change the IP to 172.16.100.52. Go down to Ok and press Enter.
  8. RA-Oracle_Linux_6_64bit-Configure_OS-post clone network eth1
  9. Tab down to Save and press Enter.
  10. RA-Oracle_Linux_6_64bit-Configure_OS-post clone network save devices
  11. Arrow down to DNS configuration and press Enter.
  12. RA-Oracle_Linux_6_64bit-Configure_OS-post clone DNS configuration
  13. In the Hostname field, change to collabn2.racattack. Tab down to Ok and press Enter.
  14. RA-Oracle_Linux_6_64bit-Configure_OS-post clone network dns change
  15. Tab down to Save&Quit and press Enter.
  16. RA-Oracle_Linux_6_64bit-Configure_OS-post clone network save quit
  17. Check that the parameter PEERDNS is set to no in /etc/sysconfig/network-scripts/ifcfg-eth2 to prevent the resolv.conf from being overwritten by the dhcp client:
  18. DEVICE=eth2 TYPE=Ethernet UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=dhcp HWADDR=xx:xx:xx:xx:xx DEFROUTE=yes PEERDNS=no PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth2" USERCTL=no
  19. Remove the udev network rules file. It will be regenerated on the next reboot with the new MAC addresses.
  20. [root@collabn2 ~]# rm -f /etc/udev/rules.d/70-persistent-net.rules
  21. Remove the HWADDR and UUID lines in the network adapter configuration files.
  22. [root@collabn2 ~]# sed -i -e '/HWADDR/d' -e '/UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth[0-2]
  23. Reboot the collabn2 VM by typing reboot.
  24. Start the collabn1 VM as well and start Putty sessions for both. RA-Oracle_Linux_6_64bit-Configure_OS-collabn1 reboot
  25. Verify that all the network interfaces are up.
  26. [root@collabn2 ~]# ip l 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 08:00:27:c9:39:d3 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 08:00:27:33:bd:a8 brd ff:ff:ff:ff:ff:ff 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 08:00:27:5f:61:29 brd ff:ff:ff:ff:ff:ff
  27. Verify that all the ASM devices are visible.
  28. [root@collabn2 ~]# ls -l /dev/asm* brw-rw----. 1 oracle dba 8, 17 Aug 5 15:40 /dev/asm-disk1 brw-rw----. 1 oracle dba 8, 33 Aug 5 15:40 /dev/asm-disk2 brw-rw----. 1 oracle dba 8, 49 Aug 5 15:40 /dev/asm-disk3 brw-rw----. 1 oracle dba 8, 65 Aug 5 15:40 /dev/asm-disk4