Veeam VBR DB Moving with SQL – Management Studio

In these last days, I had enough time to analyze my personal lab performances.

For testing purposes, I launched the backup of the whole architecture at the same time; the VM that suffered more was the backup server (VBR) and in particular the SQL Service.

This article will explain the steps I followed to move the VBR Database SQL Express from Backup & Replication to a SQL Server standard using SQL-Management Studio as a migration tool.

Before continuing reading the article, please watch at the following Veeam KBs and contact the Veeam Support

To make the description easier I’ll use the following acronyms :

  1. VBR = Backup Server
  2. SQLServer = Target Server where SQL Standard is installed
  3. SQLExpress = Source DB
  4. DB = VeeamBackup
  5. DBFile = VeeamBackup.mdf & VeeamBackup.ldf

The main steps to get the goal are:

  1. Stopping the Veeam service on VBR server
  2. Detaching DB from SQLExpress
  3. Copying DBFile from VBR to SQLServer
  4. Attaching DB to SQL Server
  5. Using the Veeam Migration tool
  6. Changing the service account name on VBR Service (optional)
  7. Checking up the register key
  8. Launching Backup and Restore tests

Let’s go!

  1. The first step is quite easy. Just connect to VBR, click on service and stop the SQL instance (Picture 1).

Picture 1

2. The second step is detaching the DB from SQL Express using SQL Management Studio (Picture 2).

Picture 2

If you need a good and short video guide to install SQL Management Studio please refer to the following link:

Another interesting video guide to understand how to enable the remote connection with SQL server is available here

Remember:  for enabling SQL Server to talk via Network (1433 is default port) you also have to set-up the firewall correctly.

3. Now it’s time to copy DBFiles from VBR to SQLServer

Pay attention to the default path where the files have to be copied and pasted.

Generally, it is in C:\Program Files\Microsoft SQLServer\ MSSQL.xx.INSTANCENAME\MSSQL\DATA (Picture 3).

Picture 3

4. Next step is attaching the DB to the new SQL server following the easy SQL Management studio menu ((Picture 4).

Picture 4

5. Now from the programs menu of VBR server, just select the voice Veeam and then “Configuration DataBase Connection Settings“.

Now choose which DBs you want to move to the new architecture. It can be Backup & Replication or the Enterprise Manager or both (Picture 5)

 

(Picture 5)

Now fill in the Database Name and Server/Instance and proceeding with the final step migration (Picture 6).

Picture 6

If everything is correctly configurated you have finally migrated your DBs.

Troubleshooting:

TS-1

If you see that the process runs out of time (600 seconds), it means that the VBR service account can’t access the database

How to solve it?

Please contact your DB experts before doing any tasks!!!

6. The first thing is creating a user able to manage the SQL services.

The procedure is quite easy using a Domain Controller (Picture 7-9)

Picture 7

Picture 8

Picture 9

Now you have to add the new user to Domain Users and Domain Admin groups (Picture 10-12).

Picture 10

Picture 11

Picture 12

From the Veeam Services window, select the Logon Service tab and set up the right user (and for all services that need it) (Picture 13 & 14)

Picture 13

Picture 14

Re-apply the procedure shown at point 5.

In my case, I’ve had another issue.

TS-2

The issue I unlucky met during my setup was the following:

When I tried to connect to remote DB with the “Configuration DataBase Connection Settings” command appeared the following error (Picture 15).

Picture 15

This issue happens when the SQL Server driver on a client computer that uses integrated security and the Windows security token, can’t connect to the SQL Server

If you want to have all details please refer to the following Microsoft article:

Cannot generate SSPI context

Please contact your DB experts before doing any tasks!!!

After some google research and test, I found a solution that addressed my issue always working with Domain Controller.

The AD console needs to be switched to advanced (Picture 16).

Picture 16

Now left-click on the SQL server and  select “attribute editor”

From this menu, you have to delete all the entries with the writing MSSQL.svc (Picture 17)

It also needs a server reboot.

Please contact your DB experts before doing any tasks!!!

Picture 17

For the last two points (7 and 8),  check-up, if the procedure followed, has solved the request.

TS-3

If you are not able to discover the SQL server, please check on the target Server if the SQL Server browser is up and running

Picture 18

 

From VBR Server open the register key (HKEY_LOCAL_MACHINE\ Software\Veeam\Veeam Backup and Replication) and check up if the items SqlDatabaseName, SQLinstanceName e SqlServerName are correctly filled in (Picture 19).

Do the same check-up for HKEY_LOCAL_MACHINE\Software\Veeam\Veeam Backup Catalog)  (Picture 20).

Picture 19

Picture 20

Now start backup Jobs and do some restore tasks to be sure that your Backup architecture is up and running.

In my case, the Backup Server can manage more tasks without any issue.

One more recommendation before ending the article:

Before doing any activities please read the official documentation and ask Veeam support

BBO – GRANDI CONDOTTIERI – HOME PAGE

RISULTATO FINALE!

