Comprehensive data protection for all workloads
Post Reply
DanielJ
Service Provider
Posts: 200
Liked: 32 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

Two suggestions regarding the retention job and immutability logic

Post by DanielJ »

Last night I waited for a backup move job to finish, which it did some time after 00:30. I then started the backup manually since it had been missed due to the move going on. But before the backup could start, the retention job (starting at 00:30) had locked some of the files, so around 10% of the vms failed. When the backup had finished, I retried it, but all the failed vms failed again with the message "A backup file is immutable". So I would like to put forth these suggestions:

1. Let backup jobs wait for the retention job to finish, instead of failing the locked vms immediately.
2. Set the immutability flag after a vm backup has been finished successfully, not as soon as it has been started. There seems to be little value in applying immutability to a failed backup.
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Two suggestions regarding the retention job and immutability logic

Post by Mildur »

Hello Daniel

Have you considered to move the retention job to another timeslot when no backup jobs are running?

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication\
"RetentionJobStartTimeHours" DWORD, 0-23
"RetentionJobStartTimeMinutes" DWORD, 0-59
Immutability flag is set when the current backup session has completed. Setting immutability at the beginning of a backup job before would make the file unwritable by the backup job. If you see something else, please investigate it with our customer support team.

Best,
Fabian
Product Management Analyst @ Veeam Software
DanielJ
Service Provider
Posts: 200
Liked: 32 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

Re: Two suggestions regarding the retention job and immutability logic

Post by DanielJ »

I have considered that, but the need to start a manual backup can happen at any time. I should of course remember to check if the retention job is running first, but letting the backup job wait for the retention job seems simple and logical. Or indeed wait for any type of file lock (for some reasonable time).

I forgot to mention this is a vCD backup. I have only seen this "A backup file is immutable" error with vCD backups, so it would seem they are creating some file first (maybe the backup of the vApp itself) which then cannot be written to/removed if the backup has to be retried. I can even reproduce it by stopping a running vCD backup job and then retrying it. If this is actually some unknown and unexpected behaviour, then I can send in a ticket. Wouldn't be the first time vCD backups behave in surprising ways compared to ordinary vm backups.
Post Reply

Who is online

Users browsing this forum: No registered users and 118 guests