Compellent Storage Center

Similar documents
Dell Compellent Storage Center with CommVault Simpana 9.0. Best Practices

SCOM 2012 with Dell Compellent Storage Center Management Pack 2.0. Best Practices

Best Practices for Configuring the Dell Compellent SMI-S Provider for Microsoft SCVMM 2012

Microsoft Technical Solutions

Chapter 3: Database Components

IBM Db2: Investigating Automatic Storage Table Spaces and Data Skew

VMware Site Recovery Manager 5.0. Best Practices

Compellent Storage Center

Dell Compellent Storage Center. Microsoft Server 2008 R2 Hyper-V Best Practices for Microsoft SCVMM 2012

IBM DB Getting started with DB2 Hands-on Lab. Information Management Cloud Computing Center of Competence. IBM Canada Lab

DB2 for Linux, UNIX, Windows - Adv. Recovery and High Availability

Oracle SQL Developer. Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E

Lesson 4 Transcript: DB2 Architecture

Introduction. How Does it Work with Autodesk Vault? What is Microsoft Data Protection Manager (DPM)? autodesk vault

Dell EMC NetWorker Module for Microsoft for Exchange Server VSS

Topaz for Java Performance Installation Guide. Release 16.03

Dell Compellent Storage Center

EMC Documentum Composer

Interstage Business Process Manager Analytics V11.1. Installation Guide. Windows/Solaris/Linux

DB2 Automatic Storage : The Future of Storage Management in DB2 for Linux, Unix and Windows

Lesson 2 Transcript: Part 2 of 2 - The DB2 Environment

Centrify Infrastructure Services

Installation Guide Release for Microsoft Windows

Oracle Transportation Management. Migration Guide Release 6.2 Part No. E

DB2 9 DBA exam 731 prep, Part 6: High availability: Backup and recovery

Deploying a System Center 2012 R2 Configuration Manager Hierarchy

Oracle SQL Developer. Oracle TimesTen In-Memory Database Support User's Guide Release 18.2 E

Dell Compellent Volume Expansion with Solaris 10 UFS. Technical Tip

SAS Model Manager 2.3

DB2 V8.1 for Linux, UNIX, and Windows Database Administration Certification: Backup and Recovery

Release for Microsoft Windows

IBM DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs

Reporting and Graphing

Creating Domain Templates Using the Domain Template Builder 11g Release 1 (10.3.6)

Informatica Power Center 10.1 Developer Training

Netezza PureData System Administration Course

EMC NetWorker Module for MEDITECH

Index. NOTE: Boldface numbers indicate illustrations; t indicates a table 207

Oracle Test Manager. Test Manager User s Guide Release E

Relativity Designer Installation Guide

EMC SourceOne Management Pack for Microsoft System Center Operations Manager

Installation and Administration Guide

Analytics: Server Architect (Siebel 7.7)

Chapter 2. DB2 concepts

WHITE PAPER: ENTERPRISE SOLUTIONS

Crossing Over/ Breaking the DB2 Platform Barrier Comparing the Architectural Differences of DB2 on the Mainframe Vs. Distributed Platforms

Compellent Storage Center

HA Monitor Kit for Oracle

EMC Avamar 7.3 for IBM DB2

Guidelines of Ethernet for Using a Star Dvice. - Windows - Rev. 2.0

EMC Documentum Process Builder

DB2 Performance Essentials

Oracle Financial Services Regulatory Reporting for European Banking Authority (OFS AGILE RP EBA)

Setting Up the Dell DR Series System as an NFS Target on Amanda Enterprise 3.3.5

Basic System Administration ESX Server and Virtual Center 2.0.1

Oracle Financial Services Regulatory Reporting for De Nederlandsche Bank (OFS AGILE RP DNB)

ExpressCluster X 3.2 WebManager Mobile

Logi Ad Hoc Reporting Management Console Usage Guide

Veritas NetBackup Backup, Archive, and Restore Getting Started Guide. Release 8.1.2

Xcalibur Global Version Rev. 2 Administrator s Guide Document Version 1.0

IBM DB2 Query Patroller. Administration Guide. Version 7 SC

USER MANAGEMENT IN APPSYNC

Teamcenter 11.1 Systems Engineering and Requirements Management

DB2 9 DBA exam 731 prep, Part 7: High availability: Split mirroring and HADR

Configuration Store Setup Guide

