📜 ⬆️ ⬇️

Analysis of the case of changing the settings for the size of the data block for recording on tape with Veeam Backup & Replication

We continue a series of posts with analysis of real cases that come to the technical support service Veeam. Today we will discuss the situation when the data block size settings made for a tape device in the Veeam console do not match the real device settings. Of course, we will give recommendations on tracking and correcting such an error.

I note that changing the size of blocks can be done in cases where you need to increase the performance of data processing. After all, the larger the block size, the more data the device can write per unit of time.


')
Imagine the following picture: the HBA controller has failed and needs to be replaced. The Veeam server remains unchanged (that is, without reinstalling the OS and the Veeam application itself), as well as the tape recorder. You have finally successfully set everything up, and then your boss needed to immediately restore the virtual machine from the backup recorded on the tape the day before the HBA controller was replaced. This is where the error message with the block size comes up: Error: Invalid block size

We are conducting an investigation


To get started, let's go on the Veeam backup server in the C: \ ProgramData \ Veeam \ Backup folder, where logs are stored by default. In the journal, our attempt to perform VM recovery will be reflected somehow like this:



We see that after replacing the controller, our tape library did not give us the opportunity to set the previous value of the block size to write to the tape:
[timestamp] <08> Info [AP] (0f3e) output: Cannot set block size: 1048576setMediaParameters error: Tape error: '87' (The parameter is incorrect.)

After we made sure that there are such records in the log, check which block size is specified in the tape device settings in the Veeam console. If it turns out to change it to the one that was specified when archiving to tape, then you have solved the problem.

However, if the maximum block size is less than what you expected, you will have to open Device Manager (Device Manager) and see what block size is there. If the maximum value exceeds the one specified in the settings of Veeam Backup & Replication, then again we have a place with a discrepancy in the settings, and the investigation will have to be continued.

Example


Here is an example from the user's real life: in the Veeam console, the maximum block size is specified as 512 kV.



However, earlier it was possible to choose a greater value. And in Device Manager, the maximum block size is actually 8 MB:



There is a reasonable question: why in the settings Veeam such a limited size, if the driver does not prohibit working with a much larger block size? And what can be done about it? Let's try to dig deeper to answer this question.

As we remember, only the HBA controller has changed. The documentation ( Best Practices for Veeam Backup & Replication ) about connecting via HBA states the following:

If you connect the device using the HBA, it needs to be configured for the HBA.

If the tape device is connected via HBA, then Veeam Backup & Replication will use the block size specified in the HBA settings.

So, we need to find out what block size is now set in the HBA settings, and set the appropriate value for it.

Editing Settings


For an example of editing HBA settings, consider HPE QLogic. HPE has a very official article on how to change the block size for the QLogic HBA .

To configure QLogic, we need a special tool to work with the OS of our tape device - we download it from here .

To see which block size is set, execute the -tsize command, we see that in this example we have 512 KV.

Then we execute the same command with the key to set the new block size:
-tsize / fc / set 1024 or even generally -tsize / fc / set 2048



After we have changed the settings for the HBA, we need to return to Device Manager ( Device Manager ) and start the hardware changes check for hardware changes.

When the changes take effect, be sure to restart the Veeam Tape Service .

We expect that in the Veeam console now, too, it will be possible to set the maximum block size more than it has been up to now. And our task, as we remember, is to set the block size equal to that which was when writing backup to the tape.

Indeed, in the console, we now see twice the maximum block size:



The problem with the discrepancy in the block size may occur not only during the recovery operation, but also during the inventory and updating of the tape catalog. Therefore, we always recommend that you carefully review the limitations and features of the settings, and if a discrepancy is found, then try to eliminate it. If it does not work out by itself, we are always ready to help.

Your Veeam Support Team.

What else to read


Source: https://habr.com/ru/post/340236/


All Articles