Operating System - HP-UX
1752714 Members
5846 Online
108789 Solutions
New Discussion юеВ

frecover(5412): Do you wish to try to salvage

 
SOLVED
Go to solution
HP UNIX Professionals
Frequent Advisor

frecover(5412): Do you wish to try to salvage

Hi Experts,

In HPUX box
When i run the backup, i am getting some error. Anybody know why this error comming and what we need to do.

===========================================
root@minster2:/# /usr/bin/local/SYSTEM.bck

minster2

frecover(2105): did not find expected file marker

frecover(5419): checksum on volume header is incorrect.

frecover(5420): not an fbackup volume; magic value is incorrect

frecover(2105): did not find expected file marker

frecover(5412): Do you wish to try to salvage this volume? (^[yY]/^[nN]) n

frecover(5411): Do you wish to try a different volume? (^[yY]/^[nN]) n

frecover(5414): abort selected

Mon Sep 27 14:04:02 BST 2010 : Cannot get header for SYSTEM backup from /dev/rmt/c8t2d0BEST device Could not read header from SYSTEM tape
======================================

Thanks in advance

vinay
9 REPLIES 9
TTr
Honored Contributor
Solution

Re: frecover(5412): Do you wish to try to salvage

The /usr/bin/local/SYSTEM.bck appears to be a script that is custom written and we do not know what it is attempting to do unless you list the script for us.

The script runs frecover which is a restore utility not a backup. May be the script tries to identify the tape using frecover and there is a problem with the tape but without seeing the script we can not tell.
sarfaraj ahmad
Trusted Contributor

Re: frecover(5412): Do you wish to try to salvage

Hi Vinay,

What Device/Media you are using for restoration?

As per your log it seems that there is media/cartridge error. That may be a wrong cartridge/tape or may that media is corrupted and not readable.
please crosscheck with below options,

1. check other backed-up media that is working properly in this device or not?

2.once try to clean this drive and then try frecover on same media.

3. if possible it will be better if you can try this media to restore with any other device or server and see what is the result?
sarfaraj ahmad
Trusted Contributor

Re: frecover(5412): Do you wish to try to salvage

4. And also cross check that this media is correct or containing same data which you are trying to restore from script.

5. finally check your restoration script properly.

Thanks.
Bill Hassell
Honored Contributor

Re: frecover(5412): Do you wish to try to salvage

This is absolutely normal. The tape you are using was never recorded with fbackup. It might be a tar or cpio backup.


Bill Hassell, sysadmin
HP UNIX Professionals
Frequent Advisor

Re: frecover(5412): Do you wish to try to salvage

Hi Experts,

I will give the discription about the script.

1 . This script is used for weekly backup

2. First 4 week in all month it take fbackup

3. Last week of all monht this same scriptis used for Ignite backup

I wan to run Ignite Backup now (last week), when i run the scrip i am getting error.

I am attacing the tape staus and scrip. Plese give me the solution.

======================================
root@minster2:/# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/6/1/0.1.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/0m /dev/rmt/0mn /dev/rmt/c8t1d0BEST /dev/rmt/c8t1d0BESTn
/dev/rmt/0mb /dev/rmt/0mnb /dev/rmt/c8t1d0BESTb /dev/rmt/c8t1d0BESTnb
tape 1 0/6/1/0.2.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/1m /dev/rmt/1mnb /dev/rmt/c8t2d0BESTn /dev/rmt/c8t2d0DDSb
/dev/rmt/1mb /dev/rmt/c8t2d0BEST /dev/rmt/c8t2d0BESTnb /dev/rmt/c8t2d0DDSn
/dev/rmt/1mn /dev/rmt/c8t2d0BESTb /dev/rmt/c8t2d0DDS /dev/rmt/c8t2d0DDSnb

=======================================

root@minster2:/# mt -f /dev/rmt/c8t2d0DDSn status
Drive: HP C5683A
Format:
Status: [41012600] BOT online immediate-report-mode
File: 0
=========================================
sarfaraj ahmad
Trusted Contributor

Re: frecover(5412): Do you wish to try to salvage


Hi Vinay,

Hope you are taking tape archive (ignite). can you try once to take manually by make_tape_recovery command and check it is successful or not. if required please try on new media also.

if successful then please check your script and modify it accordingly.
if you are not much aware about the script then better you take help with concern person at your site who is aware.

Thanks.
Dennis Handly
Acclaimed Contributor

Re: frecover(5412): Do you wish to try to salvage

>2. First 4 week in all month it take fbackup
>3. Last week of all month this same script is used for Ignite backup

>I wan to run Ignite Backup now (last week), when I run the script I am getting error.

It seems to be going into the fbackup/frecover path and not make_tape_recovery.

What's in $RUN_LOG, /var/opt/patrol/backups/run_SYSTEM.log?
TTr
Honored Contributor

Re: frecover(5412): Do you wish to try to salvage

The error comes from frecover. The frecover appears only once in the script in the following code

echo "Running SYSTEM backup" >> $LOG 2>&1
/usr/sbin/fbackup -n -f $TAPE -g $GRAPH -I $DIR/tape_index >> $LOG 2>&1
if [ $? -eq 0 -o $? -eq 4 ]
then
/usr/sbin/frecover -f $TAPE -I $DIR/index.SYSTEM
else
print...

The intent of the script is to run fbackup and then use frecover to extract the index from the tape for verification.
However the $? that is saved is not the exit code of fbackup but the exit code of the append operation, >>, which is always successful.

So fbackup failed and frecover could not find the index on the tape.

Two thing wrong, bad tape and bad login in the script when checking the exit code $?

(I wonder why you used more and scrolled line by line to display the script)
Dennis Handly
Acclaimed Contributor

Re: frecover(5412): Do you wish to try to salvage

>TTr: /usr/sbin/fbackup -n -f $TAPE -g $GRAPH -I $DIR/tape_index >> $LOG 2>&1
>However the $? that is saved is not the exit code of fbackup but the exit code of the append operation, >>, which is always successful.

Huh? The exit status comes from fbackup, AFTER the shell redirects the output.
(This isn't a multiple stage pipeline.)