Upload
bernard-daniel
View
214
Download
1
Tags:
Embed Size (px)
Citation preview
A RedStack Technology Company
Oracle EMEA Database Partner of the Year Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
Linux Containers
Jason ArneilSolutions Architect
e-DBA Ltd
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Linux Containers
Types of Virtualisation
Linux Containers
Demo
Resource Management
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year Oracle EMEA Database Partner of the Year
jarneil.wordpress.com
@jarneil
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
About Red Stack Technology
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Virtualisation
HardwareVirtualisation
O/SPartitions
SoftwareVirtualisation
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
“containers can just be thought of as a collection of processes, separated from the main host processes via a set of resource namespaces and constrained via control groups resource tunables”
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Hardware
Standard Host O/S
O/S Virtulisation
Cont
aine
r 1
Cont
aine
r 2
Hardware
Driver Support
Hypervisor
Virtual Machine Monitor
VM2
Guest O/S
VM1
Guest O/S
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Linux Containers
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
2.6.39-400.210.2.el6uek
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Why?
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Control Groups
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
cgroup
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
subsystem
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lssubsys -am
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
cpuset /cgroup/cpusetcpu /cgroup/cpucpuacct /cgroup/cpuacctmemory /cgroup/memorydevices /cgroup/devicesfreezer /cgroup/freezernet_cls /cgroup/net_clsblkio /cgroup/blkio
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
hierachy
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Name Spaces
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
LXC
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
LXC is a userspace interface for the Linux kernel containment features.
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-create –n cont1 –t oracle -- --release=6.latest
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-create: No config file specified, using the default config /etc/lxc/default.confHost is OracleServer 6.4Create configuration file /container/cont1/configDownloading release 6.latest for x86_64Loaded plugins: refresh-packagekit, securityol6_latest | 1.4 kB 00:00 ol6_latest/primary | 33 MB 00:04 ol6_latest 22589/22589Setting up Install ProcessResolving Dependencies--> Running transaction check---> Package chkconfig.x86_64 0:1.3.49.3-2.el6_4.1 will be installed--> Processing Dependency: libc.so.6(GLIBC_2.2.5)(64bit) for package: chkconfig-1.3.49.3-2.el6_4.1.x86_64--> Processing Dependency: libc.so.6(GLIBC_2.8)(64bit) for package: chkconfig-1.3.49.3-2.el6_4.1.x86_64..
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Complete!Rebuilding rpm databaseConfiguring container for Oracle Linux 6.4Added container user:oracle password:oracleAdded container user:root password:rootContainer : /container/cont1/rootfsConfig : /container/cont1/configNetwork : eth0 (veth) on virbr0'oracle' template installed'cont1' created
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
templates
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
ls -lh /container/cont1/
-rw-r--r--. 1 root root 2.1K Nov 25 09:06 config-rw-r--r--. 1 root root 195 Nov 25 09:06 fstabdr-xr-xr-x. 21 root root 4.0K Nov 25 09:08 rootfs
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-start -n cont1 –d
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-ls
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-info –n cont1
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
ps –elf --forest
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
root 2771 2748 0 4738 1164 0 10:04 pts/0 00:00:00 | \_ lxc-start -n cont1root 2775 2771 0 4819 1496 0 10:04 ? 00:00:00 | \_ /sbin/initroot 3005 2775 0 2291 604 0 10:04 ? 00:00:00 | \_ /sbin/dhclient -H cont1 -1 -q -lf /var/lib/dhclient/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid eth0root 3028 2775 0 44888 1344 0 10:04 ? 00:00:00 | \_ /sbin/rsyslogd -i /var/run/syslogd.pid -c 5root 3070 2775 0 16575 1160 0 10:04 ? 00:00:00 | \_ /usr/sbin/sshdroot 3081 2775 0 1027 576 0 10:04 pts/1 00:00:00 | \_ /sbin/mingetty /dev/tty1root 3083 2775 0 1027 572 0 10:04 pts/2 00:00:00 | \_ /sbin/mingetty /dev/tty2root 3085 2775 0 1027 572 0 10:04 pts/3 00:00:00 | \_ /sbin/mingetty /dev/tty3root 3087 2775 0 1027 576 0 10:04 pts/4 00:00:00 | \_ /sbin/mingetty /dev/tty4root 3208 2775 0 1027 568 0 10:23 pts/5 00:00:00 | \_ /sbin/mingetty /dev/console
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-console -n cont1
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-clone -o cont1 –n cont2
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Tweaking configurationCopying rootfs...Updating rootfs...'cont2' created
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-freeze -n cont1
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-unfreeze -n cont1
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-cgroup -n cont1 state-object
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-shutdown -n cont1
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-stop -n cont1
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
lxc-destroy -n cont1
Oracle Partner of the year 2010 & 2012
+44 (0) 844 811 [email protected]
www.e-dba.com
A RedStack Technology Company
Oracle EMEA Database Partner of the Year
Q & A