Duration flag stop backups after a random time duration
search cancel

Duration flag stop backups after a random time duration

book

Article ID: 343063

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Duration flag stops backup after three hours of duration.
  • Running the backup job reports error similar to:
 
logheader platform="Linux" process_id="avvcbimage" version="6.1.182-57" tz="EDT" />
--------------------------------------------------------------------------------------------------------
-----  START avvcbimage log 2013-09-11 19:00:03 EDT  [6.1.182-57 Linux-x86_64]
--------------------------------------------------------------------------------------------------------
2013-09-11 19:00:03 avvcbimage Info <5008>: Logging to /usr/local/avamarclient/var-proxy-1/messaging-daily-messaging-daily-1378940400043-7284d4d5d7c7876d35dee47030f770f1c997deeb-3016-vmimagew.
log
2013-09-11 19:00:03 avvcbimage Info <5174>: - Reading /root/.avamar
2013-09-11 19:00:03 avvcbimage Info <5174>: - Reading /usr/local/avamar/etc/usersettings.cfg
2013-09-11 19:00:03 avvcbimage Info <5174>: - Reading /usr/local/avamarclient/var-proxy-1/avvcbimage.cmd
2013-09-11 19:00:03 avvcbimage Info <5174>: - Reading /usr/local/avamarclient/var/avvcbimageAll.cmd
2013-09-11 19:00:03 avvcbimage Info <6673>: CTL listening on port 47708
...snip
.
.
...snip
2009-11 19:52:59 avvcbimage Info <16041>: VDDK:DISKLIB-LIB   : numIOs = 450000 numMergedIOs = 0 numSplitIOs = 0
2013-09-11 19:56:02 avvcbimage Info <16041>: VDDK:DISKLIB-LIB   : numIOs = 500000 numMergedIOs = 0 numSplitIOs = 0
2013-09-11 20:00:02 avvcbimage Info <16037>: Cancelled by MCS
2013-09-11 20:00:02 avvcbimage Info <0000>: Starting graceful (staged) termination, MCS cancel (wrap-up stage)
2013-09-11 20:00:02 avvcbimage Info <16022>: Cancel detected(externally cancelled by Administrator), terminated(1).
2013-09-11 20:00:02 avvcbimage Info <16022>: Cancel detected(externally cancelled by Administrator), terminated(1).
...snip
.
.
...snip
--------------------------------------------------------------------------------------------------------
----- END avvcbimage log 2013-09-11 20:00:26 EDT  (5 warnings, 1 error, 0 fatal errors)
--------------------------------------------------------------------------------------------------------

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.



Environment

VMware vSphere Data Protection 6.1.x
VMware vSphere Data Protection 5.8.x
VMware vSphere Data Protection 6.0.x

Cause

This issue occurs because the backup window duration is set to three hours.

admin@vmware-vdp02:~/>: mccli schedule show --name=/10.234.103.12/VirtualMachines/Customer-Backup

0,23000,CLI command completed successfully.

Attribute Value

--------------------------------- ------------------------------

Name Customer-Backup

Domain /10.234.103.12/VirtualMachines

Built-in false

Native Timezone Europe/London

Daylight Savings Adjustment (m) 60

Next Run Time 2017-10-10 07:00 PM

Start Time N/A

Backup Window Duration 3 hours

Repeat Daily

Hours of Day AM

Hours of Day PM 07:00

Time difference from local to BST +0h0m

Delay Start Until 2017-10-10 11:47 AM BST

End Policy No End Date

Description N/A

Resolution

To resolve this issue, increase the backup window duration and disable the overtime flag time.
  1. Run these commands to increase the backup duration:
    • admin@vmware-vdp02:~/>: date

      You see output similar to:

      Tue Oct 10 11:49:16 BST 2017
    • admin@vgss-vdp02:~/>: mccli schedule edit --name=/10.234.103.12/VirtualMachines/Customer-Backup --duration=14

      You see output similar to:

      0,22214,Schedule modified
    • admin@vmware-vdp02:~/>: mccli schedule show --name=/10.234.103.12/VirtualMachines/Customer-Backup

      You see output similar to:
 
0,23000,CLI command completed successfully.
Attribute Value
--------------------------------- ------------------------------
Name Customer-Backup
Domain /10.234.103.12/VirtualMachines
Built-in false
Native Timezone Europe/London
Daylight Savings Adjustment (m) 60
Next Run Time 2017-10-10 07:00 PM
Start Time N/A
Backup Window Duration 14 hours and 0 minutes
Repeat Daily
Hours of Day AM
Hours of Day PM 07:00
Time difference from local to BST +0h0m
Delay Start Until 2017-10-10 11:47 AM BST
End Policy No End Date
Description N/A
 
  1. Disable the overtime flag on all the virtual machines.

    mccli client show --recursive | awk '{print $1}' | awk 'NR>3' | while read i; do mccli client edit --name=/10.234.103.12/VirtualMachines/"$i" --overtime-option=NEVER ;done


Additional Information




Impact/Risks:
Impact to backups completing within the backup window.