on 08-26-2011 3:40 PM
HI all,
Our database backup was running ok for the passed 3 months after the SAP system was installed. Recently, I keep getting BR278E error during backup. Below are the error message:
BR0202I Saving init_ora
BR0203I to /dev/rmt/0mn ...
BR0278E Command output of 'LANG=C cd /oracle/PRD/102_64/dbs && /usr/sap/PRD/SYS/
exe/run/brtools -f printarg initPRD.ora spfilePRD.ora | LANG=C cpio -ovB > /dev/
rmt/0mn':
initPRD.ora
spfilePRD.ora
^GEnd of medium on "output".
To continue, type device/file name when ready.
The SAP system is on Solaris/Oracle running ECC6.0. LTO-4 tape drive is used for the backup. Tape_size in initSID.sap is set to 720000M. Current database size is 128Gb.
What is the reason for the backup failure?
Rdgs,
Lim
Hi Lim,
Are your other backups like archive log backups running Ok for this server?
If yes, please check if there is any changes in the files of online backup profile of brtools and the utl file being used.
Also, please check if the tape volumes are properly being mounted or not.
Refer to the link below for the discussion on a similar issue.
Br,
Venky.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Provide full backup action log information, which you can find as /oracle/<SID>/sapbackup location. Also provide snapshot of init<SID>.sap file parameter information. This will help anyone to have better idea about error causes & symptoms.
You can put tape_size = 800G in init<SID>.sap file.
Tape Media is Ok ?
Try to reinitialize tape again with force option and try again.
brbackup -i force -v SCRAP -c
Regards,
Bhavik G. Shroff
Hi,
This is my initSID.sap
@(#) $Id: //bas/640_REL/src/ccm/rsbr/initSUN.sap#4 $ SAP
backup mode [all | all_data | full | incr | sap_dir | ora_dir
| <tablespace_name> | <file_id> | <file_id1>-<file_id2>
| <generic_path> | (<object_list>)]
default: all
backup_mode = all
restore mode [all | all_data | full | incr | incr_only | incr_full
| <tablespace_name> | <file_id> | <file_id1>-<file_id2>
| <generic_path> | (<object_list>)]
redirection with '=' is not supported here - use option '-m' instead
default: all
restore_mode = all
backup type [offline | offline_force | offline_standby | offline_split
| offline_mirror | offline_stop | online | online_cons | online_split
| online_mirror
default: offline
backup_type = online
backup device type
[tape | tape_auto | tape_box | pipe | pipe_auto | pipe_box | disk
| disk_copy | disk_standby | stage | stage_copy | stage_standby
| util_file | util_file_online | rman_util | rman_disk | rman_stage
| rman_prep]
default: tape
backup_dev_type = tape
backup root directory [<path_name> | (<path_name_list>)]
default: $SAPDATA_HOME/sapbackup
backup_root_dir = /oracle/PRD/sapbackup
stage root directory [<path_name> | (<path_name_list>)]
default: value of the backup_root_dir parameter
stage_root_dir = /oracle/PRD/sapbackup
compression flag [yes | no | hardware | only]
default: no
compress = hardware
compress command
first $-character is replaced by the source file name
second $-character is replaced by the target file name
<target_file_name> = <source_file_name>.Z
for compress command the -c option must be set
recommended setting for brbackup -k only run:
"compress -b 12 -c $ > $"
no default
compress_cmd = "compress -b 12 -c $ > $"
uncompress command
first $-character is replaced by the source file name
second $-character is replaced by the target file name
<source_file_name> = <target_file_name>.Z
for uncompress command the -c option must be set
no default
uncompress_cmd = "uncompress -c $ > $"
directory for compression [<path_name> | (<path_name_list>)]
default: value of the backup_root_dir parameter
compress_dir = /oracle/PRD/sapreorg
brarchive function [save | second_copy | double_save | save_delete
| second_copy_delete | double_save_delete | copy_save
| copy_delete_save | delete_saved | delete_copied]
default: save
archive_function = copy_delete_save
directory for archive log copies to disk
default: first value of the backup_root_dir parameter
archive_copy_dir = /oracle/PRD/sapbackup
directory for archive log copies to stage
default: first value of the stage_root_dir parameter
archive_stage_dir = /oracle/PRD/sapbackup
new sapdata home directory for disk_copy | disk_standby
no default
new_db_home = /oracle/C11
stage sapdata home directory for stage_copy | stage_standby
default: value of the new_db_home parameter
stage_db_home = /oracle/C11
original sapdata home directory for split mirror disk backup
no default
orig_db_home = /oracle/C11
remote host name
no default
remote_host = <host_name>
remote user name
default: current operating system user
remote_user = <user_name>
tape copy command [cpio | cpio_gnu | dd | dd_gnu | rman | rman_dd]
default: cpio
tape_copy_cmd = dd
disk copy command [copy | dd | dd_gnu | rman]
default: copy
disk_copy_cmd = copy
stage copy command [rcp | ftp]
default: rcp
stage_copy_cmd = rcp
flags for cpio output command
default: -ovB
cpio_flags = -ovB
flags for cpio input command
default: -iuvB
cpio_in_flags = -iuvB
flags for cpio command for copy of directories to disk
default: -pdcu
cpio_disk_flags = -pdcu
flags for dd output command
default: "obs=16k"
recommended setting:
Unix: "obs=nk bs=nk", example: "obs=64k bs=64k"
NT: "bs=nk", example: "bs=64k"
dd_flags = "obs=64k bs=64k"
flags for dd input command
default: "ibs=16k"
recommended setting:
Unix: "ibs=nk bs=nk", example: "ibs=64k bs=64k"
NT: "bs=nk", example: "bs=64k"
dd_in_flags = "ibs=64k bs=64k"
copy_in_cmd = "dd ibs=64k obs=8k if=$"
rewind command
rewind = "mt -f $ rewind"
rewind and set offline command
rewind_offline = "mt -f $ offline"
tape positioning command
tape_pos_cmd = "mt -f $ fsf $"
recommended values for tape devices with hardware compression:
tape_size = 720000M
address of backup device without rewind
tape_address = /dev/rmt/0mn
address of backup device with rewind
tape_address_rew = /dev/rmt/0m
volumes for brarchive
volume_archive = (PRDA09, PRDA10)
volumes for brbackup
volume_backup = (PRDB09, PRDB10)
expiration period for backup volumes in days
expir_period = 5
recommended usages of backup volumes
tape_use_count = 260
Edited by: limws1 on Aug 27, 2011 4:44 AM
Hi,
This is my backup log:
BR0051I BRBACKUP 7.00 (40)
BR0055I Start of database backup: begqinct.pnt 2011-08-27 10.34.03
BR0484I BRBACKUP log file: /oracle/PRD/sapbackup/begqinct.pnt
BR0477I Oracle pfile /oracle/PRD/102_64/dbs/initPRD.ora created from spfile /oracle/PRD/102_64/dbs/spfilePRD.ora
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.04
BR0319I Control file copy created: /oracle/PRD/sapbackup/cntrlPRD.dbf 10657792
BR0101I Parameters
Name Value
oracle_sid PRD
oracle_home /oracle/PRD/102_64
oracle_profile /oracle/PRD/102_64/dbs/initPRD.ora
sapdata_home /oracle/PRD
sap_profile /oracle/PRD/102_64/dbs/initPRD.sap
backup_mode PSAPSR3USR
backup_type online
backup_dev_type tape
compress hardware
tape_copy_cmd dd
cpio_flags -ovB
cpio_in_flags -iuvB
dd_flags obs=64k bs=64k
dd_in_flags ibs=64k bs=64k
rewind mt -f $ rewind
rewind_offline mt -f $ offline
tape_size 720000.000 MB
tape_address /dev/rmt/0mn
tape_address_rew /dev/rmt/0m
volume_backup SCRATCH
expir_period 5
tape_use_count 260
exec_parallel 0
system_info oraprd/oraprd kesappr01 SunOS 5.10 Generic_144488-09 sun4u
oracle_info PRD 10.2.0.5.0 8192 6941 102807580 kesappr01 UTF8 UTF8
sap_info 701 SAPSR3 PRD S1826084239 R3_ORA 0020182996
make_info sun_64 OCI_102 Feb 21 2009
command_line brbackup -u / -t online -m PSAPSR3USR -p initPRD.sap -v SCRATCH
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.04
BR0057I Backup of database: PRD
BR0058I BRBACKUP action ID: begqinct
BR0059I BRBACKUP function ID: pnt
BR0110I Backup mode: PARTIAL
BR0060I Tablespace for backup: PSAPSR3USR
BR0077I Database file for backup: /oracle/PRD/sapbackup/cntrlPRD.dbf
BR0061I 2 files found for backup, total size 85.172 MB
BR0143I Backup type: online
BR0113I Files will be compressed by hardware
BR0130I Backup device type: tape
BR0102I Following backup device will be used: /dev/rmt/0mn
BR0104I 1 scratch volume will be used
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.04
BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRBACKUP:
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.09
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0237I Scratch volume required in device /dev/rmt/0mn
BR0210I Please mount BRBACKUP volume, if you have not already done so
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.09
BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRBACKUP:
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.13
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.13
BR0226I Rewinding tape volume in device /dev/rmt/0m ...
BR0351I Restoring /oracle/PRD/sapbackup/.tape.hdr0
BR0355I from /dev/rmt/0mn ...
BR0241I Checking label on volume in device /dev/rmt/0mn
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.14
BR0226I Rewinding tape volume in device /dev/rmt/0m ...
BR0202I Saving /oracle/PRD/sapbackup/.tape.hdr0
BR0203I to /dev/rmt/0mn ...
BR0209I Volume in device /dev/rmt/0mn has name SCRATCH
BR0202I Saving init_ora
BR0203I to /dev/rmt/0mn ...
BR0278E Command output of 'LANG=C cd /oracle/PRD/102_64/dbs && /usr/sap/PRD/SYS/exe/run/brtools -f printarg initPRD.ora spfilePRD.ora | LANG=C cpio -ovB > /dev/rmt/0mn':
initPRD.ora
spfilePRD.ora
End of medium on "output".
To continue, type device/file name when ready.
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.25
BR0279E Return code from 'LANG=C cd /oracle/PRD/102_64/dbs && /usr/sap/PRD/SYS/exe/run/brtools -f printarg initPRD.ora spfilePRD.ora | LANG=C cpio -ovB > /dev/rmt/0mn': 0
BR0222E Copying init_ora to/from /dev/rmt/0mn failed due to previous errors
BR0221E Writing volume header files to /dev/rmt/0mn failed
BR0056I End of database backup: begqinct.pnt 2011-08-27 10.34.25
BR0280I BRBACKUP time stamp: 2011-08-27 10.34.26
BR0054I BRBACKUP terminated with errors
Hi,
R u sure, you are using correct media (as mentioned by you..which is LTO4) ?
Tape Media is Ok ? Have you tried to do the same activities (tape initialization & perform DB backup using brbackup) ?
Can you set the parameter tape_size= 800G and try again to initialize the tape, proceed with db backup ?
You can refer these SAP Notes 8707 , 540543 to get more information on parameter tape_size.
Also see the tape status, when you get such error again by executing the following command.
mt -f status /dev/rmt/0mn
Regards,
Bhavik G. Shroff
Hi,
My backup has been running ok for the past 3 months on LTO-4 tape until recently. As mentioned, I have tried initailizing tapes and performed backup again with no success. Tape size value should be ok. I even set it to 30G and still doesn't work.
mt status returns no error. Using tar command to backup to tape seems ok but I am unable to retrieve the content table using tar -xvf. It returns checksum error.
Rdgs
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.