Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Document revision
Date
Revision
Comments
03/21/2012
Initial Draft
THIS BEST PRACTICES GUIDE IS FOR INFORMATIONAL PURPOSES ONLY, AND MAY CONTAIN
TYPOGRAPHICAL ERRORS AND TECHNICAL INACCURACIES. THE CONTENT IS PROVIDED AS IS, WITHOUT
EXPRESS OR IMPLIED WARRANTIES OF ANY KIND.
2012 Dell Inc. All rights reserved. Reproduction of this material in any manner whatsoever without
the express written permission of Dell Inc. is strictly forbidden. For more information, contact Dell.
Dell, the DELL logo, the DELL badge, and Compellent are trademarks of Dell Inc. Other trademarks and
trade names may be used in this document to refer to either the entities claiming the marks and names
or their products. Dell Inc. disclaims any proprietary interest in trademarks and trade names other than
its own.
Page 2
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Contents
Document revision ................................................................................................. 2
Contents .................................................................................................................. 3
General syntax ..................................................................................................... 6
Conventions ......................................................................................................... 6
Overview ................................................................................................................. 7
Prerequisites ........................................................................................................ 7
Intended audience ................................................................................................. 7
Introduction ......................................................................................................... 7
Customer aupport.................................................................................................. 7
A note on Fibre Channel zoning ...................................................................................... 8
Host Bus Adapter settings ............................................................................................. 9
Qlogic Fibre Channel card BIOS or Module Settings .............................................................. 9
Emulex Fibre Channel card BIOS or Module Settings ............................................................. 9
Host Bus Adapter Queue Depth .................................................................................. 9
Putting it all together: ............................................................................................ 9
Connecting your VM servers to the Dell Compellent array: .............................................. 10
Dell Compellent Storage Center connections ............................................................... 10
Legacy ports ................................................................................................. 10
iSCSI.... ............................................................................................................ 11
Dell Compellent ports summary ............................................................................... 11
Overview of Dell Compellent Storage Center features ........................................................ 12
Data Instant Replay (DIR) ....................................................................................... 12
Data Progression ................................................................................................. 12
Dynamic Capacity (Thin Provisioning) ........................................................................ 12
Mapping Volumes to the Oracle VM Servers. ..................................................................... 13
Figure 4. Lun Selection on Dell Compellent ........................................................................ 14
Linux Multipathing .................................................................................................... 14
Multipathing on Dell Compellent................................................................................... 15
Boot from SAN ......................................................................................................... 16
Boot from SAN configuration ....................................................................................... 16
Introduction to Oracle VM ........................................................................................... 17
Oracle VM architecture .............................................................................................. 17
Establishing Oracle VM Infrastructure ............................................................................. 18
Page 3
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Implementation tasks overview .................................................................................... 19
Fibre Channel topology .............................................................................................. 19
iSCSI topology ......................................................................................................... 20
Oracle VM 3.0.3 installation considerations ..................................................................... 20
Oracle OVM installation tips ........................................................................................ 21
Physical and Logical networks: ..................................................................................... 21
Installing the Oracle VM software ................................................................................. 22
A visual guide through the Installation....................................................................... 22
Oracle VM Server install ........................................................................................ 22
CD found ............................................................................................................... 23
Keyboard selection ................................................................................................... 24
OVS 3.0 Eula ........................................................................................................... 25
System to upgrade .................................................................................................... 26
Partitioning type ...................................................................................................... 27
Warning ................................................................................................................. 28
Review partition layout.............................................................................................. 29
Partitioning ............................................................................................................ 30
Boot Loader configuration .......................................................................................... 31
Arrange boot drives .................................................................................................. 32
Oracle VM Management Interface ................................................................................. 33
Oracle VM Management LAN ........................................................................................ 34
IPv4 configuration for eth0 ......................................................................................... 36
Miscellaneous network settings .................................................................................... 37
Hostname configuration ............................................................................................. 38
Timezone selection................................................................................................... 39
Oracle VM Agent password .......................................................................................... 40
Root password ......................................................................................................... 41
Installation to begin .................................................................................................. 42
Complete ............................................................................................................... 43
VM Server console .................................................................................................... 44
Login console .......................................................................................................... 45
Installing Oracle VM Manager ....................................................................................... 47
Steps to perform after Oracle VM Manager install .............................................................. 49
Testing a virtual machine migration .............................................................................. 55
iSCSI ..................................................................................................................... 56
Page 4
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Live Volume overview................................................................................................ 58
Migrating the cluster with Dell/Compellent Live Volume ..................................................... 58
Live Volume failover ............................................................................................ 58
Using the Command Line with OVM to create a Multipath Live Volume ............................... 59
Index A... ......................................................................................................... 63
Glossary ................................................................................................................ 63
Index B.................................................................................................................. 68
Document references ........................................................................................... 68
Page 5
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
General syntax
Table 1.
Document syntax
Item
Convention
Bold
Click:
User Input
Monospace Font
Type:
Website addresses
http://www.compellent.com
Email addresses
info@compellent.com
Conventions
Notes are used to convey special information or instructions.
Timesavers are tips specifically designed to save time or reduce the number of steps.
Caution indicates the potential for risk including system or data damage.
Warning indicates that failure to follow directions could result in bodily harm.
Page 6
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Overview
Prerequisites
This document assumes the reader has training or understanding of the following.
Operation and configuration of the Dell Compellent Storage Center
Linux operating systems
Oracle software installations and virtualization concepts
Intended Audience
This is a technical document for system administrators, and other information technology professionals
who are interested in learning or responsible for the setup and maintenance of Oracle OVM Enterprise
Linux Clusters and how they integrate with Dell Compellent storage.
Introduction
This document will provide configuration examples, tips, recommended settings and other storage
guidelines a user can follow while integrating Oracles OVM virtualization solution with the Storage
Center. The document has been written to answer many frequently asked questions with regard to
how OVM interacts with Dell Compellent Storage Centers various features, such as Dynamic
Capacity, Data Progression, and Data Instant Replays. OVM stands for Oracle Virtual Machines, and
is based on Xen Hypervisor technology. The document describes the infrastructure needed, as well
as the OVM installation process. It is recommended that you obtain the following documents from
Oracle and familiarize yourself with basic system components. Below are the URLs for OVM
Getting started guide, OVM Installation and upgrade, and OVM user guide.
http://docs.oracle.com/cd/E26996_01/e26529.pdf
http://docs.oracle.com/cd/E11081_01/doc/doc.21/e10899.pdf
http://docs.oracle.com/cd/E11081_01/doc/doc.21/e10901.pdf
Please note that the information contained within this document is intended only to be general
recommendations and may not be adaptable to all configurations. There are certain circumstances and
environments where the configuration may vary based upon individual or business needs.
Customer Support
Dell Compellent provides live support 1-866-EZSTORE (866.397.8673), 24 hours a day, 7 days a week,
365 days a year. For additional support, email Dell Compellent at support@compellent.com. Dell
Compellent responds to emails during normal business hours.
Page 7
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 8
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
The following sections explain how the queue depth is set in each of the layers in the event it
needs to be changed.
The appropriate queue depth for a host may vary due to a number of factors, so it is
recommended to only increase or decrease the queue depth if necessary.
Please see Dell Compellents Linux Best Practices document for a detailed explanation of how
to set these module parameters on your Oracle Enterprise Linux systems. The version number of
OEL corresponds to the version number of Redhat I.E. Oracle Linux 5 uses the same kernel as
Redhat Linux 5.0
Page 9
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Legacy Ports
In legacy mode, front-end IO ports are broken into primary and reserve ports based on a fault
domain. Primary/reserved ports allow IO to use the primary path; the reserve port is in a
standby mode until a primary port fails over to the reserve port. In terms of Linux Multipathd,
this requires twice the IO ports to enable multiple paths. Even more ports are required for a
dual fabric. Figure 1 illustrates dual-fabric failover ports in legacy mode.
Figure 2.
Figure 2 shows four fault domains to the CT-SC040. Each fault domain has a primary and
reserved port. For redundancy, a primary port connects to one controller; the reserved port in
that fault domain connects to the other controller. While this is a highly robust failover
solution, it requires a large number of ports. For this reason, Dell Compellent implemented
Virtual Ports.
Page 10
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Virtual Ports
Dell Compellent introduced Virtual Ports in Storage Center 5.0. Virtual Ports allow all front-end
IO ports to be virtualized. All front-end IO ports can be used at the same time for load
balancing as well as failover to another port. Virtual Ports are available for Fibre Channel
connections only, iSCSI connections only, or both Fibre Channel and iSCSI.
Fibre Channel
To use Virtual Ports for Fibre Channel, all Fibre Channel switches and HBAs must support NPIV
(N_Port ID Virtualization).
Figure 3.
Figure 3 shows a Virtual Port configuration. All ports of one transport type (Fibre Channel or iSCSI) are
in the same fault domain. All ports are active. If one port fails, the load is distributed between the
remaining ports. Failover is just as robust as shown in Figure 2, with half the ports.
iSCSI
iSCSI follows the same wiring and port setup as Fibre Channel with the exception of the Control
Port. iSCSI uses a Control Port configured for each of the Fault Domains. Servers connect to the
Control Port, which then redirects traffic to the appropriate Virtual Port. When configuring
Multipathd, this looks slightly different than with the Legacy Mode configuration because you
need to assign only the Control Port in the iSCSI Initiator software. These differences are
covered later in the OS-specific sections.
Page 11
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Data Progression
Data Progression is another Dell Compellent Storage Center feature. This feature allows your
least frequently used data to migrate to lower tier (less-expensive SATA) disks, therefore
saving space on the higher tier (expensive FC/SAS) disks.
With the Data Progression feature enabled on the Dell Compellent system, you dont have to
worry about disk space taken up by data that has not been accessed. You can change the
number of days on a volume to alert Data Progression when to move the data. The default is 12
days. Vice-versa, if the data has been accessed for a certain amount of cycles, the data will
then migrate back to higher tier disks for performance. This also can be changed based on your
preference.
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Drives with higher RPM provide higher overall random-access throughput and shorter response
times than drives with lower RPM.
Because of better performance, SAS or Fibre Channel drives with 15K RPM are always
recommended for storing Oracle datafiles and online redo logs.
Serial ATA and lower cost Fibre Channel drives have slower rotational speed and therefore
recommended for Oracle archived redo logs and flashback recovery area with Data Progression.
Page 13
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Figure 4. LUN selection on Dell Compellent
Linux Multipathing
Although Dell Compellent Storage Centers provide redundancy and failover with multiple
controllers and RAID, servers still need a way to spread the IO load and handle internal failover
from one path to the next. This is where Linuxs multipathd plays an important role.
Multipathing is the ability of a server to communicate using multiple physical connections
between the host bus adapters in the server and the other device, typically in Fibre Channel,
or iSCSI SAN environments and direct attached storage when multiple channels are available.
Multipathing is managed at the device level. Multipath devices can be accessed by
/dev/mapper/ directory. Multipath in Linux requires installation of the device-mapper rpm
package. To check if the package is installed you can use the command rpm -qa | grep
multipath.
Because we are using a Dell Compellent storage subsystem that is automatically detected, no
further configuration of the multipath-tools is required. Otherwise you need to create
/etc/multipath.conf, and add an appropriate device entry for your storage subsystem. See
/usr/share/doc/packages/multipath-tools/multipath.conf.annotated for a template with
extensive comments.
Device mapping multipath IO features automatic configuration of the subsystem for a large
variety of setups. Active/passive or active/active (with round-robin load balancing)
configurations of up to eight paths to each device are supported.
Multipath-tools take care of automatic path discovery and grouping as well as automated path
retesting, so that a previously failed path is automatically reinstated when it becomes healthy
again. This minimizes the need for administrator attention in a production environment.
Multiple physical connections exist between host bus adapters in the server and the target.
Typical connection problems involve faulty adapters, cables, or controllers.
To determine which SCSI devices/paths correspond to the same LUN, the DM initiates a SCSI
inquiry. The inquiry response, among other things, carries the LUN serial number. Regardless of
the number paths a LUN is associated with, the serial number for the LUN will always be the
same. This is how multipathing SW determines which and how many paths are associated with
each LUN.
Querying the multipath IO status outputs the current status of the multipath maps.
The command is multipath -l.
Page 14
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
# multipath -l
360060160f390250024e60845be67df11 dm-2 DGC,RAID 5
[size=600G][features=1 queue_if_no_path][hwhandler=1 COMPELNT]
\_ round-robin 0 [prio=-2][active]
\_ 4:0:1:1 sdn
8:208 [active][undef]
\_ 3:0:1:1 sdf
8:80 [active][undef]
\_ round-robin 0 [prio=-2][enabled]
\_ 4:0:0:1 sdj
8:144 [active][undef]
\_ 3:0:0:1 sdb
8:16 [active][undef]
Here you can see the output of the multipath l command, which shows the unique id and the
disk devices associated with the mpath device dm-2.
The next screen selects the front end ports on the Dell Compellent to use for the mapping.
Select both ports from one controller.
Page 15
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Lastly assign the LUN. In this case the Dell Compellent presents four pairs of mappings. In
reality there are only two valid paths, however the Dell Compellent system cannot determine
which are valid or not. It its best to create all the mappings unless the correct WWN pairings
are known. Now with the Volumes assigned to the OVM hosts, Lets look at SAN boot.
Page 16
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Once the boot Volumes are added to the Oracle VM systems and have the systems are
configured to boot from them, the Oracle VM Server installation process can begin.
Introduction to Oracle VM
Oracle VM Architecture
Page 17
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 18
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
One Dell x86 server for installation of OVM Server Manager software
Two or more Dell x86 servers with matching CPU speed, Stepping, and RAM for
installation of Oracle VM server software (hypervisors).
Two or more Virtual Machines running Oracle Enterprise Linux.
Dell Compellent Storage Array running version 5.4.4 of the Dell Compellent OS, and
configured with Virtual Ports.
In this illustration we see the VM Management servers using two HBA ports for redundant paths,
two network interfaces being used for private VM networks, which can also communicate
heartbeat signals. One public addressable network for administering the VM Servers, and a
management network for doing Virtual Machine migrations. Bond0 is created by the VM Server
Page 19
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
install and cannot be changed. The VMs also have NIC card plummed to use the Bond2 device
over the private net, as well as a device to reside on the public net so the VMs are available
externally to the frame.
iSCSI Topology
iSCSI is used to allocate volumes to the virtual machines so they appear on the VM host as SCSI
disks. When allocating disk volumes to the virtual machines through the OVM Hypervisors, they
appear as IDE disks, which in this case is not desirable for things like DM-Multipathetc. The
Dell Compellent array works really well for this task, as it is possible to present volumes to the
cluster with Fiber Channel and later present Virtual Machines with volumes using iSCSI.
Page 20
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
OVM servers should have at least 4 NIC ports, one for primary and three inter connects.
One NIC port for Primary Network to administer and manage the servers.
One NIC port for Heartbeat inter connect to the secondary OVM server.
One NIC port for Virtual Machines Private Network traffic.
One NIC port for Virtual Machine Migrations traffic.
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 22
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
CD Found
The CD Found screen is displayed. If you want to make sure the CD was created correctly you
can have the installer test it for errors.
To test the CD, select OK and press Enter. The CD is tested and any errors are reported. To
skip media testing and continue with the install, select Skip and press Enter.
Page 23
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Keyboard Selection
Next the Keyboard Selection screen will be displayed. Select the keyboard layout (for
example,, us for U.S. English) from the list of available options. The keyboard you select
becomes the default layout for the operating system.
Select OK and press Enter.
Page 24
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 25
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
System to Upgrade
If an existing Oracle VM Server is found on the computer, the System to upgrade screen is
displayed. Select Oracle VM Server 3.x (disk) to upgrade the existing installation. Upgrade
instructions are described in section 4.3.2 of Upgrading Oracle VM Server Using the CD.
Upgrading an Oracle VM Server from release 2.x is not supported; you must perform a fresh
install.
Select OK and press Enter.
Page 26
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Partitioning Type
Next the Partitioning Type screen is displayed. Select whether you want to:
Page 27
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Warning
Just a little warning that you are about to initialize this drive, and that any current data will
be removed.
If this is ok then Select Yes and press Enter.
Page 28
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 29
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Partitioning
The Review Partition Layout screen is displayed. Review the partition layout and make any
changes needed.
Select OK and press Enter to save any changes.
Page 30
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 31
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 32
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
For non-VLAN installation, skip next page and move forward to the IPv4 Configuration for eth0
screen.
Page 33
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 34
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Oracle VM Cluster network diagram with a high level view showing VLANs and a VLAN group,
and how the switch might look with trunk ports.
You can skip this function and continue if you do not wish to configure VLANS at this time.
Page 35
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 36
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 37
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Hostname Configuration
The Hostname Configuration screen is displayed. If your machine has its own hostname, select
manually and enter the hostname or IP address. Please use a fully qualified hostname, for
example, myserver.example.com. If your machine uses DHCP to assign its hostname, select
automatically via DHCP.
Select OK and press Enter.
Page 38
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 39
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
If you need to change this password after install, use the ovs-agent-passwd utility.
Page 40
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Root Password
The Root Password screen is displayed. Enter a password for the root user in the Password
field. The root password must be at least six characters long. Re-enter the password in the
Password (confirm) field. The password characters are not echoed to the screen.
Select OK and press Enter.
Page 41
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Installation to Begin
The Installation to Begin screen is displayed. The installer installs and configures Oracle VM.
Once the Enter key is pressed here, the installer will format all the partitions and install the
VM Server Image onto the drive selected. The VM Server installation only takes ten to fifteen
minutes depending on the servers hardware.
Page 42
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Complete
When all the files are installed and the configuration is complete, the Complete screen is
displayed. Please remove the Oracle VM CD from the optical drive in the machine at this time.
Select Reboot and press Enter to restart the VM Server.
Page 43
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
VM Server Console
After reboot, the Oracle VM status console is displayed. The status console displays useful
information about the servers hardware and configuration as well as its cluster and server pool
membership. Notice that there will not be much information in these fields as of yet. Once the
Oracle Manager server is installed, and the cluster is configured, these fields will all show all
the current VM Server information and status of the cluster.
Page 44
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Login Console
To log on to the Oracle VM, press ALT+F2 to display the login console. You can login to the
Oracle VM as root, with the password you set during the install. To switch back to the status
console, press Alt+F1.
The Oracle VM installation is complete. The Oracle VM Agent is started automatically and
restarts each time the computer is rebooted.
A log of the install is located in /root/install.log. If the install fails, review this log file to
help identify the cause.
Page 45
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
This is another view of the overall architecture and anatomy of an Oracle VM cluster. The Web GUI
seen at the top of the diagram is the Web User Interface (UI), which resides on the Oracle VM
Manager server.
Page 46
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Warnings may occur if not all recommendations are met, as you can see in the screen
output above. If one of the prerequisites is not met, the installation will abort.
You have the option to continue or abort the installation. Enter 1 to continue. Progress
of the installation is output on your screen step by step, as shown below:
Start installing the configured components:
1: Continue
Page 47
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
2: Abort
Select Number (1-2): 1
Step 1 of 9 : Database ...
Installing Database ...
Retrieving Oracle Database 11g XE ...
Installing Oracle Database 11g XE ...
Configuring Oracle Database 11g XE ...
Step 2 of 9 : Java ...
Installing Java ...
Step 3 of 9 : Database Schema ...
Creating database schema 'ovs' ...
Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...
Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Step 6 of 9 : Oracle VM ...
Retrieving Oracle VM Manager Application ...
Extracting Oracle VM Manager Application ...
Installing Oracle VM Manager Core ...
Step 7 of 9 : Domain creation ...
Creating Oracle WebLogic Server domain ...
Starting Oracle WebLogic Server 11g ...
Configuring data source 'OVMDS' ...
Creating Oracle VM Manager user 'admin' ...
Step 8 of 9 : Deploy ...
Deploying Oracle VM Manager Core container ...
Deploying Oracle VM Manager UI Console ...
Deploying Oracle VM Manager Help ...
Enabling HTTPS ...
Granting ovm-admin role to user 'admin' ...
Step 9 of 9 : Oracle VM Manager Shell ...
Retrieving Oracle VM Manager Shell & API ...
Extracting Oracle VM Manager Shell & API ...
Installing Oracle VM Manager Shell & API ...
Retrieving Oracle VM Manager Upgrade tool ...
Extracting Oracle VM Manager Upgrade tool ...
Installing Oracle VM Manager Upgrade tool ...
Copying Oracle VM Manager shell to '/usr/bin/ovm_shell.sh' ...
Installing ovm_admin.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Installing ovm_upgrade.sh in '/u01/app/oracle/ovm-manager-3/bin' ...
Enabling Oracle VM Manager service ...
Shutting down Oracle VM Manager instance ...
Restarting Oracle VM Manager instance ...
Waiting 15 seconds for the application to initialize ...
Oracle VM Manager is running ...
Oracle VM Manager installed.
Page 48
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
When the installation is complete a summary similar to the following is displayed:
Oracle VM Manager installed.
Installation Summary
-------------------Database configuration:
Database host name : localhost
Database instance name (SID): XE
Database listener port : 1521
Application Express port : 8080
Oracle VM Manager schema : ovs
Weblogic Server configuration:
Administration username : weblogic
Oracle VM Manager configuration:
Username : admin
Core management port : 54321
UUID : 0004fb0000010000cc1b57e39ff77ea9
Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM
Manager, Oracle Database 11g XE, and Oracle WebLogic Server have been set by you
during this installation. In the case of a demo install, all passwords are the
same.
Oracle VM Manager UI:
http://myserver.example.com:7001/ovm/console
https://myserver.example.com:7002/ovm/console
Log in with the user 'admin', and the password you set during the installation.
Please note that you need to install tightvnc-java on this computer to access a virtual
machine's console.
For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/
Oracle VM Manager installation complete.
Page 49
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
1.)
2.)
3.)
4.)
5.)
6.)
7.)
8.)
9.)
Page 50
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
An example view of the web GUIs menu system, below is the default home view after logging in.
From the home view you can see the Server Pools and their Virtual Machines, and by clicking on any
Virtual Machine you can see its network, disk, repository and memory properties.
Page 51
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
In the jobs view you can see logs of every action that the administrator has taken since the system was
brought online.
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Above is the web admin GUI page for registering and configuring the Dell Compellent Storage Array.
The admin can create any name label and description, pick the storage type and plugin, and define the
controller port information.
In the Storage tab in the hardware view, the user can drill down to see the Cluster Volume groups and
Physical Disks (Volumes), as well as some properties of the Dell Compellent array being utilized.
Page 53
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
This is the Hardware View. It allows the user to monitor all the hardware in the cluster, view or create
new networks, view and create VLAN groups and watch event logs.
Page 54
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Above on the Networks tab of the home view, the admin can use physical ports on the VM Servers to
create external or internal networks for maintenance, VM Migrations, or heartbeat Networks.
Page 55
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Testing Live Migrations of Oracle Enterprise Linux Virtual Machines from one VM Server to another.
iSCSI
This is just a quick sample of how to get the iSCSI ports setup. For a much more detailed doc please
refer to Dell/Compellents Linux Best Practices documentation. A quick study of the iscsiadm man
page on the Linux host is also recommended.
1.) Make sure that the VM hosts network ports have been configured and can communicate with
your Dell Compellents iSCSI ports.
2.) The Oracle Enterprise Linux VMs need to have the the iscsi-initiator-utils RPM installed.
3.) Have the iSCSI daemon service start up at boot through the use of the /etc/init.d/iscsi init
script.
4.) Have Virtual Ports enabled on the Dell Compellent array.
5.) Run command iscsiadm -m discovery -t sendtargets -p <Compellents ISCSI controller IP>.
The main purpose of the discovery is to have the hosts iSCSI daemon save the iSCSI node
information in its /var/lib/iscsi file - so it will know how to login to the subsystem to bring all
your iSCSI volumes online at boot time.
6.) To login now without a reboot, run command iscsiadm m node login.
7.) On the Dell Compellent, create the iSCSI server Cluster Object and assign some Volumes to it.
8.) Scan the hosts for new Volumes with iscsiadm m session R This scan will make the newly
added Volumes available for use on the cluster host.
Page 56
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 57
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Page 58
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Using the Command Line with OVM to create a Multipath Live Volume
To begin, we have an OVM server with a boot partition using Fiber Channel connectivity to its
Storage Center (I.E Boot from SAN). In this case, we will be moving the boot volume mpatha:
Then just follow up after doing the same to all the other cluster Volumes seen on the host. This
also assumes you have the host mapped to two different Storage Centers.
# multipath -ll
mpatha (36000d310000069000000000000000d36) dm-0 COMPELNT,Compellent Vol
size=16G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 0:0:7:0 sda 8:0 active ready running
`- 1:0:4:0 sdb 8:16 active ready running
# lsscsi
[0:0:7:0] disk COMPELNT Compellent Vol 0504 /dev/sda
[1:0:4:0] disk COMPELNT Compellent Vol 0504 /dev/sdb
At this point the volume that makes up mpatha can be converted into a Live Volume. Once
that is done, the Linux server needs to rescan its HBAs in order to be visible during the server
object creation process on the destination Storage Center. Note that this means the server
must be able to reach both Storage Centers through the Fiber Channel fabric. To rescan the
HBAs:
Page 59
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
mpatha (36000d310000069000000000000000d36) dm-0 COMPELNT,Compellent Vol
size=16G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 0:0:7:0 sda 8:0 failed ready running
|- 1:0:4:0 sdb 8:16 failed ready running
|- 0:0:1:0 sdc 8:32 active ready running
`- 1:0:2:0 sdd 8:48 active ready running
At this point, all IO will be sent to the destination Storage Center. Since the path original paths
have been gracefully failed with no event, the paths can be deleted from the running multipath
configuration:
# multipathd remove path sda
ok
Confirm the removal of the path:
# multipath -ll
mpatha (36000d310000069000000000000000d36) dm-0 COMPELNT,Compellent Vol
size=16G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 1:0:4:0 sdb 8:16 failed ready running
|- 0:0:1:0 sdc 8:32 active ready running
`- 1:0:2:0 sdd 8:48 active ready running
Remove the final path to the original Storage Center:
# multipathd remove path sdb
ok
Confirm the removal of the final path:
# multipath -ll
mpatha (36000d310000069000000000000000d36) dm-0 COMPELNT,Compellent Vol
size=16G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 0:0:1:0 sdc 8:32 active ready running
`- 1:0:2:0 sdd 8:48 active ready running
The current running configuration of the multipath device mapper is such that the paths to the
original Storage Center will never be used. Now the drive objects that make up the original
paths can be gracefully removed:
# echo 1 > /sys/block/sda/device/delete
# echo 1 > /sys/block/sdb/device/delete
Because IO is going only to the destination Storage Center, the Live Volume logic will (if it has
not already) work to identify the destination Storage Center as the primary recipient of IO, and
will begin the process of making it the primary Storage Center for the Live Volume. Once the
destination Storage Center has taken the primary responsibilities for the Live Volume, the
server to volume mapping on the original Storage Center can be removed, and the Live Volume
converted back to a regular volume. Once the mappings have been removed, the HBAs should
be rescanned one final time:
# echo "- - -" > /sys/class/scsi_host/host0/scan
# echo "- - -" > /sys/class/scsi_host/host1/scan
The server can then be removed from the original Storage Centers fabric zone.
Page 61
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Once the OVM server Volumes and the iSCSI Volumes are all converted to Live Volumes, the
complete cluster plus VMs can fail from one Dell Compellent Storage Center to another in
minutes.
Using Dell Compellent Enterprise Manager, a live Volume can be created from a new Volume,
an existing Volume, or an existing Replication.
Page 62
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
For complete and detailed information on how to get Live Volume configured, please see the Dell
Compellent Live Volume Best Practices document.
Index A
Glossary
A
Affinity - Specify that specific virtual machines should always run on the same host.
Page 63
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Anti-affinity - Specify that specific virtual machines should never run on the same host.
Assembly - An infrastructure template containing a configuration of multiple virtual machines with
their virtual disks, and the inter-connectivity between them. Assemblies can be created as a set of
.ovf (Open Virtualization Format) and .img (disk image) files, or may all be contained in a single .ova
(Open Virtualization Format Archive) file.
D
Dell Compellent Data Instant Replay - Data Instant Replay is most compared to "snapshot" technology.
This is the ability to create point-in-time copies where further changes to a volume of data are
journaled in a way that allows the volume to be rolled back to its original state when the point-in-time
copy was taken.
Dell Compellent Data Progression - A Dell Compellent Storage Center feature. This feature allows your
least frequently used data to migrate to lower tier (less-expensive SATA) disks, therefore saving space
on the higher tier (expensive FC/SAS) disks.
Dell Compellent Dynamic Capacity (Thin Provisioning) With traditional storage systems, administrators
must purchase, allocate and manage capacity upfront, speculating where to place storage resources
and creating large, underutilized volumes with long term growth built in. This practice leaves the
majority of disk space allocated yet unused, and only available to specific applications.
Dell Compellent iSCSI Dells iSCSI follows the same wiring and port setup as Fibre Channel with the
exception of the Control Port. iSCSI uses a Control Port configured for each of the Fault Domains.
Servers connect to the Control Port, which then redirects traffic to the appropriate Virtual Port.
Dell Compellent Legacy Port Mode - In legacy mode, front-end IO ports are broken into primary and
reserve ports based on a fault domain. Primary/reserved ports allow IO to use the primary path; the
reserve port is in a standby mode until a primary port fails over to the reserve port.
Dell Compellent Virtual Port Mode - Allows all front-end IO ports to be virtualized. All front-end IO
ports can be used at the same time for load balancing as well as failover to another port. Virtual Ports
are available for Fibre Channel and iSCSCI connections only.
Dell Compellent Live Volume - A way to move or migrate Dell Compellent volumes between storage
Center systems without interuption to service..
Dell Compellent Volume Mapping The process of making a Dell Compellent Volume on the array
available to a specific server object(s).
Domain - A configurable set of resources, including memory, virtual CPUs, network devices and disk
devices, in which virtual machines run. A domain is granted virtual resources and can be started,
stopped and rebooted independently.
See also dom0 .
See also domU.
dom0 - An abbreviation for domain zero. The management domain with privileged access to the
hardware and device drivers. Dom0 is the first domain started by the Oracle VM Server at boot time.
Page 64
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Dom0 has more privileges than domU. It can access the hardware directly and can manage the device
drivers for other domains. It can also start new domains.
domU - An unprivileged domain with no direct access to the hardware or device drivers. Each domU is
started by Oracle VM Server in dom0.
G
Guest - A guest operating system that runs within a domain in Oracle VM Server. A guest may be
paravirtualized or hardware virtualized. Multiple guests can run on the same Oracle VM Server.
H
Hardware virtualized machine See Virtual Machine.
Host computer a computer connected to a network.
Hypervisor - a hypervisor, also called virtual machine manager (VMM), is one of many hardware
virtualization techniques allowing multiple operating systems, termed guests, to run concurrently on a
host computer. It is so named because it is conceptually one level higher than a supervisory program.
The hypervisor presents to the guest operating systems a virtual operating platform and manages the
execution of the guest operating systems. Multiple instances of a variety of operating systems may
share the virtualized hardware resources. Hypervisors are very commonly installed on server hardware,
with the function of running guest operating systems, that themselves act as servers.
M
Management domain (a.) A virtual machine with an unmodified guest operating system. It is not
recompiled for the virtual environment. There may be substantial performance penalties running as a
hardware virtualized guest. Enables Microsoft Windows operating system to be run, as well as legacy
operating systems. Hardware virtualization is only available on Intel VT or AMD SVM CPUs.
(b.) The physical computer on which Oracle VM Server is installed.
(c.) The hypervisor, monitor, or Virtual Machine Manager (VMM). It is the only fully privileged entity in
the system. It controls only the most basic resources of the system, including CPU and memory usage,
privilege checks, and hardware interrupts.
See also dom0 .
Master Oracle VM Server - A component of Oracle VM Agent. An application that acts as the contact
point to Oracle VM Manager, and to other Oracle VM Agents. Provides virtual machine host loadbalancing, and local persistence for Oracle VM Server. There is only one master Oracle VM Server in a
server pool. A physical server can perform as the master Oracle VM Server, Utility Server and Virtual
Machine Server simultaneously.
N
Non-Sparse Copy - A clone of the type "non-sparse copy" is a disk image file of a physical disk, taking
up the space equivalent to the full specified disk size, including empty blocks.
See also Sparse Copy.
Page 65
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
O
Oracle VM Agent - An application installed with Oracle VM Server. It communicates with Oracle VM
Manager for management of virtual machines. Oracle VM Manager manages the virtual machines
running on Oracle VM Server by communicating with Oracle VM Agent. It contains three components:
master Oracle VM Server, Utility Server, and Virtual Machine Server.
Oracle VM Server - A self-contained virtualization environment designed to provide a lightweight,
secure, server-based platform for running virtual machines. Oracle VM Server is based upon an updated
version of the Xen hypervisor technology. Includes Oracle VM Agent to enable communication with
Oracle VM Manager.
Oracle VM Manager - Provides the user interface, which is an Application Development Framework
(ADF) web application, to manage Oracle VM Server pools. Manages virtual machine life cycle, including
creating virtual machines from templates or from installation media, deleting, powering off, uploading,
deployment and live migration of virtual machines. Manages resources including ISO files, templates
and shared virtual disks.
P
Paravirtualized machine - A Virtual Machine with a kernel that is recompiled to be made aware of the
virtual environment. Runs at near native speed, with memory, disk and network access optimized for
maximum performance.
Port Zoning - If the environment has multiple Fabrics, the additional HBA ports in the Host should have
separate unique Zones created in their respective Fabrics.
Q
QEMU - Also referred to as qemu-dm, which is the process name. The virtualization process which
allows full virtualization of a PC system within another PC system.
S
Server Pool - Logically an autonomous region that contains one or more physical Oracle VM Servers.
Presents a unified view of the storage where the virtual machines reside, and groups the users of these
virtual machines into a single community called a group, in which each user is a server pool member.
Single Initiator Multiple Target Zoning - Each fiber channel zone created should have a single initiator
(HBA port) and multiple targets (Storage Center front-end ports). This means that each HBA port needs
its own fiber channel zone containing itself and the Storage Center front-end ports. Zoning OVM hosts
by either port (commonly referred to as hard zoning) or WWN (commonly referred to as soft zoning) is
acceptable.
Sparse Copy - A clone of the type "sparse copy" is a disk image file of a physical disk, taking up only
the amount of space actually in use; not the full specified disk size.
See also Non-Sparse Copy.
T
Page 66
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Thin Clone - A thin clone is a clone of a physical disk that takes up only the amount of disk space
actually in use; not the full specified disk size.
U
Utility Server - A component of Oracle VM Agent. An application that handles IO intensive operations
for virtual machines, server pools and servers, for example, copying, moving and renaming files. There
can be more than one Utility Server in a server pool. A physical server can perform as the master
Oracle VM Server, Utility Server and Virtual Machine Server simultaneously.
V
VIF - A virtual network interface for bridging network interfaces between domUs and dom0. When a
domU is started it is assigned a number. This number is used to bridge the network interface from ethn
to vifn.0.
Virtual disk - A file or set of files, usually on the host file system although it may also be a remote file
system, that appears as a physical disk drive to the guest operating system.
Virtual Machine - A guest operating system and the associated application software that runs within
Oracle VM Server. May be paravirtualized or hardware virtualized machines. Multiple virtual machines
can run on the same Oracle VM Server.
Virtual Machine Manager (VMM) See Hypervisor.
Virtual Machine Server - A component of Oracle VM Agent. An application which runs Oracle VM Server
virtual machines. It can start and stop virtual machines, and collect performance data for the host and
guest operating systems. Enables communication between the master Oracle VM Server, Utility Server
and Virtual Machine Servers. There can be more than one Virtual Machine Server in a server pool. A
physical server can perform as the master Oracle VM Server, Utility Server and Virtual Machine Server
simultaneously.
Virtual Machine Template - A template of a virtual machine. Contains basic configuration information
such as the number of CPUs, memory size, hard disk size, and network interface card (NIC). Create
virtual machines based on a virtual machine template using Oracle VM Manager.
VMM - See Hypervisor.
W
WWN Zoning - The zone only needs to contain the host HBA port and the Storage Center front-end
primary ports. In most cases, it is not necessary to include the Storage Center front-end reserve
ports because they are not used for volume mappings.
X
Xen - The Xen hypervisor is a small, lightweight, software virtual machine monitor, for x86-compatible
computers. The Xen hypervisor securely executes multiple virtual machines on one physical system.
Each virtual machine has its own guest operating system with almost native performance. The Xen
hypervisor was originally created by researchers at Cambridge University, and derived from work done
on the Linux kernel.
Page 67
Dell Compellent Storage Center with Oracle OVM Virtual Machines Best Practices
Index B
Document references
Page 68