SnapCenter Software 4.0 Concepts Guide

Oracle Health Sciences WebSDM and Empirica Study

Oracle FLEXCUBE Direct Banking

Best Practice Guide for Implementing VMware vcenter Site Recovery Manager 4.x with Oracle ZFS Storage Appliance

Oracle Enterprise Manager

Hitachi Command Suite. Automation Director. Messages MK-92HC221-02

IBM Tivoli Storage Resource Manager. Installation Guide. Version 1 Release 1 GC

Perceptive TransForm E-Forms Manager

TRAVELTRAX Web Reporting Release Notes 6.3 November 04, 2011

Oracle Banking Platform Collections

CHAPTER. Oracle Database 11g Architecture Options

Microsoft SQL Server Database Protection Using EqualLogic Auto-Snapshot Manager / Microsoft Edition

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Veritas NetBackup for Microsoft SQL Server Administrator's Guide

How Viper2 Can Help You!

SmartCVS Tutorial. Starting the putty Client and Setting Your CVS Password

IBM DB2 Database Plug-in User s Guide Release

ExpressCluster X 3.1 WebManager Mobile

EMC SourceOne for Microsoft SharePoint Version 6.7

Adding, Dropping Storage Path(s) and Rebalancing Tablespaces

Horizontal Table Partitioning

A Examcollection.Premium.Exam.54q

IBM DB2 Log Analysis Tool Version 1.3

Partitioning in Oracle Database 10g Release 2. An Oracle White Paper May 2005

Configuring a Microsoft Windows Server 2012/R2 Failover Cluster with Storage Center

Oracle Banking Platform Collections

Installation and Release Notes

EMC NetWorker Module for DB2 Version 4.0

EMC Celerra Manager Makes Customizing Storage Pool Layouts Easy. Applied Technology

EMC Avamar IBM DB and Service Packs for. User Guide REV 02

Technical White Paper August Migrating to Oracle 11g Using Data Replicator Software with Transportable Tablespaces

Technical Brief Exporting a List of Device MAC Addresses from Xcalibur Global Document Version 1.0

Dell PowerVault MD3600f/MD3620f Remote Replication Functional Guide

Oracle Smart Update E

8.2. Quick Start Guide

Transcription:

Compellent Corporate Office Compellent Technologies 7625 Smetana Lane Eden Prairie, Minnesota 55344 www.compellent.com

Contents Contents... 2 Preface... 3 Scope... 3 Audience... 3 Customer Support... 3 Disclaimers... 3 General Syntax... 4 Document Revision... 4 DB2 UDB Overview... 5 DB2 Instances... 5 Databases... 6 Table Spaces... 6 Containers... 8 Compellent Overview... 9 Compellent Consistency Group... 9 Configurations... 10 Creating Volumes... 10 Creating Consistency Group Replay Profile... 11 Usage... 15 Creating Replays... 15 Creating Replays via the GUI... 15 Creating Replays via the CompCU... 16 Conclusion... 18 Compellent Technologies Page 2

Preface Scope This document describes the best practices on how to use Compellent Storage Center Consistency Group feature with DB2 UDB databases. It shows the step by step on how to create the profile and how to use it with the GUI and CompCU. Audience Customer Support Disclaimers The primary target audience for this best practice is database administrators, system administrators, storage administrators, and architects who analyze, design, and maintain a robust database and storage system. Readers should be familiar with DB2 UDB table space containers and how they can affect the performance of a DB2 UDB database. 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 Compellent at support@compellent.com. Compellent responds to emails during normal business hours. Information in this document is subject to change without notice. 2009 Compellent Technologies. All rights reserved. Reproduction in any manner without the express written permission of Compellent Technologies is strictly prohibited. Trademarks used in this text are property of Compellent Technologies, or their respective owners. Compellent Technologies Page 3

General Syntax Item Convention Menu items, dialog box titles, field names, keys Bold Mouse click required Click: User Input Monospace Font User typing required Type: Website addresses http://www.compellent.com Email addresses info@compellent.com Document Revision Date Revision Description 4/23/2010 A Preliminary Compellent Technologies Page 4