Annibale conquista la capitale opps la finale opss il torneo !!!

Bravi !!!

TABELLONE FINALE

Stalin
Mandela
Mandela
Napolene
Montezuma
Montezuma
Mandela
Annibale
A-Da Giussano
A-Da Giussano
Ragnar
Annibale
Annibale
Fanfulla

CALENDARIO INCONTRI PRIMA FASE

REGOLAMENTO

PARTECIPANTI

GIRONE A

GIRONE B

https://lnx.gable.it/wp-content/uploads/2020/06/GirA.jpg

CLASSIFICA

Le classifiche verranno aggiornate quotidianamente.

Per ogni imprecisione fare riferimento a Sara

Grazie della collaborazione

BOL – BGC – Classifica finale Gironi

In verde le squadre che hanno passato il turno.

Le squadre si sfideranno come da regolamento

G P PTS TEAM PG PV PM 1 2 3 4 5 6 7
A 1 109,90 RAGNAR 7 6 0 17,85 15,56 9,69 13,97 20,00 17,45 15,38
A 2 99,68 NAPOLEONE 7 5 0 19,43 4,44 19,34 12,29 8,80 20,00 15,38
A 3 94,71 ANNIBALE 7 5 0 18,97 10,91 20,00 7,71 17,31 15,19 4,62
A 4 94,43 MANDELA 7 6 0 16,09 19,52 10,31 16,58 11,20 4,81 15,92
A 5 63,09 LEONIDA 7 3 0 2,15 9,09 0,66 3,42 15,74 20,00 12,03
A 6 43,96 ALE-MAGNO 7 1 0 1,03 18,87 9,69 6,03 4,26 0,00 4,08
A 7 38,09 SERSE 7 2 0 0,57 0,48 10,31 13,52 2,69 2,55 7,97
A 8 16,14 AUGUSTO 7 0 0 3,91 1,13 0,00 6,48 0,00 0,00 4,62
G P PTS TEAM PG PV PM 1 2 3 4 5 6 7
B 1 111,24 STALIN 7 7 0 13,04 14,18 17,03 18,44 18,87 18,77 10,91
B 2 105,51 FANFULLA 7 5 0 6,96 20,00 20,00 20,00 5,61 14,39 18,55
B 3 94,32 MONTEZUMA 7 5 0 12,55 14,60 15,56 8,52 14,39 19,61 9,09
B 4 87,43 A-GIUSSANO 7 5 0 18,55 14,60 2,97 11,48 15,56 5,61 18,66
B 5 56,69 G-CESARE 7 3 0 7,45 0,00 18,66 1,56 4,44 12,55 12,03
B 6 51,88 ATTILA 7 2 0 18,66 5,40 4,44 0,00 14,18 1,23 7,97
B 7 36,66 TAMERLANO 7 1 0 1,34 5,40 0,00 20,00 1,13 7,45 1,34
B 8 16,27 B-LEONE 7 0 0 1,45 5,82 1,34 0,00 5,82 0,39 1,45

BOL – BGC – INCONTRI

Giornata I – GIR A
Leonida 2,15 17,85 Ragnar
Alessandro Magno 1,03 18,97 Annibale
Mandela 16,09 3,91 Augusto
Napoleone 19,43 0,57 Serse
Giornata I – GIR B
Attila 18,66 1,34 Tamerlano
Brancaleone 1,45 18,55 Alberto  da Giussano
Fanfulla 6,96 13,04 Stalin
Montezuma 12,55 7,45 Giulio Cesare
Giornata II – GIR A
Ragnar 15,56 4,44 Napoleone
Serse 0,48 19,52 Mandela
Augusto 1,13 18,87 Alessandro Magno
Annibale 10,91 9,09 Leonida
Giornata II – GIR B
Tamerlano 5,40 14,60 Montezuma
Giulio Cesare 0,00 20,00 Fanfulla
Stalin 14,18 5,82 Brancaleone
Alberto da Giussano 14,6 5,4 Attila
Giornata III – GIR A
Alessandro Magno 9,69 10,31 Serse
Mandela 10,31 9,69 Ragnar
Napoleone 19,34 0,66 Leonida
Augusto 0,00 20,00 Annibale
Giornata III – GIR B
Brancaleone 1,34 18,66 Giulio Cesare
Fanfulla 20,00 0,00 Tamerlano
Montezuma 15,56 4,44 Attila
Stalin 17,03 2,97 Alberto da Giussano
Giornata IV – GIR A
Leonida 3,42 16,58 Mandela
Ragnar 13,97 6,03 Alessandro Magno
Serse 13,52 6,48 Augusto
Annibale 7,71 12,29 Napoleone
Giornata IV – GIR B
Attila 0,00 20,00 Fanfulla
Tamerlano 20,00 0,00 Brancaleone
Giulio Cesare 1,56 18,44 Stalin
Alberto da Giussano 11,48 8,52 Montezuma
Giornata V – GIR A
Alessandro Magno 4,26 15,74 Leonida
Mandela 11,20 8,80 Napoleone
Serse 2,69 17,31 Annibale
Augusto 0,00 20,00 Ragnar
Giornata V – GIR B
Brancaleone 5,82 14,18 Attila
Fanfulla 5,61 14,39 Montezuma
Giulio Cesare 4,44 15,56 Alberto da Giussano
Stalin 18,87 1,13 Tamerlano
Giornata VI – GIR A
Leonida 20,00 0,00 Augusto
Ragnar 17,45 2,55 Serse
Mandela 4,81 15,19 Annibale
Napoleone 20,00 0,00 Alessandro Magno
Giornata VI – GIR B
Attila 1,23 17,77 Stalin
Tamerlano 7,45 12,55 Giulio Cesare
Fanfulla 14,39 5,61 Alberto da Giussano
Montezuma 18,87 1,13 Brancaleone
Giornata VII – GIR A
Alessandro Magno 4,08 15,92 Mandela
Serse 7,97 12,03 Leonida
Augusto 4,62 15,38 Napoleone
Annibale 4,62 15,38 Ragnar
Giornata VII – GIR B
Brancaleone 1,45 18.55 Fanfulla
Giulio Cesare 12,03 7,97 Attila
Stalin 10,91 9,09 Montezuma
Alberto da Giussano 18,66 1,34 Tamerlano

 

 

