Skip to main content
Solved

Procedure to shrink the VBR database?


JMeixner
Forum|alt.badge.img+17
  • On the path to Greatness
  • 2650 comments

Hello,

a customer has the problem that his VBR server has gotten very slow the last days and since today some agent and plugin jobs are failing (and yes, agent and plugin jobs only are failing, no VM backup jobs...).

I had a look at the server and it has hit the 10GB constraint of the the MS SQL express edition for the database size…

Is there a procedure to shrink the database? For example to delete the session history or something else?

The setting for the History under General Options is  a option how much entries are shown in the console but not how many entries are saved in the db.

Any ideas? 🤔

Best answer by MicoolPaul

You may find that you can’t amend the DB if you’re right against the limit. If you have a SQL Server standard edition elsewhere in your environment, you may need to attach the database to the fully licensed instance to perform the changes and shrink, then continue. 🙂

 

As @regnor has said, simple recovery is going to help here, but the DB is also quite large and approaching that 10GB magic figure, check how much of that space is unused and potentially shrink the database if you don’t need it to be anywhere near that bit, then set up a SQL alert to notify you when the database grows.

 

Once your database is back to normal, go through the GUI options in SSMS to shrink the database and it should tell you how much space is available within that database (white space)

View original
Did this topic help you find an answer to your question?

9 comments

regnor
Forum|alt.badge.img+14
  • Veeam MVP
  • 1352 comments
  • May 2, 2022

I think there are procedures to cleanup the database, but those should only be executed by Veeam Support. You could try to cleanup some catalog information, like file to tape.

But in your screenshot it seems that the log file has reached 10GB, not the database. In that case you should create a database backup and/or change to simple recovery model. That way the Veeam server should be operational again.


JMeixner
Forum|alt.badge.img+17
  • Author
  • On the path to Greatness
  • 2650 comments
  • May 2, 2022

And yes, I know that I can use another - paid - version of MS SQL which does not have this 10GB constraint. But this is not an option for the customer - at least not at once in the next weeks… 😎


JMeixner
Forum|alt.badge.img+17
  • Author
  • On the path to Greatness
  • 2650 comments
  • May 2, 2022
regnor wrote:

I think there are procedures to cleanup the database, but those should only be executed by Veeam Support. You could try to cleanup some catalog information, like file to tape.

But in your screenshot it seems that the log file has reached 10GB, not the database. In that case you should create a database backup and/or change to simple recovery model. That way the Veeam server should be operational again.

OK… Database backup was made today.
I will check the simple recovery model.

Thanks, @regnor 


MicoolPaul
Forum|alt.badge.img+23
  • 2360 comments
  • Answer
  • May 2, 2022

You may find that you can’t amend the DB if you’re right against the limit. If you have a SQL Server standard edition elsewhere in your environment, you may need to attach the database to the fully licensed instance to perform the changes and shrink, then continue. 🙂

 

As @regnor has said, simple recovery is going to help here, but the DB is also quite large and approaching that 10GB magic figure, check how much of that space is unused and potentially shrink the database if you don’t need it to be anywhere near that bit, then set up a SQL alert to notify you when the database grows.

 

Once your database is back to normal, go through the GUI options in SSMS to shrink the database and it should tell you how much space is available within that database (white space)


Chris.Childerhose
Forum|alt.badge.img+21
MicoolPaul wrote:

You may find that you can’t amend the DB if you’re right against the limit. If you have a SQL Server standard edition elsewhere in your environment, you may need to attach the database to the fully licensed instance to perform the changes and shrink, then continue. 🙂

 

As @regnor has said, simple recovery is going to help here, but the DB is also quite large and approaching that 10GB magic figure, check how much of that space is unused and potentially shrink the database if you don’t need it to be anywhere near that bit, then set up a SQL alert to notify you when the database grows.

 

Once your database is back to normal, go through the GUI options in SSMS to shrink the database and it should tell you how much space is available within that database (white space)

Was just about to suggest this as it is very hard when you hit the limit of SQL Express to work in the DB.  All suggestions given are good and should be followed.


JMeixner
Forum|alt.badge.img+17
  • Author
  • On the path to Greatness
  • 2650 comments
  • May 2, 2022

Thank you all, I will have a look at your suggestions.

I am not a big MS SQL specialist and have hoped I can avoid this situation. But this is a customer controlled server and I have to repair it… 😎

I will keep you updated...


MicoolPaul
Forum|alt.badge.img+23
JMeixner wrote:

Thank you all, I will have a look at your suggestions.

I am not a big MS SQL specialist and have hoped I can avoid this situation. But this is a customer controlled server and I have to repair it… 😎

I will keep you updated...

If you have any specific questions that are a bit more sensitive, feel free to DM, I used to be a SQL guy (for my sins!)


JMeixner
Forum|alt.badge.img+17
  • Author
  • On the path to Greatness
  • 2650 comments
  • May 2, 2022
MicoolPaul wrote:
JMeixner wrote:

Thank you all, I will have a look at your suggestions.

I am not a big MS SQL specialist and have hoped I can avoid this situation. But this is a customer controlled server and I have to repair it… 😎

I will keep you updated...

If you have any specific questions that are a bit more sensitive, feel free to DM, I used to be a SQL guy (for my sins!)

Thanks Michael. I will send you a line if we get into problems. 🙂🙂🙂


Iams3le
Forum|alt.badge.img+11
  • Veeam Legend
  • 1383 comments
  • May 3, 2022

You can use the Object Explorer in SQL Server Management Studio to shrink the Db. Check this link.


Comment