#1 Global Leader in Data Resilience

Veeam ONE Database Partitioning

KB ID: 4175
Product: Veeam ONE | 10 | 11 | 12 | 12.1 | 12.2
Published: 2021-05-27
Last Modified: 2023-08-30
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Purpose

This article documents the procedure for implementing database partitioning to improve the performance of Veeam ONE deployments where the database in use was first created using Veeam ONE 9.x or older.

Starting with Veeam ONE version 10, all newly deployed Veeam ONE databases are already configured with partitioning. However, Veeam ONE deployments that were upgraded from the older versions (8.x, 9.x) do not have database partitioning automatically applied. For such databases, database partitioning must be applied manually.

Solution

Check Database Partitioning State

Use the following SQL query to check the current database partitioning implementation state. The output message will advise you on what actions need to be taken.

IF EXISTS (SELECT * FROM information_schema.views WHERE table_schema = 'monitor' AND table_name = 'PerfSampleDay')
PRINT 'Modern database partitioning is already implemented. No actions are required.';
ELSE
IF EXISTS (SELECT * FROM sys.partition_schemes WHERE name IN ('Low_ps_dt', 'Med_ps_dt'))
PRINT 'Legacy database partitioning detected. Contact Veeam Support for assistance upgrading to modern database partitioning.';
ELSE PRINT 'No database partitioning detected. Use the script on veeam.com/KB4175 to apply modern database partitioning.';
GO

Implementing Modern Database Partitioning

  1. Stop the Veeam ONE services.
  2. Back up the Veeam ONE database.
  3. Download the Veeam ONE Partitioning SQL script.
  4. Execute the script against the Veeam ONE database to deploy the necessary procedures.
  5. Activate the partitioning process by executing the following SQL commands:
    Depending on the size of the database, this process may take some time. You can check the progress of applying the partitioning in the SQL Studio "Messages" panel.
EXEC monitor.sp_convert_perf_table 'PerfSampleMed', 604800, 86400
DECLARE @RetentionPolicyPeriod_Sec bigint = (select top 1 coalesce(RetentionPolicyPeriod,12) from common.ServerSettings)*2629746
EXEC monitor.sp_convert_perf_table 'PerfSampleDay', @RetentionPolicyPeriod_Sec, 2678400
EXEC monitor.sp_convert_perf_table 'PerfSampleLow', @RetentionPolicyPeriod_Sec, 2678400

When the process is complete, all three tables will be partitioned and ready to use.

  1. Start the Veeam ONE services.

More Information

Historical note: This article uses the qualifier "Modern" in reference to the Veeam ONE 10 and newer implementation of database partitioning to differentiate from the optional database partitioning scheme that was available for Veeam ONE versions 8.x and 9.x. The optional database partitioning method that was created for Veeam ONE 8.x and 9.x, was functionally quite different than the method used by Veeam ONE version 10 and newer, and is now referred to as the Legacy Database Partitioning to differentiate it from the method used by Veeam ONE version 10 and newer, which this article refers to as Modern Database Partitioning.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.