<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pbs.proxmox.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=A.zeidler</id>
	<title>Proxmox Backup Server - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://pbs.proxmox.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=A.zeidler"/>
	<link rel="alternate" type="text/html" href="https://pbs.proxmox.com/wiki/Special:Contributions/A.zeidler"/>
	<updated>2026-04-26T05:58:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pbs.proxmox.com/mediawiki/index.php?title=Installing_a_Virtual_Tape_Library&amp;diff=133</id>
		<title>Installing a Virtual Tape Library</title>
		<link rel="alternate" type="text/html" href="https://pbs.proxmox.com/mediawiki/index.php?title=Installing_a_Virtual_Tape_Library&amp;diff=133"/>
		<updated>2024-08-13T13:38:04Z</updated>

		<summary type="html">&lt;p&gt;A.zeidler: Add a VTL/Debian update section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Proxmox Backup Server includes support for tape backup, allowing you to save &#039;Datastores&#039; to tape, and manage tape libraries and tape pools.&lt;br /&gt;
&lt;br /&gt;
Since testing backup and restore with real tape hardware takes a lot of time, it can be a good idea to use a faster Virtual Tape Library (VTL) for evaluation and for testing&lt;br /&gt;
of the correct allocation and retention policies matching your use case.&lt;br /&gt;
&lt;br /&gt;
One example of such a VTL is the [https://www.quadstor.com/virtual-tape-library.html QUADStor VTL].&lt;br /&gt;
This tutorial will guide you through the installation and configuration of a QUADStor VTL, and also show you how to integrate it into Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
== Installing the QUADStor VTL ==&lt;br /&gt;
&lt;br /&gt;
This tutorial assumes the use of an offical [https://www.debian.org/ Debian] 12 (Bookworm), for example, running as a virtual machine on a Proxmox VE host.&lt;br /&gt;
&lt;br /&gt;
Two disks are needed. One for the Debian OS installation (for example 16 GiB), and a larger one to store virtual tapes on it. A disk of at least 220 GiB allows you to fully utilize the capacity of two LTO-1 (100 GB) tapes. While real LTO-1 is not [https://pbs.proxmox.com/docs/tape-backup.html#supported-hardware supported hardware] by Proxmox Backup Server, it is still convenient for testing purposes due to its low capacity, compared to modern types like LTO-8 with 12 TB.&lt;br /&gt;
&lt;br /&gt;
For our example, Debian has the static IP address &#039;10.20.1.59&#039;.&lt;br /&gt;
&lt;br /&gt;
The following instructions are performed in the Debian VM and are based on the [https://www.quadstor.com/vtlsupport/145-installation-on-rhel-centos-sles-debian.html official QUADStor documentation].&lt;br /&gt;
&lt;br /&gt;
# Install supporting packages:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::apt update&lt;br /&gt;
#::apt install uuid-runtime build-essential sg3-utils apache2 gzip xz-utils postgresql libpq-dev psmisc linux-headers-`uname -r`&lt;br /&gt;
#::a2enmod cgi&lt;br /&gt;
#::systemctl restart apache2&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Look up the current Debian package version number on the [https://www.quadstor.com/vtl-extended-edition-downloads.html QUADStor website] and set it as a variable. For example:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::version=3.0.79.15&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Download and install the package, this may take a while:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::wget -c https://www.quadstor.com/vtldownloads/quadstor-vtl-ext-$version-debian12-x86_64.deb&lt;br /&gt;
#::apt install ./quadstor-vtl-ext-$version-debian12-x86_64.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Run &amp;lt;code&amp;gt;systemctl enable --now quadstorvtl.service&amp;lt;/code&amp;gt; and wait for its completion to verify that no errors occur.&lt;br /&gt;
# Finally, reboot the VM: &amp;lt;code&amp;gt;reboot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now access the VTL configuration interface over HTTP using your web browser. In our example, we visit http://10.20.1.59.&lt;br /&gt;
&lt;br /&gt;
== Updating the QUADStor VTL and Debian ==&lt;br /&gt;
&lt;br /&gt;
If the VTL is used for a longer period of time, we recommend installing available updates on a regular basis.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Updating Debian &#039;&#039;&#039;&lt;br /&gt;
: For example, run &amp;lt;code&amp;gt;apt update&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;apt full-upgrade&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;reboot&amp;lt;/code&amp;gt;. If your Debian major version will not receive any more updates in the future, we recommend setting up a new VM and VTL for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Updating QUADStor VTL &#039;&#039;&#039;&lt;br /&gt;
: Run &amp;lt;code&amp;gt;apt remove quadstor-vtl-ext&amp;lt;/code&amp;gt; and follow the [[#Installing_the_QUADStor_VTL|installation section]] above, starting with step 2.&lt;br /&gt;
&lt;br /&gt;
== Configuring the VTL ==&lt;br /&gt;
&lt;br /&gt;
The following configurations are performed in the QUADStor web interface and are the minimum required ones. Details can be found in the [https://www.quadstor.com/vtl-documentation.html official QUADStor documentation].&lt;br /&gt;
&lt;br /&gt;
:1. Go to the tab &#039;Physical Storage&#039;&lt;br /&gt;
::The table should show the empty disk, click on &#039;Add&#039; and submit the &#039;Default&#039; &#039;Storage Pool&#039;.&lt;br /&gt;
&lt;br /&gt;
:2. Go to &#039;Device Definitions&#039;&lt;br /&gt;
::You need a &#039;Changer&#039; and &#039;Drive&#039; definition. Their exact properties should not be that important for our virtualization purpose. If in doubt, you can also download and import the templates [https://www.quadstor.com/uscripts/changer-definitions.txt changer-definitions.txt] and [https://www.quadstor.com/uscripts/drive-definitions.txt drive-definitions.txt] from https://www.quadstor.com/uscripts/.&lt;br /&gt;
&lt;br /&gt;
:3. Go to &#039;Virtual Libraries&#039;&lt;br /&gt;
::Add a Virtual Tape Library (VTL) by setting your desired properties. For example:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: 80px&amp;quot;&lt;br /&gt;
! Field !! Value !! Note&lt;br /&gt;
|-&lt;br /&gt;
| VTL Name || style=&amp;quot;text-align:right&amp;quot; | my-tape-lib ||&lt;br /&gt;
|-&lt;br /&gt;
| Changer Definition || style=&amp;quot;text-align:right&amp;quot; | IBM_3584 ||&lt;br /&gt;
|-&lt;br /&gt;
| Drive Definition || style=&amp;quot;text-align:right&amp;quot; | IBM_LTO1 || for example LTO1 to virtualize a capacity of 100 GB&lt;br /&gt;
|-&lt;br /&gt;
| Number of VDrives || style=&amp;quot;text-align:right&amp;quot; | 2 || concurrently usable tapes&lt;br /&gt;
|-&lt;br /&gt;
| Number of VSlots || style=&amp;quot;text-align:right&amp;quot; | 20 || to park tapes&lt;br /&gt;
|-&lt;br /&gt;
| Number of IE Ports || style=&amp;quot;text-align:right&amp;quot; | 4 || for tape import/export&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:4. Finally, click &#039;Add VCartridge&#039;&lt;br /&gt;
::Specify how many tapes should be inserted into the VSlots now (for example, 2). The &#039;Label/Prefix&#039; (for example, tape00) must have 6 characters, including a zero for the auto-numbering scheme.&lt;br /&gt;
&lt;br /&gt;
The newly created VTL can now be added to a Proxmox Backup Server instance.&lt;br /&gt;
&lt;br /&gt;
== Adding the VTL to Proxmox Backup Server ==&lt;br /&gt;
&lt;br /&gt;
The following commands must all be executed on the Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
=== Making devices available over iSCSI ===&lt;br /&gt;
&lt;br /&gt;
# Since the VTL will be added to Proxmox Backup Server via iSCSI, make sure that the open-iscsi package is installed:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;apt install open-iscsi&amp;lt;/pre&amp;gt;&lt;br /&gt;
# To automatically log in to the iSCSI targets on boot, carry out the following steps:&lt;br /&gt;
## open the iSCSI config (&amp;lt;code&amp;gt;editor /etc/iscsi/iscsid.conf&amp;lt;/code&amp;gt;) and change &amp;lt;code&amp;gt;node.startup = manual&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;node.startup = automatic&amp;lt;/code&amp;gt;&lt;br /&gt;
## then restart &amp;lt;code&amp;gt;iscsid&amp;lt;/code&amp;gt; by executing &amp;lt;code&amp;gt;systemctl restart open-iscsi.service&amp;lt;/code&amp;gt;&lt;br /&gt;
# Now discover the changer and drive iSCSI targets via &amp;lt;code&amp;gt;iscsiadm&amp;lt;/code&amp;gt;. Please do not forget to adapt the IP address if you chose a different one for your QUADStor VTL VM.&lt;br /&gt;
#:&amp;lt;pre&amp;gt;iscsiadm -m discovery -t st -p 10.20.1.59&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:The resulting output should look like this:&lt;br /&gt;
#::&amp;lt;pre&amp;gt;&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.autoloader&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive1&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive2&amp;lt;/pre&amp;gt;&lt;br /&gt;
# To populate &amp;lt;code&amp;gt;/dev/tape/&amp;lt;/code&amp;gt; with all discovered devices, run &amp;lt;code&amp;gt;iscsiadm -m discovery -l -p 10.20.1.59&amp;lt;/code&amp;gt;. Alternatively, you can also log in manually:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.autoloader&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive1&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding the Changer and Drives to Proxmox Backup Server ===&lt;br /&gt;
&lt;br /&gt;
In the web interface of your Proxmox Backup Server:&lt;br /&gt;
# Go to &#039;Tape Backup&#039; -&amp;gt; &#039;Changers&#039;&lt;br /&gt;
#: Click on &#039;Add&#039;, give the changer a name (for example, autoloader), and select its path in the drop-down list.&lt;br /&gt;
# Go to &#039;Tape Backup&#039; -&amp;gt; &#039;Drives&#039;&lt;br /&gt;
## Click on &#039;Add&#039;, give the drive a name (for example, drive1), select the changer and keep the &#039;Drive Number&#039; &#039;0&#039;. The correct &#039;Path&#039; can be chosen by comparing the serial numbers with those in the QUADStor web interface, under &#039;Virtual Libraries&#039;.&lt;br /&gt;
## When adding a second drive, proceed with &#039;Drive Number&#039; &#039;1&#039;.&lt;br /&gt;
&lt;br /&gt;
The VTL can now be used like a normal library in Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOW-TO]]&lt;/div&gt;</summary>
		<author><name>A.zeidler</name></author>
	</entry>
	<entry>
		<id>https://pbs.proxmox.com/mediawiki/index.php?title=Installing_a_Virtual_Tape_Library&amp;diff=132</id>
		<title>Installing a Virtual Tape Library</title>
		<link rel="alternate" type="text/html" href="https://pbs.proxmox.com/mediawiki/index.php?title=Installing_a_Virtual_Tape_Library&amp;diff=132"/>
		<updated>2024-08-13T13:37:21Z</updated>

		<summary type="html">&lt;p&gt;A.zeidler: /* Installing the QUADStor VTL */ Describe the VTL download/install steps in a less static way. Also because only the latest version is available for download.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Proxmox Backup Server includes support for tape backup, allowing you to save &#039;Datastores&#039; to tape, and manage tape libraries and tape pools.&lt;br /&gt;
&lt;br /&gt;
Since testing backup and restore with real tape hardware takes a lot of time, it can be a good idea to use a faster Virtual Tape Library (VTL) for evaluation and for testing&lt;br /&gt;
of the correct allocation and retention policies matching your use case.&lt;br /&gt;
&lt;br /&gt;
One example of such a VTL is the [https://www.quadstor.com/virtual-tape-library.html QUADStor VTL].&lt;br /&gt;
This tutorial will guide you through the installation and configuration of a QUADStor VTL, and also show you how to integrate it into Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
== Installing the QUADStor VTL ==&lt;br /&gt;
&lt;br /&gt;
This tutorial assumes the use of an offical [https://www.debian.org/ Debian] 12 (Bookworm), for example, running as a virtual machine on a Proxmox VE host.&lt;br /&gt;
&lt;br /&gt;
Two disks are needed. One for the Debian OS installation (for example 16 GiB), and a larger one to store virtual tapes on it. A disk of at least 220 GiB allows you to fully utilize the capacity of two LTO-1 (100 GB) tapes. While real LTO-1 is not [https://pbs.proxmox.com/docs/tape-backup.html#supported-hardware supported hardware] by Proxmox Backup Server, it is still convenient for testing purposes due to its low capacity, compared to modern types like LTO-8 with 12 TB.&lt;br /&gt;
&lt;br /&gt;
For our example, Debian has the static IP address &#039;10.20.1.59&#039;.&lt;br /&gt;
&lt;br /&gt;
The following instructions are performed in the Debian VM and are based on the [https://www.quadstor.com/vtlsupport/145-installation-on-rhel-centos-sles-debian.html official QUADStor documentation].&lt;br /&gt;
&lt;br /&gt;
# Install supporting packages:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::apt update&lt;br /&gt;
#::apt install uuid-runtime build-essential sg3-utils apache2 gzip xz-utils postgresql libpq-dev psmisc linux-headers-`uname -r`&lt;br /&gt;
#::a2enmod cgi&lt;br /&gt;
#::systemctl restart apache2&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Look up the current Debian package version number on the [https://www.quadstor.com/vtl-extended-edition-downloads.html QUADStor website] and set it as a variable. For example:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::version=3.0.79.15&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Download and install the package, this may take a while:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::wget -c https://www.quadstor.com/vtldownloads/quadstor-vtl-ext-$version-debian12-x86_64.deb&lt;br /&gt;
#::apt install ./quadstor-vtl-ext-$version-debian12-x86_64.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Run &amp;lt;code&amp;gt;systemctl enable --now quadstorvtl.service&amp;lt;/code&amp;gt; and wait for its completion to verify that no errors occur.&lt;br /&gt;
# Finally, reboot the VM: &amp;lt;code&amp;gt;reboot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now access the VTL configuration interface over HTTP using your web browser. In our example, we visit http://10.20.1.59.&lt;br /&gt;
&lt;br /&gt;
== Configuring the VTL ==&lt;br /&gt;
&lt;br /&gt;
The following configurations are performed in the QUADStor web interface and are the minimum required ones. Details can be found in the [https://www.quadstor.com/vtl-documentation.html official QUADStor documentation].&lt;br /&gt;
&lt;br /&gt;
:1. Go to the tab &#039;Physical Storage&#039;&lt;br /&gt;
::The table should show the empty disk, click on &#039;Add&#039; and submit the &#039;Default&#039; &#039;Storage Pool&#039;.&lt;br /&gt;
&lt;br /&gt;
:2. Go to &#039;Device Definitions&#039;&lt;br /&gt;
::You need a &#039;Changer&#039; and &#039;Drive&#039; definition. Their exact properties should not be that important for our virtualization purpose. If in doubt, you can also download and import the templates [https://www.quadstor.com/uscripts/changer-definitions.txt changer-definitions.txt] and [https://www.quadstor.com/uscripts/drive-definitions.txt drive-definitions.txt] from https://www.quadstor.com/uscripts/.&lt;br /&gt;
&lt;br /&gt;
:3. Go to &#039;Virtual Libraries&#039;&lt;br /&gt;
::Add a Virtual Tape Library (VTL) by setting your desired properties. For example:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: 80px&amp;quot;&lt;br /&gt;
! Field !! Value !! Note&lt;br /&gt;
|-&lt;br /&gt;
| VTL Name || style=&amp;quot;text-align:right&amp;quot; | my-tape-lib ||&lt;br /&gt;
|-&lt;br /&gt;
| Changer Definition || style=&amp;quot;text-align:right&amp;quot; | IBM_3584 ||&lt;br /&gt;
|-&lt;br /&gt;
| Drive Definition || style=&amp;quot;text-align:right&amp;quot; | IBM_LTO1 || for example LTO1 to virtualize a capacity of 100 GB&lt;br /&gt;
|-&lt;br /&gt;
| Number of VDrives || style=&amp;quot;text-align:right&amp;quot; | 2 || concurrently usable tapes&lt;br /&gt;
|-&lt;br /&gt;
| Number of VSlots || style=&amp;quot;text-align:right&amp;quot; | 20 || to park tapes&lt;br /&gt;
|-&lt;br /&gt;
| Number of IE Ports || style=&amp;quot;text-align:right&amp;quot; | 4 || for tape import/export&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:4. Finally, click &#039;Add VCartridge&#039;&lt;br /&gt;
::Specify how many tapes should be inserted into the VSlots now (for example, 2). The &#039;Label/Prefix&#039; (for example, tape00) must have 6 characters, including a zero for the auto-numbering scheme.&lt;br /&gt;
&lt;br /&gt;
The newly created VTL can now be added to a Proxmox Backup Server instance.&lt;br /&gt;
&lt;br /&gt;
== Adding the VTL to Proxmox Backup Server ==&lt;br /&gt;
&lt;br /&gt;
The following commands must all be executed on the Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
=== Making devices available over iSCSI ===&lt;br /&gt;
&lt;br /&gt;
# Since the VTL will be added to Proxmox Backup Server via iSCSI, make sure that the open-iscsi package is installed:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;apt install open-iscsi&amp;lt;/pre&amp;gt;&lt;br /&gt;
# To automatically log in to the iSCSI targets on boot, carry out the following steps:&lt;br /&gt;
## open the iSCSI config (&amp;lt;code&amp;gt;editor /etc/iscsi/iscsid.conf&amp;lt;/code&amp;gt;) and change &amp;lt;code&amp;gt;node.startup = manual&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;node.startup = automatic&amp;lt;/code&amp;gt;&lt;br /&gt;
## then restart &amp;lt;code&amp;gt;iscsid&amp;lt;/code&amp;gt; by executing &amp;lt;code&amp;gt;systemctl restart open-iscsi.service&amp;lt;/code&amp;gt;&lt;br /&gt;
# Now discover the changer and drive iSCSI targets via &amp;lt;code&amp;gt;iscsiadm&amp;lt;/code&amp;gt;. Please do not forget to adapt the IP address if you chose a different one for your QUADStor VTL VM.&lt;br /&gt;
#:&amp;lt;pre&amp;gt;iscsiadm -m discovery -t st -p 10.20.1.59&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:The resulting output should look like this:&lt;br /&gt;
#::&amp;lt;pre&amp;gt;&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.autoloader&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive1&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive2&amp;lt;/pre&amp;gt;&lt;br /&gt;
# To populate &amp;lt;code&amp;gt;/dev/tape/&amp;lt;/code&amp;gt; with all discovered devices, run &amp;lt;code&amp;gt;iscsiadm -m discovery -l -p 10.20.1.59&amp;lt;/code&amp;gt;. Alternatively, you can also log in manually:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.autoloader&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive1&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding the Changer and Drives to Proxmox Backup Server ===&lt;br /&gt;
&lt;br /&gt;
In the web interface of your Proxmox Backup Server:&lt;br /&gt;
# Go to &#039;Tape Backup&#039; -&amp;gt; &#039;Changers&#039;&lt;br /&gt;
#: Click on &#039;Add&#039;, give the changer a name (for example, autoloader), and select its path in the drop-down list.&lt;br /&gt;
# Go to &#039;Tape Backup&#039; -&amp;gt; &#039;Drives&#039;&lt;br /&gt;
## Click on &#039;Add&#039;, give the drive a name (for example, drive1), select the changer and keep the &#039;Drive Number&#039; &#039;0&#039;. The correct &#039;Path&#039; can be chosen by comparing the serial numbers with those in the QUADStor web interface, under &#039;Virtual Libraries&#039;.&lt;br /&gt;
## When adding a second drive, proceed with &#039;Drive Number&#039; &#039;1&#039;.&lt;br /&gt;
&lt;br /&gt;
The VTL can now be used like a normal library in Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOW-TO]]&lt;/div&gt;</summary>
		<author><name>A.zeidler</name></author>
	</entry>
	<entry>
		<id>https://pbs.proxmox.com/mediawiki/index.php?title=Installing_a_Virtual_Tape_Library&amp;diff=131</id>
		<title>Installing a Virtual Tape Library</title>
		<link rel="alternate" type="text/html" href="https://pbs.proxmox.com/mediawiki/index.php?title=Installing_a_Virtual_Tape_Library&amp;diff=131"/>
		<updated>2024-08-05T09:25:54Z</updated>

		<summary type="html">&lt;p&gt;A.zeidler: General overhaul of the article&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Proxmox Backup Server includes support for tape backup, allowing you to save &#039;Datastores&#039; to tape, and manage tape libraries and tape pools.&lt;br /&gt;
&lt;br /&gt;
Since testing backup and restore with real tape hardware takes a lot of time, it can be a good idea to use a faster Virtual Tape Library (VTL) for evaluation and for testing&lt;br /&gt;
of the correct allocation and retention policies matching your use case.&lt;br /&gt;
&lt;br /&gt;
One example of such a VTL is the [https://www.quadstor.com/virtual-tape-library.html QUADStor VTL].&lt;br /&gt;
This tutorial will guide you through the installation and configuration of a QUADStor VTL, and also show you how to integrate it into Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
== Installing the QUADStor VTL ==&lt;br /&gt;
&lt;br /&gt;
This tutorial assumes the use of an offical [https://www.debian.org/ Debian] 12 (Bookworm), for example, running as a virtual machine on a Proxmox VE host.&lt;br /&gt;
&lt;br /&gt;
Two disks are needed. One for the Debian OS installation (for example 16 GiB), and a larger one to store virtual tapes on it. A disk of at least 220 GiB allows you to fully utilize the capacity of two LTO-1 (100 GB) tapes. While real LTO-1 is not [https://pbs.proxmox.com/docs/tape-backup.html#supported-hardware supported hardware] by Proxmox Backup Server, it is still convenient for testing purposes due to its low capacity, compared to modern types like LTO-8 with 12 TB.&lt;br /&gt;
&lt;br /&gt;
For our example, Debian has the static IP address &#039;10.20.1.59&#039;.&lt;br /&gt;
&lt;br /&gt;
The following instructions are performed in the Debian VM and are based on the [https://www.quadstor.com/vtlsupport/145-installation-on-rhel-centos-sles-debian.html official QUADStor documentation].&lt;br /&gt;
&lt;br /&gt;
# Install supporting packages:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::apt update&lt;br /&gt;
#::apt install uuid-runtime build-essential sg3-utils apache2 gzip xz-utils postgresql libpq-dev psmisc linux-headers-`uname -r`&lt;br /&gt;
#::a2enmod cgi&lt;br /&gt;
#::systemctl restart apache2&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Download and install the VTL package, which can take a while:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::wget -c https://www.quadstor.com/vtldownloads/quadstor-vtl-ext-3.0.79.15-debian12-x86_64.deb&lt;br /&gt;
#::apt install ./quadstor-vtl-ext-3.0.79.15-debian12-x86_64.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Run &amp;lt;code&amp;gt;systemctl enable --now quadstorvtl.service&amp;lt;/code&amp;gt; and wait for its completion to verify that no errors occur.&lt;br /&gt;
# Finally, reboot the VM: &amp;lt;code&amp;gt;reboot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can now access the VTL configuration interface over HTTP using your web browser. In our example, we visit http://10.20.1.59.&lt;br /&gt;
&lt;br /&gt;
== Configuring the VTL ==&lt;br /&gt;
&lt;br /&gt;
The following configurations are performed in the QUADStor web interface and are the minimum required ones. Details can be found in the [https://www.quadstor.com/vtl-documentation.html official QUADStor documentation].&lt;br /&gt;
&lt;br /&gt;
:1. Go to the tab &#039;Physical Storage&#039;&lt;br /&gt;
::The table should show the empty disk, click on &#039;Add&#039; and submit the &#039;Default&#039; &#039;Storage Pool&#039;.&lt;br /&gt;
&lt;br /&gt;
:2. Go to &#039;Device Definitions&#039;&lt;br /&gt;
::You need a &#039;Changer&#039; and &#039;Drive&#039; definition. Their exact properties should not be that important for our virtualization purpose. If in doubt, you can also download and import the templates [https://www.quadstor.com/uscripts/changer-definitions.txt changer-definitions.txt] and [https://www.quadstor.com/uscripts/drive-definitions.txt drive-definitions.txt] from https://www.quadstor.com/uscripts/.&lt;br /&gt;
&lt;br /&gt;
:3. Go to &#039;Virtual Libraries&#039;&lt;br /&gt;
::Add a Virtual Tape Library (VTL) by setting your desired properties. For example:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: 80px&amp;quot;&lt;br /&gt;
! Field !! Value !! Note&lt;br /&gt;
|-&lt;br /&gt;
| VTL Name || style=&amp;quot;text-align:right&amp;quot; | my-tape-lib ||&lt;br /&gt;
|-&lt;br /&gt;
| Changer Definition || style=&amp;quot;text-align:right&amp;quot; | IBM_3584 ||&lt;br /&gt;
|-&lt;br /&gt;
| Drive Definition || style=&amp;quot;text-align:right&amp;quot; | IBM_LTO1 || for example LTO1 to virtualize a capacity of 100 GB&lt;br /&gt;
|-&lt;br /&gt;
| Number of VDrives || style=&amp;quot;text-align:right&amp;quot; | 2 || concurrently usable tapes&lt;br /&gt;
|-&lt;br /&gt;
| Number of VSlots || style=&amp;quot;text-align:right&amp;quot; | 20 || to park tapes&lt;br /&gt;
|-&lt;br /&gt;
| Number of IE Ports || style=&amp;quot;text-align:right&amp;quot; | 4 || for tape import/export&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:4. Finally, click &#039;Add VCartridge&#039;&lt;br /&gt;
::Specify how many tapes should be inserted into the VSlots now (for example, 2). The &#039;Label/Prefix&#039; (for example, tape00) must have 6 characters, including a zero for the auto-numbering scheme.&lt;br /&gt;
&lt;br /&gt;
The newly created VTL can now be added to a Proxmox Backup Server instance.&lt;br /&gt;
&lt;br /&gt;
== Adding the VTL to Proxmox Backup Server ==&lt;br /&gt;
&lt;br /&gt;
The following commands must all be executed on the Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
=== Making devices available over iSCSI ===&lt;br /&gt;
&lt;br /&gt;
# Since the VTL will be added to Proxmox Backup Server via iSCSI, make sure that the open-iscsi package is installed:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;apt install open-iscsi&amp;lt;/pre&amp;gt;&lt;br /&gt;
# To automatically log in to the iSCSI targets on boot, carry out the following steps:&lt;br /&gt;
## open the iSCSI config (&amp;lt;code&amp;gt;editor /etc/iscsi/iscsid.conf&amp;lt;/code&amp;gt;) and change &amp;lt;code&amp;gt;node.startup = manual&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;node.startup = automatic&amp;lt;/code&amp;gt;&lt;br /&gt;
## then restart &amp;lt;code&amp;gt;iscsid&amp;lt;/code&amp;gt; by executing &amp;lt;code&amp;gt;systemctl restart open-iscsi.service&amp;lt;/code&amp;gt;&lt;br /&gt;
# Now discover the changer and drive iSCSI targets via &amp;lt;code&amp;gt;iscsiadm&amp;lt;/code&amp;gt;. Please do not forget to adapt the IP address if you chose a different one for your QUADStor VTL VM.&lt;br /&gt;
#:&amp;lt;pre&amp;gt;iscsiadm -m discovery -t st -p 10.20.1.59&amp;lt;/pre&amp;gt;&lt;br /&gt;
#:The resulting output should look like this:&lt;br /&gt;
#::&amp;lt;pre&amp;gt;&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.autoloader&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive1&lt;br /&gt;
#:::10.20.1.59:3260,1 iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive2&amp;lt;/pre&amp;gt;&lt;br /&gt;
# To populate &amp;lt;code&amp;gt;/dev/tape/&amp;lt;/code&amp;gt; with all discovered devices, run &amp;lt;code&amp;gt;iscsiadm -m discovery -l -p 10.20.1.59&amp;lt;/code&amp;gt;. Alternatively, you can also log in manually:&lt;br /&gt;
#:&amp;lt;pre&amp;gt;&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.autoloader&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive1&lt;br /&gt;
#::iscsiadm -m node -l --targetname iqn.2006-06.com.quadstor.vtl.my-tape-lib.drive2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding the Changer and Drives to Proxmox Backup Server ===&lt;br /&gt;
&lt;br /&gt;
In the web interface of your Proxmox Backup Server:&lt;br /&gt;
# Go to &#039;Tape Backup&#039; -&amp;gt; &#039;Changers&#039;&lt;br /&gt;
#: Click on &#039;Add&#039;, give the changer a name (for example, autoloader), and select its path in the drop-down list.&lt;br /&gt;
# Go to &#039;Tape Backup&#039; -&amp;gt; &#039;Drives&#039;&lt;br /&gt;
## Click on &#039;Add&#039;, give the drive a name (for example, drive1), select the changer and keep the &#039;Drive Number&#039; &#039;0&#039;. The correct &#039;Path&#039; can be chosen by comparing the serial numbers with those in the QUADStor web interface, under &#039;Virtual Libraries&#039;.&lt;br /&gt;
## When adding a second drive, proceed with &#039;Drive Number&#039; &#039;1&#039;.&lt;br /&gt;
&lt;br /&gt;
The VTL can now be used like a normal library in Proxmox Backup Server.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOW-TO]]&lt;/div&gt;</summary>
		<author><name>A.zeidler</name></author>
	</entry>
</feed>