Need help on frecover

 
Vidhya B
Frequent Advisor

Need help on frecover

Hi,

I have done a script for doing a daily activity. The script issues frecover command if a file is present everyday morning. I am using that script for past 4 months without any issues.

This is the command issued by the script.
root:\>frecover -xf dump.level? -g chennai.gfile
I get the output of this script in mail.

Recently, when I issue this command we are getting as below:

bkpsvr:root-/oracle/08May11]frecover -xf dump.level? -g chennai.gfile
frecover(5420): not an fbackup volume; magic value is incorrect
frecover(5412): Do you wish to try to salvage this volume? (^[yY]/^[nN])

My script has no purpose, because now i have to give the option N for the command to proceed. Sometimes its promting for Y/N 3 or 4 times.Is there any other way to give the option N in the command itself.


Kindly help.
28 REPLIES 28
Uday_S_Ankolekar
Honored Contributor

Re: Need help on frecover

What's the OS level? If it's 11.31 (11i v3) then there are some changes with uname related to fbackup.(The maximum value for fields returned via uname was increased from 8 to 256) Check the man pages of fbackup

-USA..
Good Luck..
Viktor Balogh
Honored Contributor

Re: Need help on frecover

you could supply the "N"s or "Y"s with an echo like this:

# echo "N" | frecover ..

but I don't think this would be a solution. You need to look after why you are getting this message. From this itrc post:

http://h30499.www3.hp.com/t5/System-Administration/fbackup/m-p/4729465#M386317

 

it seems to me that the tape isn't an frecover tape.

****
Unix operates with beer.
Vidhya B
Frequent Advisor

Re: Need help on frecover

Hi,

Please find my uname -a output.
bkpsvr:root-/]uname -a
HP-UX bkpsvr B.11.23 U ia64 2564450715 unlimited-user license


I tried the echo command. It didn't work.
Even this happens because of any backup issue, I won't be able to interfere in that.
So, Please help me with the command to recover it automatically.

Thanks in Advance!!!
Vivek_Pendse
Valued Contributor

Re: Need help on frecover

Instead of this option --> "-g chennai.gfile", you can modify your script like:

cat chennai.gile | awk '{print $1}'
frecover -xf .... -g $i

And, then receover the files one by one within the script only.

Thanks,
Vivek
Dennis Handly
Acclaimed Contributor

Re: Need help on frecover

Is this a fbackup volume or not? If not, it won't matter how many Y or N you use.
Bill Hassell
Honored Contributor

Re: Need help on frecover

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

This error is quite clear: the tape is not an fbackup tape and cannot be read by frecover. Somebody has destroyed your backup tape. If you do not eject the tape immediately after fbackup runs, then anyone with write permission for the tape drive can destroy the entire tape with a tar, cpio or even a dd. Your script should change to run frecover -V - to read the header. If frecpver cannot read the header, it will return with an error code. Do this first, then if successful, run your script to check for the file.


Bill Hassell, sysadmin
Vidhya B
Frequent Advisor

Re: Need help on frecover

Hi Vivek,

I am not able to understand wat exactly you mean. Can you give me the exact command.


Hi all,

Please find my frecover -V output.
bkpsvr:root-/oracle/09May11]frecover -V dump.level1
frecover(5403): Unable to open or identify device at /dev/rmt/0m

frecover(5405): unable to open /dev/rmt/0m
frecover(5406): Do you wish to continue? (^[yY]/^[nN]) y
frecover(5432): Media rewind failed
frecover(5402): failed close on device /dev/rmt/0m
frecover(5404): Press return when the next volume is ready on /dev/rmt/0m:


When issue the command manually, if I give Y, I am able to extract.
Kindly help me with the issue.
Vivek_Pendse
Valued Contributor

Re: Need help on frecover

Can you paste your script from which you are taking backup.
Vidhya B
Frequent Advisor

Re: Need help on frecover

Hi,

We are getting backup from another team. I won't be able to get the script for the backup. Hope they are using a tool for backup.We have to recover it.

I have writted a script which issue frecover command everyday.
Now the issue it recently I have been prompted for Y/N so that my script is unable to recover it.

I need a option to make it non-interactive.

Kindly help.