Architecture For HP Data Protector and Oracle 11gR2 RAC On Linux
Architecture For HP Data Protector and Oracle 11gR2 RAC On Linux
Executive summary
A variety of backup strategies exist to best meet your business priorities. If the Oracle database availability is the
highest priority, for instance, the backup strategy should include online backups that are performed frequently to
minimize recovery time. The HP Data Protector zero downtime backup functionality offers online backup capabilities
with minimal degradation of the application system performance.
HP Data Protector zero downtime backup (ZDB) is designed to improve backup strategies for high-availability systems
and non HA systems. ZDB delivers best-in-class backup and recovery solutions for Oracle 11gR2 database in Linux
environment. Zero downtime backup and recovery have two great advantages over other backup and restore
techniques.
The interface from the Oracle server processes to Data Protector is provided by the Data Protector Oracle integration
Media Management Library (MML), which is a set of routines that allows the reading and writing of data to General
Media Agents. Besides handling direct interaction with the media devices, Data Protector provides scheduling, media
management, network backups, monitoring, and interactive backup. Figure 1 illustrates concept of Oracle
integration, data and the control flow.
A backup that includes all datafiles and current control file that belong to an Oracle Server instance is known as a
whole database backup. Data Protector ZDB can be used for online or offline backup of the Oracle target database.
However, you must ensure that the backup objects (such as tablespaces) are switched into the appropriate state
before and after a backup session. For online backup, the database instance must operate in the ARCHIVELOG
mode; whereas for offline backup, objects need to be prepared for backup using the Pre-exec and Post-exec options
in the backup specification. The Data Protector backup specification contains information about backup options,
commands for RMAN, Pre- and Post-exec commands, media, and devices.
Data Protector provides broad coverage for storage systems. In this white paper Data Protector 6.20 is tested with HP
6400 Enterprise Virtual Array (EVA6400) snapshot types:
ZDB to disk: The replica produced is kept on a disk array until reused. This replica becomes part of the replica set
and can be used for instant recovery. ZDB to disk is performed if the option Track the replica for instant recovery
is selected in a ZDB backup specification and to disk is selected when running/scheduling a backup.
ZDB to tape: The replica produced is streamed to backup media, typically tape, according to the tape backup type
you have selected. This replica is deleted after backup if the option keep the replica after the backup is cleared
for the backup specification. If this option is selected, the replica remains on a disk array until reused and becomes
part of the replica set. However, it cannot be used for recovery.
ZDB to disk+tape: The replica produced is kept on a disk array until reused and is also streamed to backup media
according to the tape backup type you have selected. This replica becomes part of the replica set and can be used
for instant recovery. ZDB to disk+tape is performed if the option Track the replica for recovery is selected in a
ZDB backup specification, and to disk+tape is selected when running/scheduling a backup.
ZDB Backup set method: The Oracle backup set ZDB method, the entire data to be backed up is provided to Data
Protector through the Oracle APIthe data is streamed through the Data Protector Oracle integration MML.
Depending on the location of the Oracle control file, online redo log files, and SPFILE, the following two options
are possible:
Oracle control file, online redo log files, and SPFILE reside on a different volume group (if LVM is used) or
source volume than Oracle datafiles. By default, instant recovery for such a configuration is enabled.
Oracle control file, online redo log files, SPFILE reside on the same volume group (If LVM is used) or source
volume as Oracle datafiles
Online backup: The database is placed in hot-backup mode while a replica of sections to be backed up is created.
In this mode, any changes to the database are written to transaction logs, not the database itself. When the
database is fully functional again, it is updated from the transaction logs. This allows the database to be operated
on without stopping the application. A separate backup server can be used for backup application database to
save the production server bandwidth.
Offline backup: Database operation is simply stopped while a replica is created. No transactions are possible
during this time.
Solution overview
The solution described in this paper will create an Oracle backup and recovery sample architecture to integrate Data
Protector in an Oracle Database environment. Backup and recovery strategies will be considered in context to an
Oracle Real Application Clusters (RAC) environment. This project is a base Data Protector (DP) solution which resides
in an HP BladeSystem environment; it provides for a scale-out environment with respect to DP cell servers and
installation servers.
Solution components
HP Data Protector 6.20 ZDB environment has the following key components:
Hardware
HP BladeSystem c7000 enclosure
BL460c G7 servers
HP Virtual Connect Flex Fabric 10Gb/24 port modules
EVA6400 storage
HP SAN Switch and 4/16 SAN Switch
HP MSL2024 G3 series tape library
HP NC553i FCOE (Fiber Channel over Ethernet)
Management software
HP Command View EVA (CV EVA)
HP Data Protector 6.20
Red Hat Enterprise Linux device-mapper multipath
Oracle database management software (dbca, asmca, etc.)
Solution environment
This section outlines the setup used in Data Protector 6.20 ZDB solution for Oracle using:
ZDB Backup/Restore
ZDB snapshot Oracle Integration.
Figure 2 illustrates the functional diagram of ZDB backup.
Abbreviations:
Cluster name
EVACMDVIEW_Server
N/A
BKUP_Server
N/A
APP_Server1
Application Server1
raccluster
APP_Server2
Application Server 2
raccluster
To verify your setup you can use several tools as shown in the notes below.
Note
C:\Program Files\OmniBack\bin>omnidbsmis.exe -ompasswd list
User
Host
Port
Ssl
----------------+--------------------+-----+-------------Administrator
BKUP_Server
5988
No
Administrator
EVACMDVIEW_Server
5988
No
Note:
C:\Program Files\OmniBack\bin>omnidbsmis.exe -ompasswd check
This command checks the communication to configured SMI-A providers.
Oracle 11gR2 Grid installed as a standalone server. Grid infrastructure is important for ZDB backup process.
RMAN Catalog database is configured on this server. Each application database should be registered under
catalog database for ZDB backup.
Application database should be able to login to the backup host using sqlplus sys/sys@DBSID as sysdba
credentials. Make sure the application database is accessible by the backup host. Make sure the tnsnames.ora
and listener.ora files are same in both application servers and backup server.
Sample listener.ora file:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/11.2.0/dbhome_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = RCBB)
(ORACLE_HOME = /u01/app/11.2.0/dbhome_1)
(SID_NAME = RCBB)
)
(SID_DESC =
(GLOBAL_DBNAME = RCBB)
(ORACLE_HOME = /u01/app/11.2.0/dbhome_1)
(SID_NAME = RCBB1)
)
(SID_DESC =
(GLOBAL_DBNAME = RCBB)
(ORACLE_HOME = /u01/app/11.2.0/dbhome_1)
(SID_NAME = RCBB2)
)
(SID_DESC =
(GLOBAL_DBNAME = RCAA)
(ORACLE_HOME = /u01/app/11.2.0/dbhome_1)
(SID_NAME = RCAA)
)
(SID_DESC =
(GLOBAL_DBNAME = +ASM1)
(ORACLE_HOME = /u01/app/11.2.0/grid)
(SID_NAME = +ASM1)
)
(SID_DESC =
(GLOBAL_DBNAME = +ASM2)
(ORACLE_HOME = /u01/app/11.2.0/grid)
(SID_NAME = +ASM2)
)
ASM instance 1
ASM instance 2
Note
ASM information is also required in listener.ora files. For Real Application
Clusters (RAC) environment, mention all ASM instance names e.g. +ASM1,
+ASM2 in listener.ora file.
Single instance
(SERVER = DEDICATED)
(SERVICE_NAME = RCAA)
)
)
+ASM1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = raccluster)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = APP_Server1-vip)(PORT = 1521)) ASM instance 1
(ADDRESS = (PROTOCOL = TCP)(HOST = APP_Server1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = +ASM1)
)
)
+ASM2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = raccluster)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = APP_Server2-vip)(PORT = 1521)) ASM instance 2
(ADDRESS = (PROTOCOL = TCP)(HOST = APP_Server2)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = +ASM2)
)
)
Note
ASM instances are required in tnsnames.ora files. For RAC, mention all ASM
instance names +ASM1, +ASM2 in tnsnames.ora file
After configuring ZDB backup configuration using command line CLI in Application server, the configuration files
will get created in Cell Servers /etc/opt/omni/server/integ/config/Oracle8 location. These files have the details
about database ID and its credentials, ASM instance details, catalog database details and credentials.
During the backup process the DP GUI will fetch the details from this location:
/etc/opt/omni/server/integ/config/Oracle8.
cat /etc/opt/omni/server/integ/config/Oracle8
-rw------- 1 root root 341 Nov 28 00:12 2108799478
-rw------- 1 root root 870 Nov 28 00:12 BKUP_Server%initVASS_bckp.ora
-rw------- 1 root root 24 Nov 28 00:12 BKUP_Server%_OB2_GLOBAL
-rw------- 1 root root 258 Nov 28 00:12 BKUP_Server%VASS
-rw------- 1 root root 61 Nov 28 00:13 APP_Server1%_OB2_GLOBAL
-rw------- 1 root root 282 Nov 28 00:13 APP_Server1%VASS
-rw------- 1 root root 241 Nov 28 01:55 ob2_dpmctl_backup_18899_bfef.dma
User:
Namespace:
Port:
SSL mode:
Administrator
root/eva
5988
FALSE
$ export ORACLE_SID=+ASM1
$ export ORACLE_HOME=/u01/app/11.2.0/grid
$ asmcmd
State
Type
MOUNTED EXTERN N
MOUNTED EXTERN N
MOUNTED EXTERN N
Rebal
512
512
512
Sector Block
4096 1048576
4096 1048576
4096 1048576
AU
204800
10240
20480
Total_MB
201361
7567
20385
Free_MB
Req_mir_free_MB
0
0
0
Usable_file_MB
201361
7567
20385
Offline_disks
0
0
0
Voting_files
N
N
N
Name
DATA
RAC
SIDB
RAC database and single instance database is configured on ASM disk groups.
ZDB backup should be configured on Application server using following command.
For RAC database:
$/opt/omni/lbin/util_oracle8.pl -config -dbname RCBB -orahome /u01/app/11.2.0/dbhome_1 prmuser sys -prmpasswd sys -prmservice RCBB1,RCBB2 -rcuser rman -rcpasswd rman -rcservice
CATDB -zdb_method BACKUP_SET -bkphost BKUP_Server -client raccluster -asmhome
/u01/app/11.2.0/grid -asmuser sys -asmpasswd sys -asmservice +ASM1,+ASM2
Note
The client name should be the cluster name.
Note:
The ZDB GUI based database backup configuration is not supported for ASM
based databases. All the ASM options can be used only in command line
mode.
ZDB backup and restore solutions are tested on filesystem, ASM and non-ASM configurations on Red Hat Linux
environment. Oracle ASM disks are managed using Linux device-mapper multipath.
10
Backup
Restore
Tape Library
Tape Library
Tape Library
Tape Library
Tape Library/CellFileLibrary
Tape Library/CellFileLibrary
Linux filesystem
Tape Library/CellFileLibrary
Tape Library/CellFileLibrary
Note
Instant recovery is not supported for ASM based disks.
Oracle catalog database is required in the backup server and all the
Protector during the backup process if there any changes done in the
application database.
Verify the list of database names registered under RMAN catalog database:
permissions.
11
Hardware components
This section outlines the hardware components used in Data Protector ZDB environment described in this white paper.
Figure 3 illustrates the front and rear views of hardware used in this configuration.
12
2.
3.
4.
5.
Select the backup method and select the subtype as HP EVA6400 SMI-S.
Figure 4 illustrates the Create New Backup for filesystem in the DP GUI.
6.
7.
Select he snapshot management options as Original volume and snapshot type as Standard snapshot.
8.
Figure 5 illustrates the backup specifications such as snapshot type and backup system options, etc.
13
9.
14
15
Figure 8 illustrates the list of destination backup devices available for backup.
16
11. Save the ZDB backup and start the backup process.
Select the SMB_backup_set method and select the subtype as HP EVA6400 EVA SMI-S.
Select he snapshot management options as Original volume and snapshot type as Standard snapshot
and proceed further.
Verify the database name, RMAN credentials and backup method is BACKUP_SET method. Proceed
further.
Save the ZDB backup by giving name and start the backup.
17
Figure 10 illustrates the DP monitoring window which shows the current backup progress.
Save the file. This will avoid the device-mapper device permission changes after the reboot. This is mandatory.
Make an entry if LVM based disk is used:
chown oracle:oinstall /dev/mapper/targt-lvol0
Summary
With HP Data Protector 6.20 you can create zero downtime backup (ZDB) for filesystem and ASM based Oracle
databases. This white paper details how to use the HP Data protector 6.20 to perform zero downtime backup for
Oracle 11gR2 RAC and single instance databases. It includes steps to configure the ZDB backup for Oracle 11gR2
RAC.
18
Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The
only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services.
Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or
omissions contained herein.
Oracle is a registered trademark of Oracle and/or its affiliates. Microsoft and Windows are U.S. registered trademarks of Microsoft
Corporation.
4AA3-9092ENW, Created January 2012