473,387 Members | 1,628 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cannot restore after Veritas Netbackup restores

Hi There, We have an issue on our db2 restores. We do database dumps
every night, and restore them to development servers every morning.
This works fine with no errors. However if we backup those images to
tape using Veritas netbackup, and then restore those images and try to
restore them to the database, we get "The backup image is corrupt". If
we run db2ckbkp against that image we get "Unable to decompress image
from different platform".

This is really urgent as our backups are currently useless to us if we
cannot restore them properly. If anyone has even a small amount of
information on how to solve this problem, we would be very grateful.

Thanks

Sep 8 '06 #1
4 5658
Ian
af**********@gmail.com wrote:
Hi There, We have an issue on our db2 restores. We do database dumps
every night, and restore them to development servers every morning.
This works fine with no errors. However if we backup those images to
tape using Veritas netbackup, and then restore those images and try to
restore them to the database, we get "The backup image is corrupt". If
we run db2ckbkp against that image we get "Unable to decompress image
from different platform".

Need a lot more information.

1) DB2 Level, Operating System and level on source system
2) DB2 Level, Operating System and level on target system
3) Specific command you use to back up the database to NetBackup
4) Specific command you use to try and restore database (as well as
db2ckbkp command)

Sep 9 '06 #2
Thanks Ian

1) The Source OS is Sun Solaris 9, level is
DB21085I Instance "prdinst1" uses "64" bits and DB2 code release
"SQL08023"
with level identifier "03040106".
Informational tokens are "DB2 v8.1.0.96", "s050811", "U803921", and
FixPak
"10".
Product is installed at "/opt/IBM/db2/V8.1".

2) The Destination OS is Sun Solaris 9, level is
DB21085I Instance "stginst1" uses "64" bits and DB2 code release
"SQL08023"
with level identifier "03040106".
Informational tokens are "DB2 v8.1.0.96", "s050811", "U803921", and
FixPak
"10".
Product is installed at "/opt/IBM/db2/V8.1".

3) Our backups are outsourced so I am not sure of the command used to
perform the backup. I do know that they image it to Hard Disk and then
take it to tape. I will ask the guys what the command is that they use.

4)Here is an extract from the logs

RESTORE DATABASE prdagm01 FROM /spare/backups/stginst1/daily/stgagmst
TAKEN AT 20060822180001 TO /db2/stginst1 INTO stgAGMst WITH 2 BUFFERS
BUFFER 2048 REDIRECT PARALLELISM 16 WITHOUT PROMPTING
SQL1277N Restore has detected that one or more table space containers
are
inaccessible, or has set their state to 'storage must be defined'.
DB20000I The RESTORE DATABASE command completed successfully.

SET TABLESPACE CONTAINERS FOR 0 IGNORE ROLLFORWARD CONTAINER OPERATIONS
USING (PATH /db2/stgagmst/SYSCATSPACE)
DB20000I The SET TABLESPACE CONTAINERS command completed successfully.

<snipped various other tablespace commands same as above for other
tablespaces>

RESTORE DATABASE prdagm01 CONTINUE
SQL2054N The backup or copy image is corrupted.

Here is the db2ckbkp command with output

db2ckbkp -a
/spare/backups/stginst1/daily/stgagmst/PRDAGM01.0.prdinst1.NODE0000.CATN0000.200608221800 01.001

=====================
MEDIA HEADER REACHED:
=====================
Server Database Name -- PRDAGM01
Server Database Alias -- PRDAGM01
Client Database Alias -- PRDAGM01
Timestamp -- 20060822180001
Database Partition Number -- 0
Instance -- prdinst1
Sequence Number -- 1
Release ID -- A00
Database Seed -- 5024EA4A
DB Comment's Codepage (Volume) -- 0
DB Comment (Volume) --

DB Comment's Codepage (System) -- 0
DB Comment (System) --

Authentication Value -- -1
Backup Mode -- 1
Includes Logs -- 0
Compression -- 1
Backup Type -- 0
Backup Gran. -- 0
Status Flags -- 20
System Cats inc -- 1
Catalog Partition Number -- 0
DB Codeset -- ISO8859-1
DB Territory --
LogID -- 1156260632
LogPath --
/db2/prdinst1/prdinst1/NODE0000/SQL00003/SQLOGDIR/
Backup Buffer Size -- 4194304
Number of Sessions -- 1
Platform -- 15

The proper image file name would be:
PRDAGM01.0.prdinst1.NODE0000.CATN0000.200608221800 01.001


