![Page 1: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/1.jpg)
oVirt Ansible Automation -
Patching Oracle RDBMSPatching Oracle RDBMS
Gianluca CecchiRed Hat Certified Instructor – EXTRAORDY
Independent Consultant
oVirt Conference October/2019 – Innovate the datacenter
With open virtualization
This presentation is licensed under a Creative Commons Attribution 4.0 International License
![Page 2: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/2.jpg)
Agenda
● Running Oracle RDBMS inside oVirt Virtual Machines
● Standard Patching Workflow for Oracle RDBMS (12cR2)
● Apply patching workflow using Web Admin GUI
● Demo (Web Admin GUI)
2
● Demo (Web Admin GUI)
● oVirt related Ansible Modules and Roles
● Apply patching workflow using Ansible
● Demo (Ansible)
![Page 3: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/3.jpg)
Agenda
● Running Oracle RDBMS inside oVirt Virtual Machines
● Standard Patching Workflow for Oracle RDBMS (12cR2)
● Apply patching workflow using Web Admin GUI
● Demo (Web Admin GUI)
3
● Demo (Web Admin GUI)
● oVirt related Ansible Modules and Roles
● Apply patching workflow using Ansible
● Demo (Ansible)
![Page 4: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/4.jpg)
Oracle RDBMS inside oVirt VMs
There are many reasons:
● High Performance VM with performance metrics as close as possible to bare metal
○ New VM profile type in oVirt 4.2, with some limitations
○ Improved in oVirt 4.3 (Full Live Migration Support)
● Huge Pages Support
4
● Huge Pages Support
● IO Threads to boost I/O performance
● vNUMA Support with appropriate NUMA pinning
● Great amount of Memory support in VM � currently 2Tb
● Great amount of vCPUs support � currently 384
● CPU Hot Plug
● Memory Hot Plug
● Disk Hot Plug
● Network Device Hot Plug
![Page 5: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/5.jpg)
Agenda
● Running Oracle RDBMS inside oVirt Virtual Machines
● Standard Patching Workflow for Oracle RDBMS (12cR2)
● Apply patching workflow using Web Admin GUI
● Demo (Web Admin GUI)
5
● Demo (Web Admin GUI)
● oVirt related Ansible Modules and Roles
● Apply patching workflow using Ansible
● Demo (Ansible)
![Page 6: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/6.jpg)
Oracle RDBMS Patching
6
![Page 7: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/7.jpg)
Oracle RDBMS Patching
7
![Page 8: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/8.jpg)
Oracle RDBMS Patching
Several patching workflows available
● In Place patching < --- we will focus on this one, but making use of a new disk
8
● Out Of Place (OOP) patching
![Page 9: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/9.jpg)
Agenda
● Running Oracle RDBMS inside oVirt Virtual Machines
● Standard Patching Workflow for Oracle RDBMS (12cR2)
● Apply patching workflow using Web Admin GUI
● Demo (Web Admin GUI)
9
● Demo (Web Admin GUI)
● oVirt related Ansible Modules and Roles
● Apply patching workflow using Ansible
● Demo (Ansible)
![Page 10: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/10.jpg)
Oracle RDBMS Patching
In Place patching strategy using floating disks and helper VM
● Use a helper VM based on the same OS template as the Oracle VMs
● One disk configured as PV and dedicated to Oracle RDBMS software
10
● One disk configured as PV and dedicated to Oracle RDBMS software
● Shutdown database and listener on the helper VM
● Apply desired RDBMS RU and OJVM RU patches (opatch apply command)
● Make a copy of the patched ORACLE software disk into a separate floating disk
![Page 11: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/11.jpg)
Oracle RDBMS Patching
Target VM patching workflow 1/2
● Shutdown database and listener
● Hot remove of the current Oracle RDBMS software disk
11
● Hot remove of the current Oracle RDBMS software disk
● Hot add of the new patched Oracle RDBMS software disk
● Start database in upgrade mode
![Page 12: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/12.jpg)
Oracle RDBMS Patching
Target VM patching workflow 2/2
● Run datapatch against the database
● Shutdown / startup database
12
● Shutdown / startup database
● Verify DBA_REGISTRY
_
● Give access to database services
![Page 13: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/13.jpg)
Oracle RDBMS Patching
WEB ADMIN GUI
13
WORKFLOW
DEMO
![Page 14: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/14.jpg)
Agenda
● Running Oracle RDBMS inside oVirt Virtual Machines
● Standard Patching Workflow for Oracle RDBMS (12cR2)
● Apply patching workflow using Web Admin GUI
● Demo (Web Admin GUI)
14
● Demo (Web Admin GUI)
● oVirt related Ansible Modules and Roles
● Apply patching workflow using Ansible
● Demo (Ansible)
![Page 15: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/15.jpg)
Ansible Modules
15
![Page 16: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/16.jpg)
Ansible Roles
16
![Page 17: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/17.jpg)
Oracle RDBMS Patching
Some Ansible modules used by this workflow 1/2
● setup : gathers facts about remote hosts
17
● ovirt_auth : module to manage authentication to oVirt
● ovirt_disk : module to manage Virtual Machine and floating disks
● shell : execute shell commands on targets (pay attention to idempotence…)
![Page 18: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/18.jpg)
Oracle RDBMS Patching
Some Ansible modules used by this workflow 2/2
● lvol: configure LVM logical volumes
18
● service : module to manage services
● debug : print statements during execution
● mount : control active and configured mount points
![Page 19: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/19.jpg)
Oracle RDBMS Patching
ANSIBLE
19
WORKFLOW
DEMO
![Page 20: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/20.jpg)
Agenda
● Running Oracle RDBMS inside oVirt Virtual Machines
● Standard Patching Workflow for Oracle RDBMS (12cR2)_
● Apply patching workflow using Web Admin GUI
● Demo (Web Admin GUI)
20
● Demo (Web Admin GUI)
● oVirt related Ansible Modules and Roles
● Apply patching workflow using Ansible
● Demo (Ansible)
![Page 21: oVirtAnsibleAutomation - Patching Oracle RDBMS](https://reader030.vdocuments.site/reader030/viewer/2022012101/6169eef111a7b741a34cf9dc/html5/thumbnails/21.jpg)
Thank you!Thank you!
https://ovirt.org/
@ovirt
This presentation is licensed under a Creative Commons Attribution 4.0 International License