M21 Database Backup and Restore



Similar documents
Backing Up TestTrack Native Project Databases

How To Backup Your Data From A Datatron Tape To A Backup From A Backup To A Disk Drive

Rev C. DBDS Backup and Restore Procedures For System Release 2.2 Through 4.3

6. Backup and Recovery 6-1. DBA Certification Course. (Summer 2008) Recovery. Log Files. Backup. Recovery

MATCHDAY September 2014

EVault Software. Course 361 Protecting Linux and UNIX with EVault

This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore

Database Backup, Restore, and Archive Guide For Journyx Timesheet version 5.0 and higher Document version 2.0 January 2006

WebSphere Application Server security auditing

Symantec Backup Exec Desktop Laptop Option ( DLO )

Academic Calendar for Faculty

Backup Software Comparison Table

Audit Trail Administration

Linux System Administration. System Administration Tasks

Server & Workstation Installation of Client Profiles for Windows

1 of 10 1/31/2014 4:08 PM

DSK MANAGER. For IBM iseries and AS/400. Version Last Updated September Kisco Information Systems 7 Church Street Saranac Lake, NY 12983

Configuring System Message Logging

Centers for Medicare and Medicaid Services. Connect: Enterprise Secure Client (SFTP) Gentran. Internet Option Manual

Technical Note P/N REV A05 September 20, 2010

4PSA Total Backup User's Guide. for Plesk and newer versions

Linux Crontab: 15 Awesome Cron Job Examples

UNISOL SysAdmin. SysAdmin helps systems administrators manage their UNIX systems and networks more effectively.

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

How To Backup A Database On An Apa Database On A Pc Or Mac Or Mac (For A Mac) On A Mac Or Pc Or Pc (For An Ipa) On An Ipad Or Mac On A Microsoft Database On Pc Or

Configuring System Message Logging

IMF Tune v7.0 Backup, Restore, Replication

Advanced SUSE Linux Enterprise Server Administration (Course 3038) Chapter 5 Manage Backup and Recovery

Caché Data Integrity Guide

Block-Level Incremental Backup

Maintaining the Central Management System Database

Exchange Granular Restore User Guide

Avira Update Manager User Manual

Directory Backup and Restore

RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 )

BACKUP AND RECOVERY PLAN MS SQL SERVER

Performing Database and File System Backups and Restores Using Oracle Secure Backup

Open Systems SnapVault (OSSV) Best Practices Guide

Database Administration

Adaptive Server Enterprise

Backup Assistant. User Guide. NEC NEC Unified Solutions, Inc. March 2008 NDA-30282, Revision 6

Disk-to-Disk-to-Tape Backup for a Citrix XenServer Cluster Bacula conference Robert Müller

Caché Data Integrity Guide

MS SQL Server Backup - User Guide

Tracking Network Changes Using Change Audit

Linux Audit Quick Start SUSE Linux Enterprise 10 SP1

SAM 8.0 Backup and Restore Guide. SafeNet Integration Guide

Performance Navigator Installation

SETTING UP ACTIVE DIRECTORY (AD) ON WINDOWS 2008 FOR EROOM

HyperFS PC Client Tools

Data Replication User s Manual (Installation and Operation Guide for Windows)

Administration: Backup, Restore, and Data Recovery. SAP Sybase IQ 16.0

Log Correlation Engine Backup Strategy

English ETERNUS CS800 S3. Backup Exec OST Guide

Backing Up CNG SAFE Version 6.0

SendMIME Pro Installation & Users Guide

Exchange Granular Restore Instructional User Guide

Basic ShadowProtect Troubleshooting

Minimum Requirements New Firm Installation Instructions for the Software Delivery Manager...2. NEW Firms Installing for the First Time...

XCloner Official User Manual

Magento Dhru Fusion Integration Extension. IMEI Profile Configuration

Backup. Backing up Spectrum data Backing up using the Ctdump program Backing up without using the Ctdump program...

PMOD Installation on Windows Systems

4 Backing Up and Restoring System Software

Exchange Granular Restore. User Guide