Replication and network throttling

One of the lesser-known VBR features is replication.
In this article, I’ll cover a special use case: how to throttle the network use.

There are several examples where this option is required.
Probably the most common is when you need to create a DR strategy to an external site and it is not possible to use all the band to transfer the source Data.

From the VBR console just select the “Network traffic rules” as shown in picture 1:

Picture 1

Now it’s possible to add a rule just selecting add Button (Picture 2)

Picture 2

In this example, I just input a network rule between the source proxy (192.168.16.72) and the target proxy (192.168.16.73) and set the amount of data (1 Mbps) that can pass through (Picture 3)

Picture 3

Picture 4 shows how to set  up the throttling rule during any hour of the week

Picture 4

It is also possible to set up a number of streams. It helps to configure a multi-thread strategy to accelerate the data transfer (it specifies the number of ports that will be opened on the target device) (Picture 5)

Picture 5

The next two pictures show how the Hot-Add protocol works. It mounts the disks that have to be copied from the source (Ubuntu-02) to target (Ubuntu-Proxy). It is faster than using a Network protocol.

Picture 6

Picture 7

Now you can configure a Replica Job and check if the network throttling  works as expected  (Picture 8)

Picture 8

and yes it just works!

One more tip: if you have more than 1 Network adapter on your proxy or Repository VBR architecture, you can select which network has to be used by clicking on the Networks Button  (Picture 9)

Picture 9

See you soon and take care!

BOL – BGA – Classifica 25 Giugno

G P PTS TEAM PG PV PM 1 2 3 4 5 6 7
A 1 99,68 NAPOLEONE 7 5 0 19,43 4,44 19,34 12,29 8,80 20,00 15,38
A 2 94,71 ANNIBALE 7 5 0 18,97 10,91 20,00 7,71 17,31 15,19 4,62
A 3 94,43 MANDELA 7 6 0 16,09 19,52 10,31 16,58 11,20 4,81 15,92
A 4 92,45 RAGNAR 6 5 1 17,85 15,56 9,69 13,97 20,00 0,00 15,38
A 5 63,09 LEONIDA 7 3 0 2,15 9,09 0,66 3,42 15,74 20,00 12,03
A 6 43,96 ALE-MAGNO 7 1 0 1,03 18,87 9,69 6,03 4,26 0,00 4,08
A 7 35,54 SERSE 6 2 1 0,57 0,48 10,31 13,52 2,69 0,00 7,97
A 8 16,14 AUGUSTO 7 0 0 3,91 1,13 0,00 6,48 0,00 0,00 4,62
G P PTS TEAM PG PV PM 1 2 3 4 5 6 7
B 1 111,24 STALIN 7 7 0 13,04 14,18 17,03 18,44 18,87 18,77 10,91
B 2 105,51 FANFULLA 7 5 0 6,96 20,00 20,00 20,00 5,61 14,39 18,55
B 3 94,32 MONTEZUMA 7 5 0 12,55 14,60 15,56 8,52 14,39 19,61 9,09
B 4 87,43 A-GIUSSANO 7 5 0 18,55 14,60 2,97 11,48 15,56 5,61 18,66
B 5 56,69 G-CESARE 7 3 0 7,45 0,00 18,66 1,56 4,44 12,55 12,03
B 6 51,88 ATTILA 7 2 0 18,66 5,40 4,44 0,00 14,18 1,23 7,97
B 7 36,66 TAMERLANO 7 1 0 1,34 5,40 0,00 20,00 1,13 7,45 1,34
B 8 16,27 B-LEONE 7 0 0 1,45 5,82 1,34 0,00 5,82 0,39 1,45