- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem restoring data
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 09:32 PM
04-10-2006 09:32 PM
we have recently switch from DDS2 to DDS3 tapes on a DD3 capable drive.
I don't believe it is related to the problem but lately we have verified that after the starting the oracle db with the restore datafiles it will report some files are corrupted.
There are no errors with tar during write and read of the tapes, if there was a I/O error shouldn't it cause a checksum error ? Can I safely assume this is a logical data error meaning the backup was done with the files in an inconsistent status from an Oracle point of view ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 10:00 PM
04-10-2006 10:00 PM
Re: problem restoring data
If tar command reports no error, you should actually look at source data consistency (i.e. Oracle data for your case).
antonio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 10:34 PM
04-10-2006 10:34 PM
Re: problem restoring data
It is Oracle related issue. Maybe one of the reasons could be that the database was not properly shutdown.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 11:02 PM
04-10-2006 11:02 PM
Re: problem restoring data
The new information is that repeating the procedure from the same tape results on diffent files being reported as invalid on different times. I don't see much sense on the problem. Even on the case the tapes are damaged or the device is not working properly I should get checksum errors, not just corrupted data after extraction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 07:54 PM
04-11-2006 07:54 PM
Re: problem restoring data
I have seen this problem arise for several reasons:-
1) The backup was run in several parts and in hot backup mode.
2) The backup was run in hot backup mode and not all of the redo logs were backed up.
3) The restore was run in several parts.
Oracle databases like to be backed up and recovered "all in one", so if the restore was done in several parts, there may be different dates on the restored files, which oracle may complain about.
If it is backed up in several parts, in hot backup mode, again it may have differing dates on the files once restored.
If the backup takes a long time to do, in hot backup mode, it can sometimes miss a new redo log, therefore complain about this when trying to bring the database up.
If none of the above, then it could be data corruption on either the tape or the database prior to backup. Has the DBA tried a database recovery command, within oracle.
Hope any of this helps.
Regards,
JASH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 09:15 PM
04-11-2006 09:15 PM
Re: problem restoring data
the problems are with "cold" backups.
The database recovery was attempted, the database is open but it is still corrupted (at leat it retuns some unexpected results for some queries).
In case there is a problem with the media/device shouldn't the tape archive checksum fail ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 10:01 PM
04-11-2006 10:01 PM
Re: problem restoring data
What are you using to back it up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 10:05 PM
04-11-2006 10:05 PM
Re: problem restoring data
If tar fails, then yes it does usually complain about a checksum, but, as you have said it has not failed, or reported any errors.
To be honest, all I can think of is some kind of oracle type error, but that is not very helpful.
I will have a look around and see if I can find anything else.
Regards,
JASH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 10:10 PM
04-11-2006 10:10 PM
Re: problem restoring data
Do you have an earlier tape with the same kind of backup on, to the DDS3, that you can do a "control" restore and see if you get the same errors when starting the database? This would help prove whether it is a backup or database problem. Also, have you successfully restored from a DDS2 backup?
Regards,
JASH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 10:35 PM
04-11-2006 10:35 PM
Re: problem restoring data
When you have done your restores, have you made it so it over-writes all of the files. If not you will have a mix of different dates and states of files. This will show as corruption when trying to start the database.
All files will need to be over-written.
That could explain why you are getting different dates and times, as per your answer above.
BTW-You don't have to keep giving me points, until we get this sorted, as it might look as if I keep making posts just to get points.
Regards, JASH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 12:50 AM
04-12-2006 12:50 AM
SolutionWhen fbackup runs, it computes a checksum for the data block in memory. Then the data block with the checksum is written to the tape. If data corruption occurs between memory and the tape, the chceksum will not match and fbackup will report the error.
You will find that fbackup can be significantly faster than tar or cpio and is designed to properly handle multi-tape backups. Be sure you include a config file to setup maximum performance. The file should look like this:
blocksperrecord 4096
records 64
checkpointfreq 4096
readerprocesses 6
maxretries 5
retrylimit 5000000
maxvoluses 200
filesperfsm 2000
To check a tape after writing it, use frecover with the -N option. The tape will be read, the incoming blocks will have their checksum computed, and then the two checksums are compared. A failure means that the data has become corrupted and you'll need to replace the tape drive. The majority of data problems on tapes are related to dirty or worn heads, but it is firmware-driven electronic device so a failure can occur anywhere. fbackup will verify the hardware (and improve backup speed and reliability).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 01:24 AM
04-12-2006 01:24 AM
Re: problem restoring data
I am extracting the data with root and I have checked that I have no error on the extraction (so I can safely assume all the files were overwritten). Yes we did some tests with the DDS2 backups and the restore worked just fine, that is why I am still following the hw/tape failure option, altough the logical problema (db not properly shutdown) seemed the most probable.
Bill,
I had the wrong idea that the tar checksum was already software calculated from the data in memory before being written to the tape. I will now perform some tests with fbackup since it will provide me a more reliable way to verify the data integrity.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 06:41 AM
04-12-2006 06:41 AM
Re: problem restoring data
http://en.wikipedia.org/wiki/Tar_(file_format)#File_format_details
When tar indicates a checksum error has occurred, it really means that the header layout for a file did not match. While it does provide protection for the header, there is nothing in the data blocks.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2006 07:15 PM
04-17-2006 07:15 PM
Re: problem restoring data
I will post the results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 05:15 AM
04-18-2006 05:15 AM
Re: problem restoring data
One additional feature of fbackup is the -N option in frecover which reads all the data and computes the internal checksumm then compares it to the recorded checksum from fbackup. It is called the no-restore option but checks everything on the tape.
Another area to look at is the nature of the corruption. Are the Oracle files mostly empty space (no records yet)? There may be a problem with compression on your tape drive. Since the DDS2 tapes work and the DDS3 tapes do not, there is a significant difference in the recording method used in DDS3 format and perhaps a bug has been there all along, just not present with the DDS2 format. You may want to download the latest firmware for your tape just to make sure the drive is up to date.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 10:50 PM
04-19-2006 10:50 PM
Re: problem restoring data
Thanks all for your support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2006 10:52 PM
04-19-2006 10:52 PM