DB2 IBM Informix - DB2 آ® IBM Informix IBM Informix Backup and Restore Guide Version 10.0/8.5 G251-2269-00

  • View
    3

  • Download
    0

Embed Size (px)

Text of DB2 IBM Informix - DB2 آ® IBM Informix IBM Informix Backup and Restore Guide Version 10.0/8.5...

  • DB2® IBM Informix

    IBM Informix Backup and Restore Guide

    Version 10.0/8.5

    G251-2269-00

    ���

  • DB2® IBM Informix

    IBM Informix Backup and Restore Guide

    Version 10.0/8.5

    G251-2269-00

    ���

  • Note! Before using this information and the product it supports, read the information in “Notices” on page F-1.

    First Edition (December 2004)

    This document contains proprietary information of IBM. It is provided under a license agreement and is protected by copyright law. The information contained in this publication does not include any product warranties, and any statements provided in this manual should not be interpreted as such.

    When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you.

    © Copyright International Business Machines Corporation 1996, 2004. All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

  • Contents

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi About This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii

    Types of Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii Software Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . xii Assumptions About Your Locale . . . . . . . . . . . . . . . . . . . . . . . xiii Demonstration Database . . . . . . . . . . . . . . . . . . . . . . . . . xiii

    New Features in Dynamic Server . . . . . . . . . . . . . . . . . . . . . . . xiv Features from Dynamic Server 10.0 . . . . . . . . . . . . . . . . . . . . . . xiv Features from Dynamic Server 9.4 . . . . . . . . . . . . . . . . . . . . . . xv Features from Dynamic Server 9.3 . . . . . . . . . . . . . . . . . . . . . . xvi Features from Dynamic Server 9.21 . . . . . . . . . . . . . . . . . . . . . . xvi

    New Features in Extended Parallel Server . . . . . . . . . . . . . . . . . . . . xvi Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . xvi

    Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . xvii Feature, Product, and Platform . . . . . . . . . . . . . . . . . . . . . . . xvii Syntax Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii Example Code Conventions . . . . . . . . . . . . . . . . . . . . . . . . xxii

    Additional Documentation . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Installation Guides . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Online Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Informix Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . xxv Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi

    Accessibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi IBM Informix Dynamic Server Version 10.0 and CSDK Version 2.90 Documentation Set . . . . . xxvi Compliance with Industry Standards . . . . . . . . . . . . . . . . . . . . . . xxix IBM Welcomes Your Comments . . . . . . . . . . . . . . . . . . . . . . . . xxx

    Part 1. Introducing Backup and Restore

    Chapter 1. Introducing Backup and Restore . . . . . . . . . . . . . . . . . . . 1-1 What Is a Recovery System? . . . . . . . . . . . . . . . . . . . . . . . . . 1-2

    What Is a Backup? . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 What Is a Logical-Log Backup? . . . . . . . . . . . . . . . . . . . . . . . 1-3 What Is a Restore? . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5

    Comparing ON-Bar and ontape . . . . . . . . . . . . . . . . . . . . . . . . 1-9 Planning a Recovery Strategy . . . . . . . . . . . . . . . . . . . . . . . . 1-10

    What Types of Data Loss Can Occur? . . . . . . . . . . . . . . . . . . . . . 1-10 How Severe is the Failure? . . . . . . . . . . . . . . . . . . . . . . . . 1-10 How Do You Use Your Data? . . . . . . . . . . . . . . . . . . . . . . . 1-11 Scheduling Backups . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11

    Planning a Backup System for a Production Database Server . . . . . . . . . . . . . . 1-12 Evaluating Hardware and Memory Resources . . . . . . . . . . . . . . . . . . 1-12 Evaluating Backup and Restore Time . . . . . . . . . . . . . . . . . . . . . 1-12

    © Copyright IBM Corp. 1996, 2004 iii

  • Evaluating Logging and Transaction Activity . . . . . . . . . . . . . . . . . . 1-13

    Part 2. Overview of the ON-Bar Backup and Restore System

    Chapter 2. The ON-Bar Backup and Restore System . . . . . . . . . . . . . . . . 2-1 Where to Find Information on ON-Bar, ISM, and TSM . . . . . . . . . . . . . . . . 2-2 ON-Bar for Dynamic Server . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 ON-Bar for Extended Parallel Server . . . . . . . . . . . . . . . . . . . . . . 2-6

    Database Server and Storage-Manager Communication . . . . . . . . . . . . . . . 2-7 Backup Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7

    ON-Bar Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9 IBM Informix Storage Manager . . . . . . . . . . . . . . . . . . . . . . . 2-9 IBM Tivoli Storage Manager (UNIX) . . . . . . . . . . . . . . . . . . . . . 2-10 Third-Party Storage Managers . . . . . . . . . . . . . . . . . . . . . . . 2-11 The XBSA Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 The ON-Bar Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12 The Emergency Boot Files . . . . . . . . . . . . . . . . . . . . . . . . 2-12 The ON-Bar Activity Log . . . . . . . . . . . . . . . . . . . . . . . . . 2-14

    Chapter 3. Configuring the Storage Manager and ON-Bar . . . . . . . . . . . . . . 3-1 Configuring a Storage Manager . . . . . . . . . . . . . . . . . . . . . . . . 3-2

    Installing and Configuring a Storage Manager . . . . . . . . . . . . . . . . . . 3-2 Configuring ISM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Configuring TSM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Updating the sm_versions File . . . . . . . . . . . . . . . . . . . . . . . 3-5 Configuring Multiple Storage Managers on Coserver Nodes (XPS) . . . . . . . . . . . 3-6 Validating Your Storage Manager . . . . . . . . . . . . . . . . . . . . . . 3-7

    Configuring ON-Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7 Creating the bargroup Group (UNIX) . . . . . . . . . . . . . . . . . . . . . 3-7 Updating the onbar Script . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 Setting ISM Environment Variables and ONCONFIG Parameters . . . . . . . . . . . . 3-8 Setting the Informix Interface for TSM Environment Variables . . . . . . . . . . . . . 3-9 Specifying the Location of the XBSA Library . . . . . . . . . . . . . . . . . . . 3-9

    Using ON-Bar Configuration Parameters . . . . . . . . . . . . . . . . . . . . . 3-11 Using ON-Bar Configuration Parameters on Dynamic Server . . . . . . . . . . . . . 3-11 Using ON-Bar Configuration Parameters on Extended Parallel Server . . . . . . . . . . 3-12

    Steps to Take Before Making a Test Backup . . . . . . . . . . . . . . . . . . . . 3-18 Choosing Storage Managers and Storage Devices . . . . . . . . . . . . . . . . . . 3-19

    Features That ISM Supports . . . . . . . . . . . . . . . . . . . . . . . . 3-19 Features That ISM Does Not Support . . . . . . . . . . . . . . . . . . . . . 3-19 Features That TSM Supports . . . . . . . . . . . . . . . . . . . . . . . . 3-20 Feature that TSM Does Not Support . . . . . . . . . . . . . . . . . . . . . 3-20 Storage Device Requirements . . . . . . . . . . . . . . . . . . . . . . . 3-20 Considerations for Extended Parallel Server . . . . . . . . . . . . . . . . . . 3-21

    Chapter 4. Backing Up with ON-Bar . . . . . . . . . . . . . . . . . . . . . . 4-1 Syntax of ON-Bar Commands . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Preparing for a Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3

    What Data Does ON-Bar Back Up? . . . . . . . . . . . . . . . . . . . . . . 4-3

    iv IBM Informix Backup and Restore Guide

  • Which Administrative Files to Back Up? . . . . . . . . . . . . . . . . . . . . 4-4 Installing and Configuring a Storage Manager . . . . . . . . . . . . . . . . . . 4-5 What Is a Whole-System Backup? (IDS) . . . . . . . . . . . . . . . . . . . . 4-5 What Is a Standard Backup? . . . . . . . . . . . . . . . . . . . . . . . . 4-5 What is an Incremental Backup? . . . . . . . . . . . . . . . . . . . . . . . 4-5 What Is a Physical Backup? (XPS) . . . . . . . . . . . . . . . . . . . . . . 4-6 Choosing a Backup Level . . . . . . . . . . . . . . . . . . . . . . . . . 4-6 Collecting Information About Your System Before a Backup . . . . . . . . . . . . . 4-7

    Backing Up Storage Spaces and Logical Logs . . . . . . . . . . . . . . . . . . . 4-8 Backup

Recommended

View more >