Delivering A Highly Available Oracle Database As A Service: Emc Vplex, Vmware Vfabric Data Director
Delivering A Highly Available Oracle Database As A Service: Emc Vplex, Vmware Vfabric Data Director
Delivering A Highly Available Oracle Database As A Service: Emc Vplex, Vmware Vfabric Data Director
Abstract
This white paper describes the deployment of a database as a service
distributed over two sites for improved availability. The solution is enabled by
EMC® VPLEX® Metro, EMC Symmetrix® VMAX®, VMware vSphere High
Availability, VMware vFabric Data Director, and Oracle Database 11g.
September 2013
Copyright © 2013 EMC Corporation. All Rights Reserved.
For the most up-to-date listing of EMC product names, see EMC Corporation
Trademarks on EMC.com.
All trademarks used herein are the property of their respective owners.
Introduction ....................................................................................................................................... 9
Purpose ........................................................................................................................................... 9
Scope .............................................................................................................................................. 9
Audience.......................................................................................................................................... 9
Conclusion ....................................................................................................................................... 55
Summary ....................................................................................................................................... 55
Findings ......................................................................................................................................... 55
References ....................................................................................................................................... 57
Product documentation.................................................................................................................. 57
White papers ................................................................................................................................. 57
Other documentation ..................................................................................................................... 57
In physical environments, these demands can involve the deployment of new servers
and infrastructure resources, resulting in long lead times and poor response to
business needs.
Database virtualization and automation tools have improved the process for the DBA
team, shortening the lead time for database services for both business and
developers. Database as a service (DBaaS) has built on this foundation, adding a
self-service lifecycle management framework to provide a secure, controlled, and
repeatable process for the database service user.
The EMC solution described in this white paper offers a highly available, distributed
strategy for DBaaS utilizing EMC® VPLEX® Metro and VMware vFabric Data Director.
Solution overview This white paper describes the deployment of a DBaaS distributed over two sites for
improved availability. The solution is enabled by EMC VPLEX Metro, EMC Symmetrix®
VMAX®, VMware vSphere High Availability (HA), VMware vFabric Data Director, and
Oracle Database 11g. It demonstrates how the following technologies create this
innovative business-continuity solution:
• EMC VPLEX Metro provides the virtual storage layer that enables an
active/active Metro data center.
• VPLEX data mobility enables nondisruptive movement of data at the storage
layer.
• VPLEX storage-volume expansion enables nondisruptive expansion of a
virtual volume to match the capacity of the underlying LUNs.
Key benefits This solution highlights the benefits of deploying and utilizing VMware vFabric Data
Director on a stretched VMware vSphere HA cluster using a virtualized storage layer
distributed between data centers. Data Director improves operational agility through
database-aware virtualization and offers secure self-service lifecycle management
that automates routine tasks.
To increase operational efficiency and empower both DBAs and developers to control
database provisioning, backup, and cloning, Data Director provides the following:
• Simplified database virtualization using built-in workflows
• Standardized environment using database templates
• Migration from physical to virtual using database ingestion
• Management and monitoring of the virtual database infrastructure through a
single pane of glass
Underpinning and enabling the stretched VMware vSphere HA cluster is EMC VPLEX.
The VPLEX Metro configuration used in this solution provides highly available storage
virtualization across multiple sites. It encapsulates devices from heterogeneous
storage arrays and provides active/active, block-level access to data on two sites
within synchronous distances.
In this solution, the highly available, virtualized storage layer is provided by EMC
VPLEX with active/active access across data centers in geographically separate
locations.
Scope This white paper includes the following information about this DBaaS solution:
• Overview of the key enabling technologies
• Solution architecture and design
• Configuration of key components
• Results of the tests performed to demonstrate the following:
Empowerment of DBAs and developers
Environmental resilience
Agile and timely delivery of services
Security and control
• Business benefits of the solution
Audience This white paper is intended for Oracle DBAs, developers, VMware administrators,
storage administrators, IT architects, and technical managers responsible for
designing, creating, and managing virtualized data centers and cloud services to
provide DBaaS.
Solution Combining VMware vSphere clustering and VPLEX Metro results in a vSphere HA
architecture cluster stretched between two data centers. Figure 1 shows the physical architecture
of the solution, including the network components.
Figure 2 shows the logical architecture of a vFabric Data Director vApp deployment on
a vSphere cluster and the required supporting infrastructure: Network Time Protocol
(NTP) server and optional Dynamic Host Configuration Protocol (DHCP) server.
vFabric Data Director architecture is discussed in detail under the section VMware
vFabric Data Director on page 41.
Table 1Table 1 lists the hardware components of the solution, and Table 2 lists the
software components.
Red Hat Enterprise Linux 5.5 Operating system for all DBVM
Oracle Database 11g Enterprise Edition Oracle database and cluster software
11.2.0.3.6
The two storage arrays are deployed with a matching LUN configuration.
EMC Symmetrix Symmetrix VMAX 10K is a new enterprise storage platform built to provide leading
VMAX 10K high-end virtual storage capabilities to a growing number of IT organizations and
service providers with demanding storage requirements and limited resources.
Designed for easy installation, setup, and use, VMAX 10K is an ideal entry into a
Symmetrix storage infrastructure for customers who need increased failure-mode
performance. Leveraging the Virtual Matrix Architecture, VMAX 10K provides
enterprise-level reliability, availability, and serviceability.
VMAX 10K includes preconfiguration for easy setup in less than 4 hours.
Adding FAST VP for fully automated tiered storage makes the installation and daily
operation easier for IT organizations with limited resources and staff.
Building on EMC's industry-leading VMware integration, VMAX 10K now offers even
more efficient enterprise storage because of new integration with the VMware
vSphere 5 cloud infrastructure platform. EMC Virtual Storage Integrator (VSI) for
VMware simplifies the process of integrating EMC storage into a virtualized
environment.
EMC Enginuity The Enginuity operating environment provides the intelligence that controls all
components in an EMC Symmetrix storage array. Enginuity is an intelligent,
multitasking, preemptive storage-operating environment (SOE) that controls storage
data flow. It is wholly devoted to storage operations and optimized for service levels
required in high-end environments.
EMC Unisphere for Unisphere for VMAX is an advanced GUI that provides a common user experience
VMAX across storage platforms. Unisphere for VMAX enables customers to easily provision,
manage, and monitor VMAX environments, as shown in Figure 3.
This section describes the VPLEX Metro infrastructure for the solution, which
comprises the following components:
• EMC VPLEX Metro cluster at each data center (Site A and Site B)
• EMC VPLEX Witness in a separate failure domain (Site C)
EMC VPLEX
EMC VPLEX is a virtual storage solution for both EMC and non-EMC storage arrays.
EMC offers VPLEX in three configurations to address customer needs for high
availability and data mobility, as shown in Figure 4.
You can achieve an even higher degree of availability by using a VPLEX Cross-Cluster
Connect configuration. In this case, each host is connected to the VPLEX clusters at
both sites. Such configuration ensures that the host has an alternate path to the
remaining VPLEX cluster in the unlikely event of a full VPLEX cluster failure.
At the top layer of the VPLEX storage structures are virtual volumes. These volumes
are created from a top-level device (a device or distributed device) and always use
the full capacity of the top-level device. Virtual volumes are the elements that VPLEX
exposes to hosts using its front-end ports. VPLEX presents a virtual volume to a host
through a storage view.
Detach rules
Detach rules are predefined rules that determine I/O processing semantics for a
consistency group when connectivity with a remote cluster is lost—for example, in the
case of a network-partitioning or remote cluster failure.
Synchronous consistency groups support the following detach rules to determine
cluster behavior during a failure:
• Static preference rule identifies a preferred cluster.
• No-automatic-winner rule suspends I/O on both clusters.
In the event of a cluster partition, the configured detach rule is automatically invoked.
However, VPLEX Witness can be deployed to override the static preference rule and
ensure that the nonpreferred cluster remains active if the preferred cluster fails.
Configuration process
For the solution, we configured the VPLEX Metro logical storage structures as follows:
• Storage volume—A storage volume is a LUN exported from an array and
encapsulated by VPLEX. Figure 7 shows several storage volumes created at
Site A, as displayed in the VPLEX Management Console.
VPLEX Witness The solution uses VPLEX Witness to monitor connectivity between the two VPLEX
configuration clusters and ensure continued availability in the event of an inter-cluster network
partition failure or a cluster failure. This is considered a VPLEX Metro HA configuration
as storage availability is ensured at the surviving site.
VPLEX Witness is deployed at a third, separate failure domain (Site C) and connected
to the VPLEX clusters at Site A and Site B. Site C is located at a distance of less than
1-second latency from Sites A and B.
Device migrations
Nondistributed devices of type RAID 0, RAID 1, and RAID-C can use device migration
to move data between devices on the same cluster or different clusters. Devices can
be built on single or multiple extents or devices. Figure 14 illustrates device
migration.
This solution uses distributed devices. For this type of device, extent migrations are
used to migrate the underlying extent on each leg of the device. Device migration
between distributed devices is not supported.
Extent and device mobility jobs can be created, run, and monitored from the VPLEX
CLI or Unisphere for VPLEX GUI.
• VPLEX CLI—You can run migrations as one-time jobs or as batch jobs with
reusable migration plan files. Refer to the EMC VPLEX CLI Guide for more
information.
• Unisphere for VPLEX GUI—The GUI does not support batch mobility jobs.
However, you can migrate multiple extents or devices by using a wizard.
Figure 15 shows the creation of multiple extent mobility jobs with the Extent Mobility
wizard in Unisphere for VPLEX. It also shows the jobs being run and the job status.
The systems, in this case the ESXi servers and virtual machines, were powered on and
available throughout the migration, as shown in Figure 16.
Figure 16. ESXi servers, virtual machines, and datastores available during the migration
Back-end array Two methods of volume expansion are available with VPLEX 5.2:
volume expansion
• RAID-C expansion—Online expansion of virtual volumes by concatenating
additional devices and storage volumes. This type of expansion does not
support DR1 expansion.
• Storage volume expansion—Online, nondisruptive expansion of the virtual
volume by taking the full "current capacity" of the storage volume and making
that "configured capacity" of the virtual volume. This type of expansion
supports DR1 expansion.
Figure 17. VMFS datastore and VPLEX and VMAX storage elements before expansion
With GeoSynchrony 5.2 and later, the port enabled flag SCSI_Support (OS2007)
should be set on the initiator group of each VMAX connected to a VPLEX cluster. This
enables VPLEX to automatically detect, in the presence of host I/O, configuration
changes, such as an expanded LUN, on the array storage view.
Figure 18. Storage volume expansion after LUN size is increased on array
In Unisphere for VPLEX, choose to expand an expandable virtual volume and enter
the Expand Virtual Volumes dialog, as shown in Figure 19.
VMware vSphere 5
VMware vSphere 5 is the industry’s most complete and powerful virtualization
platform. Its infrastructure services transform IT hardware into a high-performance
shared computing platform, and its application services help IT organizations deliver
the highest levels of availability, security, and scalability.
VMware Storage vMotion enables live migration of virtual machine storage without
any interruption in the availability of the virtual machine.
EMC PowerPath/VE
EMC PowerPath/VE for VMware vSphere delivers PowerPath multipathing features to
optimize VMware vSphere virtual environments. PowerPath/VE is installed as a kernel
module on the ESXi host and works as a multipathing plug-in (MPP) that provides
enhanced path management capabilities to ESXi hosts.
VMware EMC VPLEX Metro delivers concurrent access to the same set of devices at two
deployments on physically separate locations and thus provides the active/active infrastructure that
VPLEX Metro enables geographically stretched clusters based on VMware vSphere. The use of
Brocade Virtual Link Aggregation Group (vLAG) technology enables extension of
VLANs, and hence subnets, across different physical data centers.
By deploying VMware vSphere features and components with VPLEX Metro, the
following functionality can be achieved:
• The ability to live-migrate virtual machines between sites, in anticipation of
planned events such as hardware maintenance, through the use of vMotion.
• The ability to migrate a virtual machine’s storage without any interruption in
the availability of the virtual machine, through the use of Storage vMotion.
This allows the relocation of live virtual machines to new datastores.
• Automatic load distribution and virtual machine placement across sites
through the use of DRS groups and affinity rules.
• Automatic application restart for any site-level disaster through the use of
VMware HA.
1
For detailed information, see the EMC TechBook: EMC VPLEX Metro Witness Technology and
High Availability.
VMware stretched VMware and EMC support a stretched cluster configuration that includes ESXi hosts
cluster from multiple sites 2. For the solution, a single vSphere cluster—SiteAandSiteB—is
configuration stretched between Site A and Site B by using a distributed VPLEX virtual volume with
VMware HA and VMware DRS. There are four hosts in the cluster, two at each site.
VPLEX Metro HA Cross-Cluster Connect provides increased resilience to the
configuration.
In vCenter, it is easy to view the configuration of this cluster and the features enabled
for it, as shown in Figure 24. This view also shows the memory, CPU, and storage
resources available to the cluster.
2
For detailed requirements and scenarios, see the VMware Knowledge Base article 1026692:
Using VPLEX Metro with VMware HA
3
A dvSwitch provides a network configuration that spans all member hosts and allows virtual
machines to maintain consistent network configuration as they migrate between hosts. For
further information, see the VMware vSphere Networking ESXi 5.1 document.
For the solution, both vSphere HA and DRS were enabled, as shown in Figure 26.
VM Monitoring
VM Monitoring was configured to restart individual virtual machines if their heartbeat
is not received within 60 seconds.
4
For further information on vSphere HA, see the VMware vSphere Availability ESXi 5.0
document.
Datastore heartbeating
When you create a vSphere HA cluster, a single host is automatically elected as the
master host. The master host monitors the state of all protected virtual machines and
of the slave hosts. When the master host cannot communicate with a slave host, it
uses datastore heartbeating to determine whether the slave host has failed, is in a
network partition, or is network isolated.
VMware vSphere VMware DRS host groups and virtual machine groups
DRS configuration DRS host groups and virtual machine groups simplify management of ESXi host
resources. These features were not required for this solution.
For this solution DRS was utilized to control placement of the primary and secondary
fault-tolerant virtual machine.
Beginning with vFabric Data Director 2.7, virtual machine DRS groups can be assigned
resource bundles, enabling DBVMs to be restricted to a chosen group of hosts via
VM-Host affinity rules.
VMware vSphere A Red Hat Enterprise Linux 5 virtual machine, ftnfsvm, shown in Figure 29, was
Fault Tolerance created on an ESXi server on Site B, tce-orap-r910c. This virtual machine acts as an
NFS mount server, which allows for sharing of software and files in the vFabric Data
Director infrastructure.
vSphere Fault Tolerance with vSphere Distributed Resource Scheduler (DRS) was
enabled on the virtual machine with the secondary shadow virtual machine residing
on tce-orap-r910a, as shown in Figure 30.
This process allows fault tolerant virtual machines to benefit from better initial
placement and also to be included in the cluster's load balancing calculations.
With vSphere DRS enabled, the placement of the standby secondary virtual machine
after failover is enforced using rules. To create a DRS affinity rule, DRS cluster virtual
machine groups and cluster host groups are first created. In the DRS host group only
the required hosts are added. These nodes are selected, as they are on different
sites, improving availability in the event of a site failure. Figure 32 shows the DRS
groups and rules for virtual machine ftnfsvm.
The detail and application of the rule is shown in Figure 33. The rule forces the
placement of virtual machines to run only on the hosts in the host group in the event
of failover.
EMC Virtual EMC Virtual Storage Integrator (VSI) provides enhanced visibility into VPLEX directly
Storage Integrator from the vCenter GUI. The Storage Viewer and Path Management features are
and VPLEX accessible through the EMC VSI tab, as shown in Figure 34.
In the solution, VPLEX distributed volumes host the Virtual Machine File System
(VMFS) datastores: v_ORA_DS_vFDD_vol1 and v_ORA_DS_vFDD_vol2. Storage Viewer
provides details of the datastore’s virtual volumes, storage volumes, and paths.
Figure 35. vFabric Data Director service layers, support, and integration
vFabric Data Director also enables DBAs and system administrators to control access
and manage resource usage within the vFabric Data Director environment. Further, its
use of REST APIs enables integration with other provisioning and management tools.
• Management Server, which is accessed via the web console to control the
environment and deploy and manage databases
• DB Name Server
Organizational The basic component of Data Director is the organization. Data Director system
structures and administrators create organizations, assign the initial organization administrator, and
user management allocate resources to the organization.
Unique organization names are assigned within Data Director. At the next level down,
databases are organized into database groups. Roles of administrator and template
user are assigned with applicable privileges to users within the organization.
Organization roles, policies, and templates apply only within that organization.
Resources allocated to an organization are reserved for that organization and cannot
be shared among multiple organizations. This restriction enhances security and
ensures resource isolation.
Figure 36 shows the Data Director organizational structure used in this solution along
with the assigned users and their level of access.
Resource bundles are associated with vSphere resource pools, but they also include
datastores and network IP addresses that will be used for databases that are
provisioned through vFabric Data Director, as shown in Figure 37.
As of vFabric Data Director 2.7, resource bundles can also be associated with DRS
groups based on hardware requirements and site availability. Figure 39 shows the
assignment of the virtual machine DRS group and the mapping to the VM-Host affinity
rules configured in vCenter.
In this solution, the VM-Host affinity “must” rule ensures that the DBVMs are
restricted to two of the four physical servers, one on each site. It restricts the virtual
machines on which Oracle software is installed and/or running to these two physical
servers.
Installation and The vFabric Data Director vApp is deployed from an Open Virtualization Format (OVF)
configuration template using the vSphere Client. In this solution, vFabric Data Director 2.5 was
initially deployed, as shown in Figure 40.
After the vApp is deployed, using a web browser, enter the static IP address assigned
during virtual machine deployment to log in to the Data Director application server
and complete configuration, as shown in Figure 40. Follow the Setup wizard, shown in
Figure 41, to quickly configure Data Director.
The vFabric Data Director interface provides a guided checklist to take you through
the steps required to prepare your environment for the database lifecycle, as shown
in Figure 43.
The prebuilt template comes fully configured with SUSE Linux Enterprise Server 11
and vFabric Data Director software installed. The blank DBVM template has the virtual
hardware configured but requires a custom OS installation.
Following the instructions in the VMware vFabric Data Director Administrator and User
Guide, we created a custom OS installation with Red Hat Enterprise Linux 5.5 and
initialized the vFabric Data Director software. This virtual machine was updated to
11.2.0.3.6 with the latest patch set update applied.
Before the base DBVM template can be deployed to a resource bundle, the following
two-step process is required:
• Conversion of the base DBVM
• Validation of the base DBVM template
The validation goes through the process of provisioning, backup, cloning, and so on
and requires resources to complete these steps successfully. EMC recommends that
the database group have at least 40 GB of available storage to successfully complete
the validation. Figure 44 shows an example of successful validation.
After the validation is successful, the base DVBM template can be assigned and
enabled in a resource bundle within an organization, as shown in Figure 45.
Creating databases
As a DBA or application developer, you can create and provision databases within
your organization using several methods:
• Create a new empty database.
• Create a database from a catalog: When you require a database with known
characteristics and preloaded data, you can create and store read-only
catalog databases within Data Director. You can also clone a database to the
catalog.
Figure 47 shows the creation of an empty Oracle database from a template in the
organization and database group Production.
Cloning databases
You can clone databases and customize their deployment to suit your needs. You can
specify new resource settings, database parameter settings, and backup settings for
the clone, choose the clone point, set an immediate backup, and set an expiration
date for the clone. You can also choose to add to the catalog a clone of an existing
database as shown in Figure 48.
Ingesting databases
You can ingest an external database from an NFS share where the RMAN backup of
the source database is stored into a base database template of the same Oracle
version. The Create Database wizard guides and controls the process. In this solution,
the vSphere fault-tolerant virtual machine ftnfsvm provided the highly available NFS
share.
Backups are highly configurable with Data Director and matched to your strategy and
needs.
For example, for a production database with a high transaction volume and business
rules that require the highest possible database resiliency, you might define the
following backups:
• Take full external backups twice a day.
• Take database snapshots every hour.
• Enable point-in-time recovery to keep a continuous log of all transactions as
they occur on the running database.
• Retain full backups for a month or more.
Findings The key findings of the testing performed for the solution include:
• The Data Director vApp can be deployed quickly and easily on any VMware
vSphere cluster with HA and DRS enabled using the vSphere Client.
• VPLEX as an active/active data protection product, combined with VMware
vSphere clustering, provides a stretched vSphere cluster with HA and DRS
running over distance between two data centers, offering the following
benefits:
Increased utilization of hardware and software assets
Automatic load balancing between data centers
Zero downtime maintenance using vMotion
Quick restart of virtual machines across data centers with vSphere HA
Instant transition to a new host for the fault-tolerant virtual machine,
offering a highly available NFS service
White papers For additional information, see the following white papers:
• Using VMware vSphere with EMC VPLEX—Best Practices Planning
• Conditions for Stretched Hosts Cluster Support on EMC VPLEX Metro
• VMware Fault Tolerance Recommendations and Considerations
• Using VPLEX Metro with VMware High Availability and Fault Tolerance for
Ultimate Availability
• Understanding Oracle Certification, Support and Licensing for VMware
Environments
Other For additional information, see the following articles:
documentation
• VMware Knowledge Base article 1026692: Using VPLEX Metro with VMware
HA
• VMware Knowledge Base article 2007545: Implementing vSphere Metro
Storage Cluster (vMSC) using EMC VPLEX