Welcome! » Log In » Create A New Profile

bpbackup -w

Posted by Anonymous 
bpbackup -w
August 02, 2013 03:27PM
Is there a way to make sure the bpbackup command doesn't send return code until all retries have completed?

Last night we had a backup apparently timeout because it was waiting for a tape. It successfully got a tape after an hour but had sent a Status 25 can't connect on socket before that. Due to this the bpackup command exited with that status and took our database out of hot backup even though the backup job itself had not failed and in fact ultimately finished. Since DB was not in hot backup mode this backup is somewhat useless.

It seems it should wait for the job to completely finish and in fact I found this bug report/fix for earlier version:
http://www.symantec.com/business/support/index?page=content&id=TECH66436

Also I'm somewhat surprised that it returned the above status when it did anyway as the first attempt never shows a failure - it simply shows it waiting to get the resource and ultimately getting it after about an hour and it is at that time it sent the status 25. (That is to say there is no attempt 2 - it shows attempt 1 as only attempt and active start was as of the time it got the tape.)

We're running NBU 7.1 on RHEL6 (Master and Media server - the DB we backed up was on the media server).

Command line we're running to do the backup is initiated from the media server via cron:
/usr/openv/netbackup/bin/bpbackup -i -p <policy> -s <schedule> -w 12:00:00

This is only 1 stream and is not multiple jobs so it is not an issue with other streams completing but rather this 1 stream and 1 job incorrectly exiting the -w.

Athena(r), Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
bpbackup -w
August 02, 2013 08:44PM
According to the documentation, that should have waited for 12 hours. To wait an infinite time, use the option "-w 0". You never know how long a job will sit in a queued state due to storage contention.
bpbackup -w
August 02, 2013 09:43PM
Right - "According to the documentation"

My question was about why it is NOT working according to the documentation.

We don't want "-w 0" as we do want it to actually fail eventually so that it doesn't leave our DB in hot backup mode for say an entire weekend as it might take it a while to commit changes (assuming the archive logs filesystem didn't fill first due to all the held commits from hot backup mode).

Also it doesn't seem to me the "-w 0" would have helped as it appears to have seen the status 25 as an "exit" of the process so the "-w 0" just like the "-w 12:00:00" would have exited at exactly the same point.

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto] On Behalf Of tsimerson
Sent: Friday, August 02, 2013 4:45 PM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] bpbackup -w

According to the documentation, that should have waited for 12 hours. To wait an infinite time, use the option "-w 0". You never know how long a job will sit in a queued state due to storage contention.

+----------------------------------------------------------------------
|This was sent by tom < at > tjsimerson.org via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Athena(r), Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
Sorry, you do not have permission to post/reply in this forum.