Operating System - HP-UX
1827775 Members
2623 Online
109969 Solutions
New Discussion

Re: Fbackup fails exit code=2 using SAM

 
SOLVED
Go to solution
sam_25_1
Frequent Advisor

Fbackup fails exit code=2 using SAM

Hello Everyone,

Would you please help me out, I have schedule the daily backup at 4 am using SAM for a directory in oracle.

I get the follwoing error message

(Full backup started on ctnhlatt : Mon Jan 21 04:00:00 EST 2008 (Scheduled Backup)
{ fbackup -0 -u -g /etc/sam/br/graphZBAa11181 -I /var/sam/log/br_index.full -c /etc/sam/br/fbackup_config -d /var/adm/fbackupfiles/dates -f /dev/rmt/0m } 2>&1
Full backup failed on ctnhlatt : Mon Jan 21 04:00:04 EST 2008 .
Exit code = 2).

Sometimes the backup goes through sucessfully with the exit code of =0 and sometimes i get the exit code =2, I have checked the previous forum for the same , i am not sure whether this a tape issue or not.

Secondly how would i get the detailed log f ile for the erorr message.

I would be greatfull if you'll could help me out,

Thank in advance & have a pleasant day.

Regreds
Sam
13 REPLIES 13
Mridul Shrivastava
Honored Contributor
Solution

Re: Fbackup fails exit code=2 using SAM

See this previous thread

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=187213

Exact match on your error message.
Time has a wonderful way of weeding out the trivial
sam_25_1
Frequent Advisor

Re: Fbackup fails exit code=2 using SAM

Hello Mridul,

Thanks a lot for your speddy reply, i sincerly appreciate it.

I have checked the forum you have mentioned, but there are any log file which l could check manually to get the exact resaon for the error message, because some times the fbackup goes successfully with erro code =0 and sometimes it goes with errocode =2.
As far as my knowlege and the going through the forum page specified by you, I beleive it is a tape problem, is there any log file we can check.. and was would be best resolutin for the same.

thanks a lot for time you have spent .. I sincerly appreciate it.
OldSchool
Honored Contributor

Re: Fbackup fails exit code=2 using SAM

did you take a look at
/var/sam/log/br_index.full

as the linked post suggested?
Mridul Shrivastava
Honored Contributor

Re: Fbackup fails exit code=2 using SAM

As you mentioned sometimes it completed with exit code 0 successfully and sometimes doesn't.

What do you do to overcome if it exits with exit code 2 ?? or it automatically goes away at next backup??

Do you use the same tapes for taking backup or is it like u get different exit codes with different tape media?

How many time you have used the tape media, is should not corss 100 count, same can be checked using the following command:

echo "sel dev 10; info; wait; il"|/usr/sbin/cstm |grep "Tape Load Count:"

Try to narrow down the things by stricking out the possibilities the way I have mentioned.
Time has a wonderful way of weeding out the trivial
sam_25_1
Frequent Advisor

Re: Fbackup fails exit code=2 using SAM

Hello Mirdul,

To be honest i am very new to the setup. I have just taking control of the servers a a week back.. so i dont have much inputs.


Yes as we are taking a full backup daily, if the exit code= return 2 , i normally wait for the next full backup. there is a folder db_backup on the local system where the data is compressed and saved daily thats the reason in my second post i do a scp of that direcorty db_backup and move it on the other server. that server has a weekly full back up scheduled once a week

I am not sure what i need to do, is there a way where i can be sure that it is tape problem, the local backup team daily puts the tape in the drive at the specificed time to take the backups..

Please let me know if you woudl liek any other inputs for me
Mridul Shrivastava
Honored Contributor

Re: Fbackup fails exit code=2 using SAM

What I feel is that backup team will have a set of tapes for a week and they would be using a specified tape for a day. This was the reason I asked you for the tape. So there is a possibility that tape media for a particular day is not good or have been used more than 100 times.

Try running tape cleaning catridge and re-run the backup to check if it makes any difference.

Did you check the log mentioned above?

If it is a tape drive head problem either we can not find that from HPUX end but that is unlikely since some backups are completing successfully. There are chances that dust is there and causing some backups to fail.

Try these two things if you don't find anything in logs.
Time has a wonderful way of weeding out the trivial
sam_25_1
Frequent Advisor

Re: Fbackup fails exit code=2 using SAM

Hello Everyone,

Thanks a lot for your help & guidance.

I would have a check on the suggestions that you'll have provide and would update you about the status .

Thanks once again for your help & guidance.. Its indeed great to have friends like you.

Sam
sam_25_1
Frequent Advisor

Re: Fbackup fails exit code=2 using SAM

When I do a Scp to copy files from one server to another, I finallly get teh follwoing error message

ohrprod.OFF.Jan-20-2008-014500.1 100% 2048MB 1.0MB/s 33:32
scp: /db_backup/ohrprod.OFF.Jan-20-2008-014500.1: I/O error

Please let me know if i could do any changes on it..

thanks everyone for your help
sam_25_1
Frequent Advisor

Re: Fbackup fails exit code=2 using SAM

Hello Everyone,

today the backup was successful with error code=0, i beleive the the problem is with the tapes, I have asked the backup team to send me the details about teh tape. I would update you'll about the same.

Sincerly thanks to everyone who has helped me out, Lucky to have pals aroudn who are always ready to help.

Have a nice day.

Sam
Mridul Shrivastava
Honored Contributor

Re: Fbackup fails exit code=2 using SAM

It's nice to hear that today backup completed successfully. I am sure that today they must have used different tape media.

Just confirm how they use the tapes daily as suggested above and let us know the outcome.
Time has a wonderful way of weeding out the trivial
sam_25_1
Frequent Advisor

Re: Fbackup fails exit code=2 using SAM

Hi Mirdul,

Thanks a lot for all your help & guidance.

Sincerly appreciate it...

Have a nice day.
OldSchool
Honored Contributor

Re: Fbackup fails exit code=2 using SAM

and did you ever check the log file noted previously???

/var/sam/log/br_index.full
sam_25_1
Frequent Advisor

Re: Fbackup fails exit code=2 using SAM

Hello Sir,

I have checked the log files mentioned by you. Thanks a lot for your guidance& suppport.
Thanks once again for your time& support.

It was benefiical for me.

Have a nice day.