LOGICAL DOMAINS (CONFIGURING CONTROL DOMAIN LIVE MIGRATION)
Logical Domains (Ldom) is a kind of virtualization that permit to users or administrators , allocate system resources from one server to multiple VM's, where each Virtual Machine can use its own operating system.
You will need to have Oracle Server that support it, for example T1XXXX until T5XXXX
Now what do you need to configurate it, You need two servers in order to have or testing Live Migration, What configuration we need?
I will show how to configurate the Link Aggregation in order to virtualizate the switch with Aggregation.
1.- The network team need to configurate the interfaces in order to do the Link Aggregation
Once we have received the information from network team that Link Aggregation is configured:
We can proceed to configure two Link Aggregation (host administration 192.168.1.20 /backup 192.168.2.30)
root@t5# dladm create-aggr -P L3 -L active -l net2 -l net4 aggr1
root@t5# dladm create-aggr -P L3 -L active -l net6 -l net8 aggr2
root@t5# ipadm create-ip aggr1root@t5# ipadm create-ip aggr2root@t5# ipadm create-addr -T static -a 192.168.1.20/24 aggr1/v4root@t5# ipadm create-addr -T static -a 192.168.2.30/24 aggr2/v4root@t5# ifconfig -a
Validate the current configuration on the server, you can list the information as below
root@t5# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-cv- UART 255 256G 0.5% 0.5% 84d 5h 18m
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-cv- UART 255 256G 0.5% 0.5% 84d 5h 18m
Save this output in order to understand how the resources are reserved when you assign resources some steps below
root@t5# ldm list-device
CORE
ID %FREE CPUSET
0 100 (0,1,2,3,4, 5, 6, 7)
1 100 (8, 9, 10, 11, 12, 13, 14, 15)
2 100 (16, 17, 18, 19, 20, 21, 22, 23)
MEMORY
PA SIZE
0x130000000 128G
0x80000000000 128G
ID %FREE CPUSET
0 100 (0,1,2,3,4, 5, 6, 7)
1 100 (8, 9, 10, 11, 12, 13, 14, 15)
2 100 (16, 17, 18, 19, 20, 21, 22, 23)
MEMORY
PA SIZE
0x130000000 128G
0x80000000000 128G
You can see above that we have a server with 255 VCPU and 512 GB allocated in memory, that you can assing to the Virtual Machines, however we can reserve to the T5 in this case 4 VCPU and 4 G memory
How we can do that
root@t5# ldm set-mau 1 primary (Security Encryption)
root@t5# ldm set-vcpu 4 primary
root@t5# ldm set-memory 4G primary
root@t5# ldm list-device
CORE
ID %FREE CPUSET
0 100 (4, 5, 6, 7)
1 100 (8, 9, 10, 11, 12, 13, 14, 15)
2 100 (16, 17, 18, 19, 20, 21, 22, 23)
MEMORY
PA SIZE
0x130000000 123G
0x80000000000 128G
ID %FREE CPUSET
0 100 (4, 5, 6, 7)
1 100 (8, 9, 10, 11, 12, 13, 14, 15)
2 100 (16, 17, 18, 19, 20, 21, 22, 23)
MEMORY
PA SIZE
0x130000000 123G
0x80000000000 128G
Create a new profile the current configuration
root@t5# ldm add-spconfig t5
root@t5# ldm ls-spconfig
factory-default
initial [next poweron]
initial [next poweron]
Finally in order to close this part of the configuration you can check that the change has been done.
root@t5# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-cv- UART 4 4G 0.5% 0.5% 84d 5h 18m
In order to understand what core or vcpu where assigned if you want you can run "ldm list-devices -a, all the processor with %FREE in zero and PM "No" are busy
VCPU
PID %FREE PM
0 0 no
1 0 no
2 0 no
3 0 no
We finished to configure the Control Domain.
CONFIGURING SERVICES IN THE CONTROL DOMAIN
Configuring the access to console for the different guest domains
root@t5# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
Now we have configured the console from port 5000-5100, now we have to define the virtual switches
root@t5# ldm add-vsw net-dev=aggr1 primary-vsw0 primary
root@t5# ldm add-vsw net-dev=aggr2 primary-vsw1 primary
Above we configured with the Link Aggregations created previously the Virtual Switches across the Guest Domain will have connection.
Finally we can create the VDS that control all the disk allocated to the Control Domain
root@t5# ldm add-vds primary-vds0 primary
Checking the configuration for the new services created in the Control Domain
VSW
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw0 primary 00:14:4f:f1:12:4d aggr1 0 switch@0 1 1 1500 on
primary-vsw1 primary 00:14:4f:f2:32:10 aggr2 1 switch@1 1 1 1500 on
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw0 primary 00:14:4f:f1:12:4d aggr1 0 switch@0 1 1 1500 on
primary-vsw1 primary 00:14:4f:f2:32:10 aggr2 1 switch@1 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
You will need to repeat the same steps over the other domain with the others IP's assigned by network team.
We have ready to ask to Storage Team to assign the LUN's and Now you can configurate the Guest Domains, I will aboard the topic in other blog.
Regards
Roger
We have ready to ask to Storage Team to assign the LUN's and Now you can configurate the Guest Domains, I will aboard the topic in other blog.
Regards
Roger
Comments