DB2 UDB Overview DB2 Instances An instance in DB2 for LUW is like a copy of RDBMS including all the processes that run DB2 and memory associated with that instance and some configuration parameters to control that instance. Anytime a new instance is created, that instance references the DB2 Database Manager program files that were stored on that server during the installation process; thus, each instance behaves like a separate installation of DB2 UDB. Every instance controls access to one or more databases. Every database within an instance is assigned a unique name, has its own set of system catalog tables, and has its own configuration file. Below is an example of an instance named db2inst1. Compellent Technologies Page 5

Databases A DB2 UDB database is a set of related objects. When you create a DB2 UDB database, you are establishing an administrative relational database entity that provides an underlying structure for an eventual collection of related objects such as tables, views, indexes, table spaces, etc. Below is an example of a database named TESTDB. Table Spaces All data for a database is stored in a number of table spaces. You can think of a table space as being a child and a database as its parent, where the table space (child) cannot have more than one database (parent). Because there are different uses for table spaces, they are classified according to their usage and how they will be managed. There are five different table spaces by usage: Catalog table space There is only one catalog table space per database, and it is created when the CREATE DATABASE command is issued. Named SYSCATSPACE by DB2, the Compellent Technologies Page 6

catalog table space holds the system catalog tables. This table space is always created when the database is created. Regular table spaces Regular table spaces hold table data and indexes. It can also hold long data such as Large Objects (LOBs) unless they are explicitly stored in long table spaces. A table and its indexes can be segregated into separate regular table spaces, if the table spaces are database managed space (DMS). We will define the differences between DMS and system managed space (SMS) later in this white paper. At least one regular table space must exist for each database. The default is named USERSPACE1 when the database is created. Long table spaces Long table spaces are used to store long or LOB table columns and must reside in DMS table spaces. They can also store structured type columns or index data. If no long table space is defined, then LOBs will be stored in regular table spaces. Long table spaces are optional and none will be created by default. System temporary table spaces System temporary table spaces are used to store internal temporary data required during SQL operations such as sorting, reorganizing tables, creating indexes, and joining tables. At least one must exist per database. The default created with the database is named TEMPSPACE1. User temporary table spaces User temporary table spaces store declared global temporary tables. No user temporary table spaces exist when a database is created. At least one user temporary table space should be created to allow definition of declared temporary tables. User temporary table spaces are optional and none will be created by default. Table Space Management System Managed Space (SMS) SMS table spaces are managed by the operating system. Containers are defined as regular operating system files and they are accessed via operating system calls. This means that all the regular operating system functions will handle the following: I/O will be buffered by the operating system, space will be allocated according to the operating system conventions, and the table space is automatically extended when it is necessary. However, containers cannot be dropped from SMS table spaces, and adding new ones is restricted to partitioned databases. The three default table spaces explained in the previous section are SMS. Database Managed Space (DMS) DMS table spaces are managed by DB2. Containers can be defined either as files (which will be fully allocated with the size given when the table space is created) or devices. DB2 will manage as much of the I/O as the allocation method and the operating system will Compellent Technologies Page 7

allow. Extending the containers is possible by using the ALTER TABLESPACE command. Unused portions of DMS containers can be also released (starting with version 8). Below is an example of the table spaces. Containers Every table space has one or more containers. Again, you might think of a container as being a child and a table space as its parent. Each container can only belong to a single table space but a table space can have many containers. Containers can be added to or dropped from a DMS table space, and their sizes can be modified. Containers can only be added to SMS table spaces on partitioned databases in a partition, which does not yet have a container allocated for the table space. When new containers are added, an automatic rebalancing will start to distribute the data across all containers. Rebalancing will not prevent concurrent access to the database. Below is an example of Containers. Compellent Technologies Page 8

Compellent Overview Compellent Consistency Group Compellent Consistency Group feature allows storage administrators to take a snapshot of a DB2 UDB database atomically. When creating a snapshot of a running DB2 database using storage functionality, you must ensure that all storage volumes (LUNs) that make up your database be atomically snapped because of multiple containers and transaction log files. Remember that DB2 writes to multiple container files, so without consistency group you cannot create a usable snapshot of a running database that spans multiple containers. Without consistency group, in order to create a usable snapshot of an online database, the database table space must be configured with all container files in one volume or with just one container. Consistency Group feature gives you the ability to create a usable snapshot of an online database with multiple container files and transaction log files spread across volumes for performance. Also, you can create a re-startable copy of a DB2 database with Consistency Group without having to suspend IO to database. This scenario is similar to having a power outage on the database server. At restart, DB2 performs crash recovery, rolling forward any changes that did not make it to the data files and rolling back changes that had not committed. However, roll-forward recovery using archive logs to a point-in-time after the re-startable copy is created is NOT supported. Compellent Technologies Page 9

