DB2 Virtualization
Total Page:16
File Type:pdf, Size:1020Kb
Front cover DB2 Virtualization Learn setting up and configuring DB2 on PowerVM, VMware, and Hyper-V Leverage virtualization technologies See best practices Whei-Jen Chen Jason Chan Olaf Mueller Malcolm Singh Tapio Väättänen ibm.com/redbooks International Technical Support Organization DB2 Virtualization September 2009 SG24-7805-00 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. First Edition (September 2009) This edition applies to DB2 for Linux, UNIX, and Windows Version 9.1 or later, PowerVM, POWER5, POWER6, VMware Virtual Infrastructure 3 or later, vSphere 4 or later, and Microsoft Windows Server 2008 SP2 with Hyper-V RTM (Update KB950050). © Copyright International Business Machines Corporation 2009. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . vii Trademarks . viii Preface . ix The team who wrote this book . x Acknowledgement. xi Become a published author . xi Comments welcome. xii Chapter 1. Introduction . 1 1.1 Overview . 2 1.1.1 What is virtualization . 2 1.1.2 History . 4 1.1.3 Benefits . 4 1.2 Terminology and definitions . 5 1.2.1 Virtual server . 6 1.2.2 Virtual machine monitor . 6 1.2.3 Machine-based virtualization. 8 1.2.4 Operating-system-based virtualization . 11 Chapter 2. Virtualization technologies . 13 2.1 DB2 support for virtualization . 14 2.1.1 Support matrix. 14 2.1.2 Features and functions . 15 2.1.3 Licensing . 28 2.2 PowerVM on Power Systems . 31 2.3 VMware vSphere. 36 2.3.1 vCenter . 37 2.3.2 VMotion . 37 2.3.3 Distributed Resource Scheduler . 38 2.4 Hyper-V . 38 2.5 Linux Kernel-based Virtual Machine (KVM) . 39 2.6 z/VM . 40 2.7 Xen . 41 2.8 Parallels Virtuozzo Containers . 42 2.9 Solaris Zones (containers) . 42 2.10 HP Integrity VM . 43 Chapter 3. Power Systems and PowerVM . 47 © Copyright IBM Corp. 2009. All rights reserved. iii 3.1 Architecture . 48 3.1.1 POWER Hypervisor . 48 3.1.2 Hardware Management Console . 48 3.1.3 Integrated Virtualization Manager . 48 3.1.4 Logical partition . 49 3.1.5 Dynamic logical partitioning . 53 3.1.6 Virtual I/O Server. 53 3.1.7 Live Partition Mobility . 54 3.1.8 Workload partition . 55 3.1.9 Overall architectural picture . 56 3.2 Power Systems and PowerVM setup . 57 3.3 DB2 setup and configuration . 63 3.3.1 Installing and setting up DB2 . 63 3.3.2 Configuration example . 66 3.4 Conclusions. 72 Chapter 4. VMware vSphere . 75 4.1 Architecture . 76 4.1.1 vSphere. 76 4.1.2 ESX . 77 4.1.3 VMFS . 80 4.1.4 vCenter . 80 4.1.5 VMware High Availability (HA) . 82 4.1.6 VMware Fault Tolerance . 82 4.1.7 Distributed Resource Scheduler . 82 4.1.8 VMotion . 83 4.2 VMware setup . 83 4.3 Virtual machine setup . 92 4.3.1 Creating virtual machine . 92 4.3.2 Setting up operating system environment. 97 4.3.3 Resource settings . 100 4.3.4 Monitoring the resource usage . 101 4.3.5 Cloning and templates . 102 4.4 DB2 setup and configuration . 102 4.4.1 Installation . 103 4.4.2 Setup. 103 4.5 Conclusions. 108 Chapter 5. Hyper-V . 109 5.1 Overview . 110 5.1.1 Architecture . 110 5.1.2 Requirements . 111 5.2 Installation and setup of Hyper-V . 112 iv DB2 Virtualization 5.2.1 Adding the Hyper-V role in Windows Server 2008 . 112 5.2.2 Network configuration for Hyper-V . 114 5.2.3 Disk configuration for Hyper-V . 116 5.3 Creation and setup of virtual machines on Hyper-V . 116 5.3.1 Creating a virtual machine . ..