- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fbackup exit code=2 how do i interpret this?
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
12-05-2001 04:32 AM
12-05-2001 04:32 AM
fbackup exit code=2 how do i interpret this?
I have been having trouble using fbackup on our K220. The backup has been failing each night with an exit code=2. I know there is a list of codes explaining this issue but I need to get the correct code in the first place. Is there a way of working out what is wrong. HP have already replaced the drive twice! and it still fails....
Any help on this niggly problem would be very much appreciated.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 04:40 AM
12-05-2001 04:40 AM
Re: fbackup exit code=2 how do i interpret this?
You seem to know the 2 mean an unrecoverable error. The suggest that you add the -v argument to get more status messages. There are many things that can cause a backup to fail and the tape drive is only one of them. I would do an fbackup to another device maybe even stdout which in turns does a dd to /dev/null. If this works you at least know that it is not a data problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 05:09 AM
12-05-2001 05:09 AM
Re: fbackup exit code=2 how do i interpret this?
I found that if
a) I had a bad tape in the drive or
b) drive head is dirty
c) I did not have a tape in the drive at all,
I got the exit code 2. In addition to Clay's suggestions about -v for more logging. I would suggest the following:
1. Load a tape and try backing up a filesystem (eg. /tmp) and see if this finishes with code 0... if it does not, it is entirely possible that you are using 90m rather than 120m or vice-versa (assuming of course that you have cleaned the drive with no improvement)
The servers that I work with are all over the place and sometimes the operators forget to load tapes - or the tapes tend to be bad, so what I did was to write a script that does a test backup and retrieves the file for comparison. I run this script at 2:30 pm to generate a report of which tapes reported potential errors on tapes before end of day so that any bad tapes could be replaced before the evening's backup run. This cut down our backup problems down drastically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 05:18 AM
12-05-2001 05:18 AM
Re: fbackup exit code=2 how do i interpret this?
Here is a link on fbackup exit codes,
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=dbc7ef55000487c181/screen=ckiDisplayDocument?docId=200000047385470
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=1e6be4e8015a3407c9/screen=ckiDisplayDocument?docId=200000024602813
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=1e6be4e8015a3407c9/screen=ckiDisplayDocument?docId=200000024602583
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:27 AM
12-05-2001 07:27 AM
Re: fbackup exit code=2 how do i interpret this?
my crontab is as follows:
00 22 * * 1-5 /usr/sam/lbin/br_backup DAT FULL Y /dev/rmt/0m /etc/sam/br/graphBC
Aa04655 root Y 1 N > /var/tmp/SAM_br_msgs 2>&1 #sambackup
Does this go after the br_backup?
Let me know and I can try out a few options.
Thanks
Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:33 AM
12-05-2001 07:33 AM
Re: fbackup exit code=2 how do i interpret this?
br_backup will switch the -v flag on if the mail-to person is set to "_NONE". It might be best to edit the br_backup script temporarily for now, and switch the verbose_mode flag to -v (line 165 on my version).
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 08:32 AM
12-05-2001 08:32 AM
Re: fbackup exit code=2 how do i interpret this?
It looks like you are running backup thru Sam. If this is the case, you should have email in the root mail about each backup. Normally, it gives blocks backed up and any errors or warnings. If you wanted to see what it is doing, you can always run an interactive backup during the day and watch the window (or at least have it open). This way you will see where it hangs. One other possiblity that hasn't been mentioned is that you are over one tape. If you are running it thru sam, it will prompt for a second tape and then exit at some point, giving you an error. You will see this in interactive or in the root mail.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 09:01 AM
12-05-2001 09:01 AM
Re: fbackup exit code=2 how do i interpret this?
I'm not sure it is a tape length issue as the elm messages doesnt come up with that EOF error when its looking for another tape to be added. Thanks in advance everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 10:26 AM
12-05-2001 10:26 AM
Re: fbackup exit code=2 how do i interpret this?
Just fyi, most man pages have a RETURN CODE section further explaining why a specific return code was assigned. In this case you probably would have read the fbackup man page and said, "Well I know that".
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 07:09 AM
12-06-2001 07:09 AM
Re: fbackup exit code=2 how do i interpret this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 07:36 AM
12-06-2001 07:36 AM
Re: fbackup exit code=2 how do i interpret this?
One thing that I have noted is that if you don't have HP tapes, you can have some problems. If you are going to use new tapes, you might as well order the HP ones. non-hp tapes might have been a contributing factor (if you were using them).
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 07:51 AM
12-06-2001 07:51 AM
Re: fbackup exit code=2 how do i interpret this?
Glad to hear that you have "good" backups now. I have a couple of questions though:
1. Are you running a database on the server? because if you are - you need to shut it down before running your backup in order to have a valid backup.
2. Do you have an ignite DR tape for your server - this is very handy for OS recovery in case root disk failure.
3. Do you have a verification plan in place - ie. every month run a test restore to a server/filesystem to verify the integrity of your backups?
just some 2cents I thought I would share
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 08:00 AM
12-06-2001 08:00 AM
Re: fbackup exit code=2 how do i interpret this?
Thanks for the replies. The tapes being used are HP.
Glad to hear that you have "good" backups now. I have a couple of questions though:
1. Are you running a database on the server? because if you are - you need to shut it down before running your backup in order to have a valid backup.
No database like Oracle, just an ISAM database so thats not so much of an issue. Never has been before.
2. Do you have an ignite DR tape for your server - this is very handy for OS recovery in case root disk failure.
Yes, we do a make_recovery tape on a regular basis.
3. Do you have a verification plan in place - ie. every month run a test restore to a server/filesystem to verify the integrity of your backups?
Yes thats another part of the process. Thanks for your ideas.