Operating System - HP-UX
1748205 Members
4900 Online
108759 Solutions
New Discussion юеВ

Re: Need help on frecover

 
Dennis Handly
Acclaimed Contributor

Re: Need help on frecover

>We receive media regularly.

From what HP-UX version? 11.23 frestore can't handle 11.31 fbackup.

>It's getting recovered only if I give "Y" option.

We need proof it's doing something with your bad tape.

What does this show: mt -f /dev/rmt/0m status

>So I want to make any change in my script

It's not your script that has a problem, it's the tape. (Unless you want to follow Bill's suggestions about error handling.)
Vidhya B
Frequent Advisor

Re: Need help on frecover

Hi,

Version-11iv2

We are doing restoration daily using the catalog that is recovered everyday morning using the command frecover -xf dump.level? -g chennai.gfile.

So, Its evident that all the catalogs are getting recovered.

Is there any option in frecover to make it non-interactive.
Skip this "frecover(5420): not an fbackup volume; magic value is incorrect
frecover(5412): Do you wish to try to salvage this volume?"

But tell me is there anyway I can give Y for this "(^[yY]/^[nN])" using my script.

Thanks!!!
James R. Ferguson
Acclaimed Contributor

Re: Need help on frecover

Hi:

> Is there any option in frecover to make it non-interactive.

Bill already answered that question and gave you the solution when he wrote:

>> Your first error message "magic value is incorrect" means that the tape in the drive is written in some other format -- it is not an fbackup tape and frecover can do nothing with it.

You need to re-work your script to perform the up-front tests Bill described. Re-think your problem and re-factor your script.

Regards!

...JRF...

Dennis Handly
Acclaimed Contributor

Re: Need help on frecover

>It's evident that all the catalogs are getting recovered.

Are you really really sure?

This may happen if: 11.23 frestore can't handle 11.31 fbackup.

The "magic value is incorrect" because it different but the rest of the tape is close enough to recover.

The solution is to only run this on 11.31.
Vidhya B
Frequent Advisor

Re: Need help on frecover

Hi,

Does tat mean there is no option in frecover to do tat??
James R. Ferguson
Acclaimed Contributor

Re: Need help on frecover

Hi (again):

> Does tat mean there is no option in frecover to do tat??

If, in fact, your archive was created on 11.31 and you attempting to recover on 11.23 or earlier, then, no, there is no option to force 'frecover' to recover the archive onto an earlier operating system. Look at the manpages for 'frecover' under the warnings section and you will find:

/* begin_quote */

Archives and files with formats and attributes that are unsupported on previous HP-UX releases could cause severe problems or unpredictable behavior if attempts were made to restore onto these systems. For this reason, fbackup creates tapes with a magic number that is only recognized on releases which support the features and format being archived. This prevents fbackup tape archives from being restored on earlier HP-UX systems than are supported. frecover still reads all tape formats so that fbackup tape archives created on earlier HP-UX systems can be restored.

/* endof_quote */

If, on the other hand you have inadvertently re-used the tape with a non-'fbackup' utility (tar, cpio, pax, etc.) then the 'fbackup' label is gone or corrupted and the ability to recover the archive data has been lost.

Once again, I'd take the approach Bill suggested and move on.

Regards!

....JRF...
Bob_Vance
Esteemed Contributor

Re: Need help on frecover

I must have missed something.

His original command showed that he was recovering from a file.

It would appear that the file backup being created is bad.


bv
"The lyf so short, the craft so long to lerne." - Chaucer
James R. Ferguson
Acclaimed Contributor

Re: Need help on frecover

Hi (again):

> Bob: His original command showed that he was recovering from a file.

That matters not. 'frecover' doesn't care whether the 'fbackup' archive is a tape or it's a file on a disk. The constraints, and the magic value header are the same.

Regards!

...JRF...
Bob_Vance
Esteemed Contributor

Re: Need help on frecover

It matters to the extent that talking about tape drives and tapes is irrelevant.

Of course, 'frecover' is complaining about header, whatever the source.

My point is that that whatever creates this dump.level? file is what has recently changed.
Or something else is clobbering it.
Or it needs to be re-created.
Or....

bv

"The lyf so short, the craft so long to lerne." - Chaucer