==================
BUFFER 0
==================
BufAddr PoolID Token Type Offset FileSize ObjectSize OrigSize
Object Name
-------- ------ ----- ---- ---------- ---------- ---------- ----------
-----------
00000000: 0 0 19 0 12 12 0
"BACKUP.START.RECORD.MARKER"
extNum: 40161
extCID: 1156257821 44eb181d
prevCID: 1156257041 44eb1511

BufAddr PoolID Token Type Offset FileSize ObjectSize OrigSize
Object Name
-------- ------ ----- ---- ---------- ---------- ---------- ----------
-----------
0000020C: 0 0 27 0 15552 15552 0
"libdb2compr.so"
WARNING: Unable to decompress image from different platform.

Thanks

Ian wrote:
af**********@gmail.com wrote:
Hi There, We have an issue on our db2 restores. We do database dumps
every night, and restore them to development servers every morning.
This works fine with no errors. However if we backup those images to
tape using Veritas netbackup, and then restore those images and try to
restore them to the database, we get "The backup image is corrupt". If
we run db2ckbkp against that image we get "Unable to decompress image
from different platform".


Need a lot more information.

1) DB2 Level, Operating System and level on source system
2) DB2 Level, Operating System and level on target system
3) Specific command you use to back up the database to NetBackup
4) Specific command you use to try and restore database (as well as
db2ckbkp command)
Sep 11 '06 #3
Ian


Veritas doesn't really enter into the equation since it sounds like
you're backing DB2 up to disk and then letting the "normal" file
system backups take the image off to tape.

Both servers are Solaris 9, but are they both SPARC machines? It
it possible that one is an Opteron (i.e. Solaris x86-64), but the
other is SPARC?
Sep 11 '06 #4
Hi Ian,
Both machines are Fujitsu servers with SPARC processors. I made a
listake on the OS it's actually Solaris 8. What I also forgot to
mention is that we take a DB dump then restore that dump to another
server every morning. That same dump file goes to tape then comes back
to us in an unuseable state.
You pose an interesting question, Maybe the Backup server is an x86
machine running Solaris. In this case it might slightly modify the
compression algorithm. I am seeing the backup guys today and ask them
that question.

Thanks

Ian wrote:
Veritas doesn't really enter into the equation since it sounds like
you're backing DB2 up to disk and then letting the "normal" file
system backups take the image off to tape.

Both servers are Solaris 9, but are they both SPARC machines? It
it possible that one is an Opteron (i.e. Solaris x86-64), but the
other is SPARC?
Sep 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dave Irick | last post by:
We are looking for assistance in setting up export/import jobs that will use DLT tapes managed by Netbackup. The issue seems to be how to specify the "file" parameter of export/import so that it is...
4
by: Raquel | last post by:
How are the following two commands different as far as the 'end result' of the restores is concerned: 1. db2 RESTORE DB mydb 2. db2 RESTORE DB mydb TABLESPACE In other words, in the above...
4
by: Brice Avila | last post by:
Hello, IHAC running DB2 7.1.1.93 on Solaris 8. When he tried restoring this instance from a different server (alternate client restore) he encountered: db2 => restore database dumbunny load...
0
by: Re_endian_miss | last post by:
Does anyone out there use Veritas NBU to back-up DB2 databases? If yes, have you ever attempted to create a backup of a database on <hostname1> and use it to replace or create a database on...
3
by: cerbdog | last post by:
Hello, all. Was hoping someone might be able to help us out with an issue: We're trying to perform a restore from a backup of one AIX 5.1 server, we'll call it "AIX", to another AIX 5.1 server;...
1
by: edmundleungs | last post by:
After setting the netbackup, it is found that there is below error. SQL2062N An error occurred while accessing media "/usr/openv/netbackup/bin/nbdb2.sl". Reason code: "513" DB version: v8...
1
by: edmundleungs | last post by:
In our veritas netbackup for DB2 on AIX, the backup could be done successfully and the backup image would be listed using bplist on the AIX client. I have made several backup image, but only one...
0
by: mccuenpat | last post by:
Currently trying to perform a redirected restore of DB2 database using Netbackup in AIX environment. The restore command completes successfully but the set tablespace commands fail due to no...
2
by: Asphalt Blazer | last post by:
I am running DB2 UDB v8.1 FP 14 on AIX 5.3 I have two servers ServerA and ServerB. ServerA has instance InstA ServerB has instance InstB InstA has database DB1. DB1 is being backed up daily...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.