Host-based backup of VMware vSphere VMs.
Post Reply
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Backup not applying retention policy.

Post by JosueM »

Good day everyone.

I have a backup job with 7 days retention policy but the job has accumulated 48 days. I know it should be for much 14 or 21 days for much, but 48 days seems insane.

How to figure out why the retention policy is not applying properly?

Image

Thanks in advance.
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Backup not applying retention policy.

Post by foggy »

Josue, what kind of restore points those 48 are (select the EXSERVER10 backup and click properties)? What is the schedule for this job?
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

Hello Foggy,

The restore points are all increment, except the firts one wich is full. This job runs daily one time for each day.
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Backup not applying retention policy.

Post by foggy »

JosueM wrote:The restore points are all increment, except the firts one wich is full.
That's why restore points are not deleted - if you delete the first full, all the subsequent increments will become useless. You need to find out why periodic fulls are not created. For example, if the job is chained with other jobs and actually starts on the next day (not the one synthetic full is scheduled to be performed at), due to the time required to run earlier jobs.
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

Hello Foggy,

I must confess I use more replicas than backups. But I have at least 3 backups now and all were created using the defaults.

No you point something that takes my attention, the job schedule and the full backup relation as I understand. This jobs runs daily at 23:50 , synthetic full is set to run each Saturday weekly.

Then it seems like the synthetic full does not perform.

Should I change something at the schedule? or make the job to run the active full instead synthetic ?
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Backup not applying retention policy.

Post by Vitaliy S. »

It does not matter how you create full backup either reading the entire VM data or creating a synthetic restore point, so I'm not sure that switching between active full and synthetic will help. Do you have any backup window defined by any chance? Do you have any backup job sessions triggered on Saturdays at all?
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

Hello Vitaliy,

By backup window you mean schedule? if so , then yes. The job is set to run daily at 23:50 everyday including saturday.

By sessions triggered you mean if the job was run on any saturday? if so, then yes it did run ok many saturdays until the repository got full.
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Backup not applying retention policy.

Post by foggy »

JosueM wrote:if so, then yes it did run ok many saturdays until the repository got full.
Well, this could be the reason of why active full cannot be performed. However, you should see the corresponding message in the job session log on that day and the job should actually fail.
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

ok, so for what I understand from your replys is: for backing up Veeam needs a repository size that is capable to handle: 1) initiall Full, plus 2) subsequent incremental for the days defined in the retention policy, plus 3) synthentic or active full.

So for this especifica case the VM is about 800GB size. Initial took about 400Gb, then incrementals where for about 7 Gb average per seven days, and addind the next synthetic or active full for 400gb. Plus a 100GB margin for data grow.

I will need about 1TB of repository to backup this machine considering 7 days retention policy and only one job per day. it sounds ok or I'm totally lost?
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Backup not applying retention policy.

Post by foggy »

Your calculations are correct, however, additionally you would need space for 6 increments more, since previous backup chain (initial full + 6 subsequent increments) can be removed only when the new chain reaches the specified retention (7).
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Backup not applying retention policy.

Post by Vitaliy S. »

Just wanted to add that if you want to monitor free space on your repository and predict how much space you will need, take a look at capacity planning for backup repositories report which is available in Veeam ONE.
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

Hello Foggy,

Well in that case I see no advantage to use backup over replica, instead I would make them all as replica cuz is more storage efficient. In the example of the 400Gb virtual machine, a replicate would take only the 400Gb plus about 100gb or less to the 7 restore points of the week, so veeam will use about 500GB in hd space using replication en about 1TB+ in hd space using backup for the same period of time.

As I told at the initial of the post that most of the critical virtual machines are replicated and I was wrong thinking that using backups instead of replica would become a more efficient use of storage.

Thanks all for your valuable help.
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Backup not applying retention policy.

Post by foggy »

That's not actually correct. Replica is stored in VMware native format, while backups are compressed and deduplicated and typically full backup requires less than 50% of the VM size (as you can see, in your case full takes about 400GB for the 800GB VM).

Space considerations aside, backup and replication serve different goals and cannot be opposed one to another. Besides, it is always a good practice to have more than one backup.
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Backup not applying retention policy.

Post by Vitaliy S. »

In addition to this, you can switch to reversed incremental backup mode which will not require doing synthetic full/active full on weekly basis.
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

Hello Foggy,

You are right with the numbers, I did mistake cuz the VM size is 800Gb not 400Gb as I wrote before. So in storage usage for this one week example both backup and replication are almost the same.

Will have a look to the options mentioned for Vitaliy to see if making backups does worth over making the replica.

Thanks.
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

I did a test backup and things seems pretty weird here. I set restore points to 3 and the synthetic full run any day, but after runing a few times the job veeam is not making the synthetic full and neither area any errors on the job log.

Any idea , what could be wrong?

Image
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Backup not applying retention policy.

Post by foggy »

Full backup is performed only once per day (unless active full is triggered using the corresponding command on the job's shortcut menu). If the job has already performed full backup during that day, all subsequent runs will be incremental. As I can see on the screenshot, you trigger the job several times during one day.
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

So, full backup are not determined by the restore points only and that's new for me. I wonder if the documentation has this information, cuz been hitting my head against the wall cuz of this.

Thanks
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup not applying retention policy.

Post by veremin »

As Alexander has mentioned, being executed automatically (via schedule), full backup will be performed no more than once a day. By the way, may I ask you what is the use case of running synthetic full on daily basis or even more frequently? Thanks.
JosueM
Expert
Posts: 187
Liked: 12 times
Joined: Sep 01, 2012 2:53 pm
Full Name: Josue Maldonado
Contact:

Re: Backup not applying retention policy.

Post by JosueM »

Hello Eremin.

The above test is not for a use case, but I guess there should some some applicable scenarios, I did the test because I did believe Veeam was not respecting the retenttion policy.

But now I know that retention policy consider days + restore points. IMHO this behavior is a little bit confusing.
Post Reply

Who is online

Users browsing this forum: Gostev, Mildur, Semrush [Bot] and 86 guests