Configurations Creating Volumes Creating volumes for your DB2 database is simple. Once the volumes are created, you map the volumes to your server and configure the volumes at the operating system level. Example: I have created four volumes for my database. Compellent Technologies Page 10

Creating Consistency Group Replay Profile After creating the volumes for your database, you can create a Consistency Group replay profile and apply the profile to the volumes. The below steps show how to create this profile and apply it to the volumes: 1. Right click on Replay Profiles and select Create Consistent Replay Profile. Click Continue button. 2. Click the Advanced button Compellent Technologies Page 11

3. Select both check boxes and enter 30 seconds and click Continue button. 4. Enter a name for this replay profile. The name of this replay profile will be used when creating replays of the database volumes. Click Create Now button. Compellent Technologies Page 12

5. DB2 replay profile has been created as shown. Right click on the DB2 replay profile and select Apply to Volume(s). 6. Expand the volume folder and select all volumes that make up the database and click Continue. Compellent Technologies Page 13

7. A confirmation window appears to allow you to verify the information. Click on Apply Now button to finish the process. Compellent Technologies Page 14

Usage Creating Replays You can create replays of your DB2 UDB database online via the GUI or CompCU (Compellent Command Line Utility). Before taking a replay of a DB2 database with either method, you need to suspend IO to the database first then take the replay and then resume IO to the database. Please refer to the sections below for both methods. If you want to create a re-startable copy of a database, you don t need to suspend IO to the database before taking replays. Creating Replays via the GUI If you want to take a replay of your DB2 database online via the GUI, you need to perform the following tasks: 1. Log into your database as the instance user and issue the following commands: [db2inst1@lynx ~]$ db2 attach to db2inst1 user db2inst1 using db2inst1 Instance Attachment Information Instance server = DB2/LINUXX8664 9.5.0 Authorization ID = DB2INST1 Local instance alias = DB2INST1 [db2inst1@lynx ~]$ db2 connect to TESTDB Database Connection Information Database server = DB2/LINUXX8664 9.5.0 SQL authorization ID = DB2INST1 Local database alias = TESTDB [db2inst1@lynx ~]$ db2 set write suspend for database DB20000I The SET WRITE command completed successfully. 2. In the GUI, right click on the DB2 replay profile and select Create Replay for Volumes. Compellent Technologies Page 15

3. When the replay has been taken, issue the following commands to resume IO to the database. [db2inst1@lynx ~]$ db2 set write resume for database DB20000I The SET WRITE command completed successfully. Creating Replays via the CompCU If you want to take a replay of your DB2 database online via the CompCU you need to perform the following tasks: Prerequisite: You need to install JRE 1.6 or higher on the database server and download CompCU.jar to the database server. 1. Log into your database server as the instance user and issue the following commands: [db2inst1@lynx ~]$ db2 attach to db2inst1 user db2inst1 using db2inst1 Instance Attachment Information Instance server = DB2/LINUXX8664 9.5.0 Authorization ID = DB2INST1 Local instance alias = DB2INST1 [db2inst1@lynx ~]$ db2 connect to TESTDB Database Connection Information Database server = DB2/LINUXX8664 9.5.0 SQL authorization ID = DB2INST1 Local database alias = TESTDB [db2inst1@lynx ~]$ db2 set write suspend for database DB20000I The SET WRITE command completed successfully. 2. Open another window to your database server and at the command prompt issue the CompCU command to take a replay. Please refer to the CompCU manual for the parameters. [root@falcon]# java jar CompCU.jar host x.x.x.x user Admin password password c replayprofile createreplay name DB2 replayname testreplay expire 60 Compellent Technologies Page 16

3. When the replay has been taken, issue the following commands to resume IO to the database. [db2inst1@lynx ~]$ db2 set write resume for database DB20000I The SET WRITE command completed successfully. You can automate this process by using a shell script on UNIX or batch script on Windows. Compellent Technologies Page 17

Conclusion With Compellent Consistency Group feature, database administrators can rest assure that they can take a snapshot of their DB2 databases at any time during working or nonworking hours. This flexibility not only allows convenience to the DBAs but also save time for database refreshes. Compellent Technologies Page 18