Last modified on 10 January 2014, at 11:39

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


  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.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone network change

  2. eth0 (eth0) - Ethernet is already highlighted. Press Enter.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone network save devices

  3. Go down to the Static IP line. Change the IP to 192.168.78.52. Go down to Ok and press Enter.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone network eth0

  4. 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.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone network eth1

  5. Tab down to Save and press Enter.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone network save devices

  6. Arrow down to DNS configuration and press Enter.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone DNS configuration

  7. In the Hostname field, change to collabn2.racattack. Tab down to Ok and press Enter.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone network dns change

  8. Tab down to Save&Quit and press Enter.

    RA-Oracle_Linux_6_64bit-Configure_OS-post clone network save quit

  9. 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:
    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
    
  10. Remove the udev network rules file. It will be regenerated on the next reboot with the new MAC addresses.
    [root@collabn2 ~]# rm -f /etc/udev/rules.d/70-persistent-net.rules
    
  11. Remove the HWADDR and UUID lines in the network adapter configuration files.


    [root@collabn2 ~]# sed -i -e '/HWADDR/d' -e '/UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth[0-2]
    
  12. Reboot the collabn2 VM by typing reboot.

    Start the collabn1 VM as well and start Putty sessions for both.

    RA-Oracle_Linux_6_64bit-Configure_OS-collabn1 reboot

  13. Verify that all the network interfaces are up.
    [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
    
  14. Verify that all the ASM devices are visible.
    [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