//
you're reading...
Oracle Database Appliance

Oracle Database Appliance (X5-2) Study (Virtualized Platform deployment) section 5

**This article is only for the purpose of demonstrating of my study of the Oracle Database appliance, not for any other purposes.**

Oracle Database Appliance (X5-2) Deployment (Virtualized Platform) section 5 – Add additional VLAN

In the Oracle Database Appliance virtualized deployment, we can add additional vlan. After read the doc oda-vp-vlan-2418821.pdf, DBAs and Network Engineers can add additional vlans easily with oakcli in ODA (Is that a true story? I don’t think so).

List currently vlan from oda_base

[root@testodanode01 #]$ oakcli show vlan
        NAME                     ID    INTERFACE   NODENUM

        net1                     1     bond0       0
        net1                     1     bond0       1
        net2                     1     bond1       0
        net2                     1     bond1       1
        priv1                    1     icbond0     0
        priv1                    1     icbond0     1
        vlan17                   17     bond0       0
        vlan17                   17     bond0       1

From above output, we can spot vlan17(with Network Interface bond0) is already running for public network(Dom0, oda_base on vlan17). Now we have to create the additional vlan for the database backup.

From oda_base:

[root@testodanode01 ~]# ll -ls /etc/sysconfig/network-scripts/ifcfg-eth*
total
4 -rw-r--r-- 3 root root 127 Feb 25 15:33 ifcfg-eth0
4 -rw-r--r-- 3 root root 75 Feb 25 16:43 ifcfg-eth1
4 -rw-r--r-- 3 root root 75 Feb 25 15:33 ifcfg-eth2
4 -rw-r--r-- 3 root root 162 Feb 25 16:22 ifcfg-eth3

[root@testodanode01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
#auto generated by OAK
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.16.23
NETMASK=255.255.255.0
TYPE=ETHERNET
MTU=9000

[root@testodanode01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
#auto generated by OAK
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
TYPE=ETHERNET

[root@testodanode01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
#auto generated by OAK
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
TYPE=ETHERNET

[root@testodanode01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth3
# Xen Virtual Ethernet
DEVICE=eth3
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:19:3f:17:cd:gb
TYPE=Ethernet
IPADDR=10.208.17.21
NETMASK=255.255.255.0
GATEWAY=10.208.17.252

Depend on the above network configuration on ODA node01, we can see ifcfg-eth0 is for private connection using IP 192.168.16.23(with 24bit subnet)

ifcfg-eth1 and ifcfg-eth2 are for network binding interface bond0. So there are no IPs to assign to these 2 network interfaces. These interfaces are generated by OAK automatically, so don’t touch and you don’t need to modify it.

ifcfg-eth3 is configuated with IP 10.208.17.21. This is ODA node01 in publice network.

Now try add vlan, from ODA_BASE

[root@testodanode01 ~]#  oakcli add vlan vlan27 vlanid 27 –if bond0 –node 0
[root@testodanode01 ~]#  oakcli add vlan vlan27 vlanid 27 –if bond0 –node 1

[root@testodanode01 ~]# oakcli show vlan

        NAME                     ID    INTERFACE   NODENUM

        net1                     1     bond0       0
        net1                     1     bond0       1
        net2                     1     bond1       0
        net2                     1     bond1       1
        priv1                    1     icbond0     0
        priv1                    1     icbond0     1
        vlan27                   27     bond0       0
        vlan27                   27     bond0       1
        vlan17                   17     bond0       0
        vlan17                   17     bond0       1

Add vlan27 from Dom0 for ODA node1

root@testodanode01-dom0 ~]# oakcli configure oda_base
Core Licensing Options:
1. 2 CPU Cores
2. 4 CPU Cores
3. 6 CPU Cores
4. 8 CPU Cores
5. 10 CPU Cores
6. 12 CPU Cores
7. 14 CPU Cores
8. 16 CPU Cores
9. 24 CPU Cores
Current CPU Cores :8
Selection[1 .. 9](default 24 CPU Cores) : 4
ODA base domain memory in GB(min 16, max 244)(Current Memory 128G)[default 128] :
INFO: Using default memory size i.e. 128 GB
Additional vlan networks to be assigned to oda_base ? (y/n) [n]: y
Select the network to assign (vlan27): vlan27
Additional vlan networks to be assigned to oda_base ? (y/n) [n]:
Vlan network to be removed from oda_base ? (y/n) [n]: n
INFO: Node 0:Configured oda base pool
INFO: Node 1:Configured oda base pool
INFO: Node 0:ODA Base configured with new memory
INFO: Node 0:ODA Base configured with new vcpus
INFO: Node 0:New vlans added in ODA Base
INFO: Changes will be incorporated after the domain is restarted on Node 0.
INFO: Node 1:ODA Base configured with new memory
INFO: Node 1:ODA Base configured with new vcpus
INFO: Node 1:New vlans added in ODA Base
INFO: Changes will be incorporated after the domain is restarted on Node 1.
INFO: Updating /etc/sysctl.conf in oda_base domain with parameter "vm.nr_hugepages=51626"

root@testodanode01-dom0 ~]# oakcli restart oda_base

Restart the ODA_BASE from Dom0 for node2

root@testodanode02-dom0 ~]# oakcli restart oda_base

Note: to do above steps in production environment, DBAs need to arrange outage for the database server.

Wait until both oda_base has been restarted. Check the vlan configuration on Dom0

From Dom0:

[root@testodanode01-dom0 ~]# oakcli show vlan
           NAME        ID      INTERFACE        NODENUM
           net2         1          bond1              0
           net1         1          bond0              0
          priv1         1        icbond0              0
          vlan17        17         bond0              0
         vlan27         27         bond0              0
           net2         1          bond1              1
           net1         1          bond0              1
          priv1         1        icbond0              1
          vlan17        17         bond0              1
         vlan27         27         bond0              1

From oda_base:


[root@testodanode01 ~]# oakcli show vlan

        NAME                     ID    INTERFACE   NODENUM

        net1                     1     bond0       0
        net1                     1     bond0       1
        net2                     1     bond1       0
        net2                     1     bond1       1
        priv1                    1     icbond0     0
        priv1                    1     icbond0     1
        vlan27                   27     bond0       0
        vlan27                   27     bond0       1
        vlan17                   17     bond0       0
        vlan17                   17     bond0       1

Both Dom0 and oda_base show vlan27 added.

Now, let’s check whether the oda_base will have a new network interface – ifcfg-eth4.

[root@testodanode01 ~]# ll -ls /etc/sysconfig/network-scripts/ifcfg-eth*
total
4 -rw-r--r-- 3 root root 127 Feb 25 15:33 ifcfg-eth0
4 -rw-r--r-- 3 root root 75 Feb 25 16:43 ifcfg-eth1
4 -rw-r--r-- 3 root root 75 Feb 25 15:33 ifcfg-eth2
4 -rw-r--r-- 3 root root 162 Feb 25 16:22 ifcfg-eth3

What’s happen here? Where is the new ifcfg-eth4?. vlan27 has been appears on both Dom0 and oda_base.

Well, can I add the ifcfg-eth4 manually? Let’s try it.

[root@testodanode01 ~]# cd /etc/sysconfig/network-scripts
[root@testodanode01 network-scripts]#cp ifcfg-eth3 ifcfg-eth4

Open the file ifcfg-eth4, modify the entry for DEVICE, MACADDR, IPADDRESS, NETMASK AND GATEWAY

[root@testodanode01 network-scripts]# vi ifcfg-eth4
[root@testodanode01 network-scripts]# cat ifcfg-eth4
# Xen Virtual Ethernet
DEVICE=eth4
BOOTPROTO=none
ONBOOT=yes
HWADDR=70:F2:FV:FC:78:FC
TYPE=Ethernet
IPADDR=10.208.27.21
NETMASK=255.255.255.0
GATEWAY=10.208.27.252

Execute the command “ifup ifcfg-eth4”

[root@testodanode01 network-scripts]# ifup ifcfg-eth4
[root@testodanode01 network-scripts]#
[root@testodanode01 network-scripts]# service network restart

Ping this newly assigned IP. It works!. Do the same on node2 oda_base.

Advertisements

About daviewning

I am an Oracle DBA

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: