Manage Tape drive

Manage Tape drive

Virtual Tape for Lab

The 3-2-1-1-0 rule

The availability of the IT system and the integrity of the data is an important point not to be neglected. The tape drive is therefore an essential part of the backup system.The 3-2-1-1-0 rule is a good practice that should be followed. This involves

  • 3 : Keep three copies of the data. One copy concerns the “primary” data, the other two are two backups. This prevents data loss in the event of a location malfunction or data deletion. It is very rare for all three locations to malfunction at the same time.
  • 2 : Store the backup on two different support. It’s recommended to store one copy of the backup on the OnPrem Server and the other copy on the cloud or on the tape. If all copy are stored on the same location, the risk of lose the backup chain (deletion, ransomware, etc.) is very high.
  • 1 : Keep a copy outside. A backup copy must be stored in a different location from the data. In the event of a natural disaster (flood, fire, etc.), the backup is safe and can be restored. The copy must be stored on another company site, a private cloud or a public cloud
  • 1 : Get an offline copy.This section complements the previous one. The copy outside must be an offline copy, she must separate of the network and IT infrastructure. If the backup infrastructure is compromised, the hacker can be deleted or crypted all backup copies.
  • 0 : Verify the backup.It’s important to check the results of your backups and correct any potential problems as soon as possible. This is to ensure an error-free backup. Nevertheless, every company should test its backups at least once a year. Unfortunately, this point is still sometimes overlooked. This enables restoration procedures to be validated, but also ensures that data can be restored.

Configure Tape drive

For my lab I use a virtual tape drive, the next section permit to implement a virtual tape drive (you can skip it if you use physically tape drive). A virtual machine running debian is used, the installation of the virtual machine is not documented.

Install and configure Virtual Drive Tape

Before starting the installation, the repositories must be updated. Run the command below. This must command must be running in root mode (su or sudo command).

apt-get update
update the linux repositories

Quadstor software emulates a tape drive. It requires the installation of a few prerequisites. Run the following command on the Linux server

apt install uuid-runtime build-essential sg3-utils apache2 psmisc linux-headers-`uname -r`
Install prerequisites for Quadstor

Restaurt Apache sevice with the following command

systemctl restart apache2

In order to run Quadstor, you need to install an older version of libssl. Download the installation file with the command

wget -c
Download libssl package

Install libssl package on the linux server with the following command

apt install ./libssl1.1_1.1.1n-0+deb10u4_amd64.deb
Install libssl package

The Quadstor package is now available for download. Check the package version at Run the following command

wget -c
Download the Quadstor package

Install the package with the following command

apt install ./quadstor-vtl-ext-3.0.75-debian-x86_64.deb
Install the QuadStor package

After installing the package, configure the service to start automatically. The server can then be started. To perform both operations, run the following commands

systemctl enable --now quadstorvtl.service
systemctl reboot
Restart the service

I use a second disk on my VM to hold the various backup chain. If the second disk was formatted after Quadstor installation, run the following commands to detect the second disk and restart the server.

/quadstorvtl/bin/vtconfig --reload
systemctl reboot
Detect the second disk and restart

Once the server has been started, access the URL http://NomServeurLinux from a browser. A type A record has been added to the DNS, so you can obviously use the server’s IP.

Web interface of QuadStor

Click on Physical Storage, the Linux server’s second physical disk is present. Click on Add.

Add physical disk

Only one Storage Pool is present. Leave the default choice and click Submit.

Add disk on Storage pool

The disk has been added.

Disk has been added

Click on Virtual libraries and then on Add VTL to add a new library.

Add Virtual Libraries

Enter the desired name and leave the other values as default. It’s possible to select a different tape drive (HP, IBM, etc.). In this case, please ensure compatibility with your operating system.

Configure VTL Server

Backup cartridges (backup tapes) can now be added. These are, of course, virtual. Click on Add VCartridge.

Add vCartridge on QuadStor

Enter the prefix desired for the vCartridge

Add cartridge

QuadStor is now correcly configured.

Add tape drive to Veeam

From the Veeam console, click on Tape Infrastructure then click on Add Tape Server

Add Tape Server to Veeam

The tape server can now be installed on Linux Server. From the wizard, click on Add New for add new server (the server selected by default is the Backup Server). If the Tape server must be installed on the same server, click on Next.

Click on add news for add new server

Click on Linux. Select Windows if you want install the Tape Server on other windows server.

Choose the operatng system of the tape server

Enter the DNS name or IP address of the Linux server.

Enter the name of the tape server or ip address

If the credetials has previously added, select it. If not click on Add. This credential is used to connect to the server using ssh. In the drop-down list, select Linux account.

Click on Add to enter credential for ssh connection

Enter the username and the password then check Elevate account privileges automatically then check Use “su” if “sudo” fails. Click on OK then on Next.

Select credentials for ssh connections

The previously installed components it’s detected. If the componants is not installed, it’s will be installed. Click on Apply.

Components will be installed

If all components has been installed, click on Next then on Finish.

Components is installed.

The server has been added, click on Next then on Apply. The server has been added.

The server has been added

Configure Backup Job

From the Veeam console, click on Tape Job. Select Backups in the scroll-down list.

Create backup job

Enter the name of the job and click on Next.

Create tape job

Click on Add and select the desired job.

Select the backup job

If you don’t have any Media Pool, click on Add otherwise select it.

Create new media pool on Veeam

Enter the name of the new Media Pool and click on Next.

Enter the name of the new media pool

Click on Add to add new tape.

Select the tape

Configure the retention then click on Next.

Configure the retention

You can configure encryption if you want. After that, the media pool is correctly configured.

The media pool is configured

Leave the configuration by default if you want archive incremental backups to tape.

Incremental backup to tape

Configure the schedule windows and click on Apply.

Tape job is created

Manage Tape Infrastructure

Veeam Backup & Replication can manage the tape drive from the Veeam console.

Inventory Library

This option permit to inventory the tape library. This process can be used when the new tape is load in the tape device. The tape are presented to Veeam Backup & Replication as Unrecognized. When the inventory process is runnning this unrecognized tape is identify. From the Veeam console, open Tape Infrastructure and expand Libraries.Select the drive and click on Inventory Library in the ribbon.

Inventory library from Veeam

Inventory is in progress

Inventory is in progress

Catalog Library

Catalog library permit to catalog all data stored in the tape. This process can be used if the data is not registered in the Veeam database (exemple : A tape is written by another Veeam Backup & Replication). During the catalog job, the tape is inventoried, the information about backup contents on tape are read from tape catalog information. The content of the tape is scanned and the veeam database is updated.

From the Veeam console, open Tape Infrastructure and expand Libraries.Select the drive and click on Catalog Library in the ribbon.

Catalog library from the veeam console

Catalog is in progress…

Catalog is in progress

Rescan Library

The job permit to rescan tape library to update it’s network status. From the Veeam console, open Tape Infrastructure and expand Libraries.Select the drive and click on rescan Library in the ribbon.

rescan library

The job is running

Rescan library

Manage Tape

The same action can be performed on the tape.

  • Inventory : This process permit to inventory only the tape selected
  • Catalog : This process permit to catalog only the tape selected
  • Move to : Move the tape to another media pool
  • Erase : Erase the selected tape

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.