How To Install A Virtual Image Facility On Linux (Amd64) On A 3390 Dasd 3390 (Amd32) Dasda (Amd86) (Amd66) (Dasd) (Virtual Image Facility) (For

Printer Properties Pro User Guide Page 1

SAM Backup and Restore Guide. SafeNet Integration Guide

Topaz Installation Sheet

Service Level Agreement (SLA)

HP D2D NAS Integration with HP Data Protector 6.11

Eurobackup PRO Exchange Databases Backup Best Practices

Backing up the Embedded Oracle database of a Red Hat Network Satellite

Electra Elite and InfoSet are registered trademarks of NEC America, Inc.

User Migration Tool. Note. Staging Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted Release 9.0(1) 1

IBM SmartCloud Workload Automation - Software as a Service. Agent Installation and Uninstallation Messages

Symantec NetBackup SAN Client and Fibre Transport Guide

This is when a server versus a workstation is desirable because it has the capability to have:

Symantec NetBackup Backup, Archive, and Restore Getting Started Guide. Release 7.5

Microsoft SQL Server Guide. Best Practices and Backup Procedures

Attendance System User Manual

Windows Server 2008 R2 Essentials

Version: Page 1 of 5

Plesk 8.3 for Linux/Unix Acronis True Image Server Module Administrator's Guide

Time Attendance Management System

Microsoft s SBS 2003 Best Practice Guide

Managing ACE Software Licenses

Gentran Integration Suite. Archiving and Purging. Version 4.2

EasySuite. User Guide V1.0

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

EMC DiskXtender File System Manager for UNIX/Linux Release 3.5

Symantec NetBackup SAN Client and Fibre Transport Guide

Actualtests.com - The Power of Knowing

BrightStor ARCserve Backup

System Administration. Backups

International University of Monaco 27/04/ :55 - Page 1. Monday 30/04 Tuesday 01/05 Wednesday 02/05 Thursday 03/05 Friday 04/05 Saturday 05/05

International University of Monaco 21/05/ :01 - Page 1. Monday 30/04 Tuesday 01/05 Wednesday 02/05 Thursday 03/05 Friday 04/05 Saturday 05/05

Release Notes P/N REV A05

CLIENT. Report of Remote Backup Service

Transcription:

M21 Database Backup and Restore

M21 Database Backup and Restore

Table of Contents 1. Overview...7 2. dbbkrs - DATABASE BACKUP and RESTORE...9 EXAMPLES...13 3. runbackup - RUN DATABASE BACKUP IN QUIET MODE...15 EXAMPLES...18 5

6

Chapter 1. Overview This document describes the programs that are used to backup or restore the M21 system. 7

Chapter 1. Overview 8

Chapter 2. dbbkrs - DATABASE BACKUP and RESTORE Used to do a FULL CONCURRENT or INCREMENTAL backup or restore of the M(UMPS) database volumes, database.cfg file and database.ports file. The dbbkrs program can also carry out the backup of the database after image journal files, but the restore is automatically performed by the M(UMPS) system at IPL time if needed. The dbbkrs program works by having one master process that starts a number of slave processes to do the input and output, based on the FBACKUP, IBACKUP and JBACKUP parameters which are specified in the database.cfg file. The master process is the only process that reads and writes to the initiating terminal. Other backup and restore options are controlled by the ABACKUPOPTION, FBACKUPOPTION, FBACKUPSAVE, IBACKUPOPTION, IBACKUPSAVE, JBACKUPOPTION, and JBACKUPSAVE parameters which are also specified in the database.cfg file. See the Configuration File documentation for a detailed description of these parameters. The dbbkrs program is normally called using one of the shell scripts - dbbkup, dbrstr, dbtt and runbackup, which specify some of the parameters to the dbbkrs program automatically. The following tables describe the parameters that can be supplied to control the behaviour of the dbbkrs program. Parameter -AUDIT -BASEDIR=NAME -CLEAR -COMPLETED Description dbbkrs will check the parameters it uses in the database.cfg file and system.conf file. The results of these checks are written to the standard output. Where NAME is the full path name to use instead of /m21.this is used to force dbbkrs to use a different system.conf file. Force dbbkrs to just clear the Modified Block Bit Maps located in shared memory if M21 is active or the Modified Block Bit Maps located in files if it is not active. This should only be used on systems that backup the database volumes using a program other than dbbkrs. Force dbbkrs to update all the volumes to indicate that a FULL CONCURRENT backup has been completed. This should only be used on systems that backup the database volumes using a program other than dbbkrs. 9

Chapter 2. dbbkrs - DATABASE BACKUP and RESTORE -FORCE -LIST -LOGFILE=NAME -NOSYNC -MESSAGES -OVERRIDE -QUIET -SLAVE Force dbbkrs to run even though the database status indicates that another dbbkrs is already running for this database. This should be used with great care and only after making sure that there is not another dbbkrs running for this database. If this is not done it will conflict with the other dbbkrs with unpredictable results. Will just list the blocks that would go on an incremental backup tape or be restored from a full or incremental tape. Where NAME is the full path name to the backup or restore log file. This should only be passed to the slave dbbkrs processes by the master dbbkrs process and is not specified by the user of the backup program.example This informs dbbkrs not to synchronize the block number when restoring and a volume spans more than one tape. Allow certain messages to be displayed even if the -v options has not been specified. This is usually only used by the runbackup program. This informs dbbkrs to automatically answer yes to override request if the tape mounted is not a backup tape, is for the wrong database, is the wrong type of backup tape or the tape purge date has not been exceeded. Great care should be taken with this option because it can destroy a backup that has just been completed. This backup is being run via the runbackup program. When prompted to mount a tape automatically answer yes unless it is the second tape or a restart because of an error. This informs dbbkrs that it will be a slave process and to not perform the functions of the master process. This should only be passed to the slave dbbkrs processes by the master dbbkrs process and is not specified by the user of the backup program. 10

Chapter 2. dbbkrs - DATABASE BACKUP and RESTORE -TDNX Where X is the tape drive number for the slave process to use. This should only be passed to the slave dbbkrs processes by the master dbbkrs process and is not specified by the user of the backup program. -b Cause dbbkrs to run in backup mode. This option is mutually exclusive with the -l, -r and -t options. -dname Where NAME is the full path name of the database to be accessed by dbbkrs. NAME should not contain any file extensions, i.e. NOT NAME.cfg. -f Do a FULL CONCURRENT backup or restore. This option is mutually exclusive with the -i, -j and -l options. -gn Where N is the group (1-9) of configuration parameters to use, i.e. FBACKUP1. -i Do an INCREMENTAL backup or restore. This option is mutually exclusive with the -f, -j and -l options. -j Do a journal backup. This option is mutually exclusive with the -f, -i and -l options. -l List or write tape labels. If this is selected, no other options are required. The user will prompted for the tape drive number and density. This option is mutually exclusive with the -b, -m, -r, and -t options. -m Causes dbbkrs to monitor an already running dbbkrs. Shows the status line only. The only other option required is -dname. This option is mutually exclusive with the -l and -t options. -oname Causes dbbkrs to use NAME when comparing the database name on the tapes when doing a restore. This is used to change the database name when doing a restore. -r Do a restore. This option is mutually exclusive with the -b, -l, and -t options. 11

Chapter 2. dbbkrs - DATABASE BACKUP and RESTORE -smnnn Causes dbbkrs to allocate NNN megabytes of shared memory. This is only valid when running dbbkrs with the database shut down. The default is 8MB. -t Causes dbbkrs to perform all the normal checks as if restoring a database, but does not write anything to the disk. This will test if all the tapes are readable at this time. This option is mutually exclusive with the -b, -r, -l, and -m options. -vx Where X is between 1 and 9 for the level of verbosity. If just -v is specified, the level will be incremented by 1 each time. This option shows the I/O counts and percent completion of the backup or restore. If the -v option is specified, the following status line will be displayed and updated each second. After five seconds, if there are multiple tape drives, the display will switch to the next tape drive number, cycling through all tape drives. D X VNN SS CDB: CTB:._% TDB: TTB: X VNN SS Current tape drive number for the rest of the status line. NN is the current volume number or --- for journal backup. One of the following 2 character status codes: AB AF CT CV ER FS MR OR OT OV PT RF This tape drive is in the process of aborting, generally due to some unrecoverable error condition. Prompting for an alternate file during a full restore. Only seen by a monitoring dbbkrs. Closing the tape. Creating a volume. Only seen during a full restore. An error condition has occurred for this tape drive. File synchronisation, The operating system buffers are being forced to be written to disk. Only seen during a full restore. Mount request for a tape. Only seen by a monitoring dbbkrs. Override request, to write on a tape that has the wrong label or has not expired. Only seen by a monitoring dbbkrs. Opening tape. Opening a database volume. Positioning a tape. Reading from a database volume file. 12

Chapter 2. dbbkrs - DATABASE BACKUP and RESTORE X Current tape drive number for the rest of the status line. RL Reading the label a from tape. RQ Requesting a quiesce. RT Reading from a tape. RW Rewinding a tape. WF Writing to a database volume file. WL Writing a label to a tape. WM Writing a tape mark on a tape. WT Writing to a tape. -- No status.?? UNKNOWN STATUS. CDB Current number of database blocks read or written for this tape. CTB Current number of tape buffers read or written for this tape. % Percentage completed. TDB Total number of database blocks read or written. TTB Total number of tape buffers read or written. EXAMPLES To perform a full concurrent backup of database testdb: dbbkrs -b -f -v -d/m21/db00/testdb To perform a full concurrent backup of database testdb using parameter group 2: dbbkrs -b -f -g2 -v -d/m21/db00/testdb To perform an incremental backup of database testdb: dbbkrs -b -i -v -d/m21/db00/testdb To perform a journal backup of database testdb: dbbkrs -b -j -v -d/m21/db00/testdb To perform a full restore of database testdb: dbbkrs -r -f -v -d/m21/db00/testdb To perform an incremental restore of database testdb: dbbkrs -r -i -v -d/m21/db00/testdb To perform a full restore of database testdb and rename it to freddb: dbbkrs -r -f -otestdb -v -d/m21/db00/freddb 13

Chapter 2. dbbkrs - DATABASE BACKUP and RESTORE To list the blocks that would go on an incremental backup for database testdb: dbbkrs -b -i -v -LIST -d/m21/db00/testdb To monitor an already running backup or restore for database testdb: dbbkrs -m -d/m21/db00/testdb To show or write labels on a tape. dbbkrs -l 14

Chapter 3. runbackup - RUN DATABASE BACKUP IN QUIET MODE This shell script is used to do unattended FULL CONCURRENT, INCREMENTAL and JOURNAL backups of the M21 database volumes, database.cfg file, database.ports file, and the database journal files. This is done by scheduling the runbackup program to be run using the UNIX system cron command to run at a specific time and placed in the user s crontab file. The runbackup script calls the dbbkrs program with the parameters set to automatically answer yes when the dbbkrs program prompts to mount a tape. Therefore the parameters located in the database.cfg file can still be the same as those for running backups using dbbkrs. Dependent upon the options specified and the hardware configuration available it is possible to schedule all three backup types to be performed one after another starting with a FULL CONCURRENT, then an INCREMENTAL, and then a JOUR- NAL. This particular example would require that the system had three available tape drives with tapes mounted, and that the different backup types were configured to be backed up to different tape drives. Each backup type must be able to complete without requesting to mount additional tapes once the backup has started. If an additional tape is required or there are any hard tape errors the backup will be aborted. The following table describes the parameters that can be supplied to control the behaviour of the runbackup shell script. Parameter -DEBUG Description Debugging information will be written to the standard output. When run via cron the information will be mailed to the login id that cron ran the runbackup shell script for. -a Request that all three backup types be done, a FULL CONCURRENT, an INCREMENTAL, and a JOURNAL, one after the other. This requires the use of three tape drives otherwise the backup will overwrite one another. -ac -agn -ao For all backup types requested, continue to the next backup type if the current one fails. See the -fc and -ic options. For all backup types requested, N is the group (1-9) of configuration parameters to use, i.e. FBACKUP1, IBACKUP1, JBACKUP1. For all backup types requested, automatically answer yes for any override request. See the -fo, -io, and -jo options. 15

Chapter 3. runbackup - RUN DATABASE BACKUP IN QUIET MODE Parameter -at -dname Description For all backup type requested, test the readability of the tapes to ensure that the backup is good. See the -ft, -it, and -jt options. Where NAME is the full path name of the database to be accessed by dbbkrs. NAME should not contain any file extensions, i.e. NOT NAME.cfg. -f Perform a FULL CONCURRENT backup. -fc -fgn -fo -ft When a FULL CONCURRENT backup has been requested and it fails, continue to the next requested backup type. When a FULL CONCURRENT backup has been requested, N is the group (1-9) of configuration parameters to use, i.e. FBACKUP1. See the -ag, -ig, and -jg options. When a FULL CONCURRENT backup has been requested and an override is requested, automatically answer yes. The override request will be needed if the tape in the tape drive is not a database backup tape, is not a backup tape for this database, is the wrong type of backup tape, or the purge date has not been exceeded. When a FULL CONCURRENT backup has been requested, test the readability of the tapes to ensure that the backup is good. See the -at, -it, and -jt options. -I Perform an INCREMENTAL backup. -ic -ign When an INCREMENTAL backup has been requested and it fails, continue to the next requested backup type. When an INCREMENTAL backup has been requested, N is the group (1-9) of configuration parameters to use, i.e. IBACKUP1. See the -ag, -fg, and -jg options. 16

Chapter 3. runbackup - RUN DATABASE BACKUP IN QUIET MODE Parameter -io -it Description When an INCREMENTAL backup has been requested and an override is requested, automatically answer yes. The override request will be needed if the tape in the tape drive is not a database backup tape, is not a backup tape for this database, is the wrong type of backup tape, or the purge date has not been exceeded. When an INCREMENTAL backup has been requested, test the readability of the tape to ensure that the backup is good. See the -at, -ft, and -jt options. -j Perform a JOURNAL backup. -jgn -jo -jt -ma=user -mb=user -mg=user -sla -slb When a JOURNAL backup has been requested, N is the group (1-9) of configuration parameters to use, i.e. JBACKUP1. See the -ag, -fg, and -ig options. When a JOURNAL backup has been requested and an override is requested, automatically answer yes. The override request will be needed if the tape in the tape drive is not a database backup tape, is not a backup tape for this database, is the wrong type of backup tape, or the purge date has not been exceeded. When a JOURNAL backup has been requested, test the readability of the tape to ensure that the backup is good. See the -at, -ft, and -it options. Whether the requested backups succeed or fail then send mail to USER indicating the status. If the requested backups fail then send mail to USER indicating that the backup failed. If the requested backups succeed then send mail to USER indicating that the backup completed. If the requested backups succeed or fail then log a message to the system logger. See the -slb and -slg options. If the requested backups fail then log a message to the system logger. This will be a warning message. See the -sla and -slg options. 17

Chapter 3. runbackup - RUN DATABASE BACKUP IN QUIET MODE Parameter -slg Description If the requested backups succeed then log a message to the system logger. This will be an information message. See the -sla and -slb options. EXAMPLES To perform a full concurrent, incremental, and journal backup with continue and override. Mail status to user m21 and send messages to the syslog for all backups for database testdb: runbackup -a -ac -ao -d/m21/db00/testdb -ma=m21 -sla To perform a full concurrent and an incremental backup and send mail to m21 if the backup fails for database testdb: runbackup -d/m21/db00/testdb -f -i -mb=m21 To perform a full concurrent using group 2 parameters and mail root for database testdb: runbackup -d/m21/db00/testdb -f -fg2 -ma=root To perform a full concurrent, incremental, journal backup and test the tapes. Mail status to root and send messages to the syslog for all backups for database testdb: runbackup -a -at -d/m21/db00/testdb -ma=root -sla The following crontab file will perform a FULL CONCURRENT backup of the M21 system at 11pm on Tuesday, Thursday, Saturday and Sunday; an INCREMENTAL backup at 11pm on Monday, Wednesday and Friday; a JOURNAL backup at 10:30pm on Sunday: SHELL=/bin/ksh MAILTO=root HOME=/m21 PATH=/sbin:/bin:/usr/sbin:/usr/bin:$HOME/dbin:$HOME/adbin:$HOME/bin:/local/bin USERNAME="m21" BASE=/m21 DBNAME=/home/m21/db00/priam 0 23 * * 2,4,6,7 /m21/adbin/runbackup -f -fc -fo -d/m21/db00/testdb - ma=root 0 23 * * 1,3,5 /m21/adbin/runbackup -i -ic -io -d/m21/db00/testdb -ma=root 30 22 * * 7 /m21/adbin/runbackup -j -jc -jo -d/m21/db00/testdb -ma=root 18