> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/getting-started/getting-started-with-tina/create-a-storage/tape-storage/drivers.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Drivers

## Concepts

The introductory topics [<mark style="color:blue;">Definitions and Notes</mark>](#definitions-and-notes)<mark style="color:blue;">,</mark> [<mark style="color:blue;">Partitioned Libraries,</mark>](#partitioned-libraries) [<mark style="color:blue;">Passthru Drivers</mark> ](#passthru-drivers)<mark style="color:$primary;">and</mark> [<mark style="color:blue;">Frequently Asked Questions</mark> ](#frequently-asked-questions)present several useful concepts for understanding and using Tina drivers. They cover in particular library partitioning, which lets several catalogs use the same library, as well as the passthru driver principle, which lets you interface certain devices depending on the operating system.

> **Important** : The procedures and steps described in this guide often require system super-user rights. Log in as `root` or as an administrator, depending on your system. Be careful when performing these actions, as modifying certain files can damage your system.

> **Important** : Even though the new Web admin console lets you perform most Tina operations, references to the old Web Interface may still appear in this guide. These sections will be updated gradually in upcoming versions of Tina.

### Definitions and Notes

#### Libraries

A library, or robot, is a device designed to manage storage media such as tapes or optical disks.

A library generally contains these elements:

* **Slots**. Storage locations for media.
* **Drives**. Devices that read and write media.
* **Mailbox slots**. Special locations used to insert or remove media from the library.
* **One or more pickers**. Automated arms that move media between slots, drives, and mailboxes.

The Tina automated backup solution manages libraries through a specific driver: the `qc` library driver. You therefore do not need to manage media manually. The `qc` driver can be a kernel driver, for example on AIX, or it can rely on the operating system's passthru driver, for example on Linux.\
On some systems, Tina uses the system's native passthru drivers.

#### Drives

A drive is a device that reads and writes media. The main types are tape drives, magneto-optical drives, and virtual disk drives. Only tape drives and magneto-optical drives require a driver.

For Tina to use a drive correctly, it must meet these conditions:

* When the option exists, the drive must be configured in **no-rewind** mode.
* On Unix systems, the drive's block size must be variable.

### Partitioned Libraries

You can partition a physical library into several logical libraries.

A physical library is characterized by three types of components:

* **Drives**. Numbered from `0` to `n-1` for `n` drives.
* **Slots**. Numbered from `0` to `n-1` for `n` slots.
* **Mailboxes**.

Only drives and slots can be assigned to a logical library.

#### Partitioning Syntax

Here is the partitioning syntax:\
`(lecteurs|slots)(lecteurs|slots)...`\
Where: `(lecteurs|slots)` represents a logical library.\
`lecteurs` corresponds to the drive number(s) assigned to the logical libraries.\
`slots` corresponds to the slot numbers assigned to the logical libraries.

Syntax rules:

* Items in a list are separated by a comma `,`.
* The start and end of a range are separated by a hyphen `-`.
* Mailboxes are shared implicitly and do not appear in the partitioning definition.
* Spaces and tabs are allowed.
* The elements of a logical library must be sorted in ascending order.

> **Important** : A component of a physical library can be assigned to only one logical library. However, Tina Library Sharing Manager lets you share drives between several logical libraries. In this case, you can assign the same drive to several logical libraries.

For more information about drive sharing, see the topic on managing concurrent access to shared drives in the Tina administration documentation.

**Example**.\ <kbd>....qc\_split=(0|0-5)(1,2|6-17, 20)</kbd> represents two logical libraries.\
The first uses drive `0` and six slots, from `0` to `5`.\
The second uses drives `1` and `2`, as well as thirteen slots, from `6` to `17` and slot `20`.

> **Note** : You can define up to 16 logical libraries per physical library.

### Passthru Drivers

A passthru driver is a native operating system driver that enables communication between a user process and a controller driver. It receives requests from the user process and forwards them to the controller. It thus ensures communication between a user process and a device.

A specific driver interprets and structures requests into SCSI commands before sending them, whereas a passthru driver only forwards requests that are already structured. It is therefore the user process that structures the requests. Passthru drivers do not interpret commands. They simply forward them.

For libraries or optical disks used by Tina, the passthru driver receives SCSI instructions from Tina via an API and forwards them to the SCSI controller driver, which then decodes them to drive the controller connected to the device.\
This image illustrates the passthru driver:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-41deaf31b5d26f25f2498441610c4678a692a5e8%2Fimage%20(412).png?alt=media" alt=""><figcaption></figcaption></figure>

### Frequently Asked Questions

#### Is My SCSI Device Supported by Tina Drivers?

These commands, depending on the operating system, let you get a result.

* On IBM AIX, run this command:\ <kbd>#strings | grep \<device\_inquiry></kbd>
* On other UNIX systems, run this command:\ <kbd>#strings | grep \<device\_inquiry></kbd>
* On Windows, run this command:\ <kbd>c:> find "\<device\_inquiry>" qcdiag</kbd>

## Windows

This section covers the Windows operating system. System-specific information is indicated where necessary.

> **Note** : See the [Compatibility Guide](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/version-information/compatibility-guide.md) for more information about supported operating systems.

### Managing Tape Library Devices

Two issues can occur:

* The device may not appear in the registry because the system hides the key, as it does not recognize the device.
* Tina does not support vendor drivers for tape libraries. If a tape library is not recognized as `unknown medium changer`, you must update it to this type.

For both cases, follow this procedure:

1. Select **Start** > **Administrative Tools** > **Computer Management**.
2. Select **Device Manager** in the left pane.
3. Expand the **Medium changer** tree in the right pane.
4. Right-click the unrecognized device, then click **Properties**.
5. Open the **Driver** tab, click **Update driver**, then click **Next**.
6. Select **Display a list of the known drivers for this device so that I can choose a specific driver**, then click **Next**.
7. Select **Other device**, then click **Next**.
8. Select **Unknown Medium Changer device** from the list, then click **Next**.
9. Click **Next** in the warning window.
10. Click **Finish**.

### Managing Tape Drives

Check that the devices are fully recognized by the operating system and have a working driver.

1. Select **Start** > **Administrative Tools** > **Computer Management**.
2. Select **Device Manager** in the left pane.
3. Expand the **Tape drives** tree in the right pane.
4. Check that all tape drives appear in this tree, without an exclamation mark.

{% hint style="info" %}
If some tape drives are not recognized, update their driver.

If Windows does not support the drive natively, contact the drive manufacturer.
{% endhint %}

### Enabling Persistent Naming

1. Click **Start** > **Run**, type `regedit`, then click **OK**.
2. Locate and select the following registry subkey: `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Tape`
3. Select **Edit** > **New** > **DWORD Value**.
4. Type `Persistence`, then press **Enter**.
5. Right-click the **Persistence** registry entry, then click **Modify**.
6. Type `1` in the **Value data** field, then click **OK**.
7. Exit the registry editor.
8. Restart the computer.

### Verifying Device Detection Managed by Tina

The `devdrvconfig.exe` binary is used by Tina to detect devices.

**Example**

<kbd>:>devdrvconfig.exe</kbd> \ <kbd>Version=1.0</kbd>

<kbd>Device Type=Tape drive</kbd> \ <kbd>Device Descriptor=Tape0</kbd> \ <kbd>Configured=Yes</kbd> \ <kbd>Vendor Identification=HP</kbd> \ <kbd>Product Identification=Ultrium 2-SCSI</kbd> \ <kbd>Product Revision Level=kn77</kbd> \ <kbd>Tape Drive Serial Number=HU123456P3</kbd> \ <kbd>Number of Tina drive type for this device=1</kbd> \ <kbd>Tina type value for this drive=44</kbd>

<kbd>Device Type=Medium changer</kbd> \ <kbd>Device Descriptor=spt\_c7b0t1l0</kbd> \ <kbd>Configured=No</kbd> \ <kbd>Vendor Identification=HP</kbd> \ <kbd>Product Identification=1x8 G2 AUTOLDR</kbd> \ <kbd>Product Revision Level=kn77</kbd> \ <kbd>Library Serial Number=HU123456P7</kbd> \ <kbd>Number of slots=8</kbd> \ <kbd>Number of drives=1</kbd> \ <kbd>Number of mailbox slots=1</kbd> \ <kbd>Drives Serialization=Yes</kbd> \ <kbd>Serial number for drive index0=HU123456P3</kbd> \ <kbd>Number of Tina library type for this device=1</kbd> \ <kbd>Tina type value for this library=240</kbd> \ <kbd>Split=No</kbd>

### Manually Configuring Tape Library Devices for Tina

This configuration must be done before declaring anything in the Tina Web admin console.\
It creates or updates configuration files, one per library, in the <kbd>C:\conf\_drv</kbd> directory.

<kbd>:> devdrvconfig.exe -c mc</kbd> \ <kbd>Serial number HU123456P7 should be configured</kbd> \ <kbd>Configuring Serial number HU123456P7</kbd> \ <kbd>Configuration file C:\conf\_drv\c7b0t1l0.conf created.</kbd> \ <kbd>Device Type=Medium changer</kbd> \ <kbd>Device Descriptor=spt\_c7b0t1l0</kbd> \ <kbd>Configured=Yes</kbd> \ <kbd>OS Device Path=\\.\scsi7:</kbd> \ <kbd>OS SPT Device Path=\\.\scsi7:</kbd> \ <kbd>Vendor Identification=HP</kbd> \ <kbd>Product Identification=1x8 G2 AUTOLDR</kbd> \ <kbd>Product Revision Level=kn77</kbd> \ <kbd>Library Serial Number=HU123456P7</kbd> \ <kbd>Number of slots=8</kbd> \ <kbd>Number of drives=1</kbd> \ <kbd>Number of mailbox slots=1</kbd> \ <kbd>Drives Serialization=Yes</kbd> \ <kbd>Serial number for drive index0=HU123456P3</kbd> \ <kbd>Number of Tina library type for this device=1</kbd> \ <kbd>Tina type value for this library=240</kbd> \ <kbd>Tina type name for this library=HP StorageWorks 1x8 G2</kbd> \ <kbd>Split=No</kbd>

<kbd>C:></kbd>

### Manual Configuration in the Time Navigator Web Administration

When you manually declare devices in the Tina Web admin console, the **device descriptor** field must match the value provided by the `devdrvconfig.exe` binary.\
**Example**.\ <kbd>Device Descriptor=Tape0 (for a tape drive)</kbd> \ <kbd>Device Descriptor=spt\_c7b0t1l0 (for a tape library)</kbd>

## Linux

This section covers Linux systems. System-specific information is indicated where necessary.

> **Note** : See the [Compatibility Guide](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/version-information/compatibility-guide.md) for more information about supported operating systems.

### Kernel Requirements

The Linux kernel must enable these features:

* Support for loadable modules
* SCSI support
* SCSI tape support
* generic SCSI support

### Useful Commands

Useful commands depend on the operating system being used. For example, for a machine running RedHat, here are some commands:

* **List all detected SCSI devices**: <kbd>cat /proc/scsi/scsi</kbd>
* **List all loaded modules**: <kbd>/sbin/lsmod</kbd> or <kbd>cat /proc/modules</kbd>
* **Display the latest kernel messages**: <kbd>dmesg</kbd>
* **Display all messages:** <kbd>cat /var/log/messages</kbd>

For more information, go to the [Command line page.](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/deployment/command-line.md)

### Library Driver

#### Manual Procedures

**Usage**

To probe all SCSI devices of type medium changer:

<kbd>devdrvconfig -s mc</kbd>

To configure all SCSI devices of type medium changer:

<kbd>devdrvconfig -c mc</kbd>

To remove all SCSI devices of type medium changer:

<kbd>devdrvconfig -d mc</kbd>

Use `devdrvconfig -h` to display all available options.

**Library-Specific Configuration**

The configuration file contains lines in the `key = value` format. The useful string parameters are `emulate` and `split`.

Possible options:

* `emulate = ""` — corresponds to the inquiry of a known library with the same behavior. Useful for an unknown library. The default value is empty.
* `split = ""` — indicates how to partition the library into several logical libraries. The default value is empty. The syntax is: `(drives|slots)(drives|slots)...`

Syntax reminders:

* The separator is `,`
* A range is represented by `-`
* The mailbox is shared, so nothing needs to be specified
* Spaces and tabs are allowed
* Use ascending order

**Example of a Partitioned Library that Emulates a Scalar i500**

File `/etc/conf_drv/qc0.conf`:

```
# Begin Time Navigator setup
# Auto generated data, do not modify !
Device Type = Medium changer
Device Logical Name = qc0
Device path = /dev/tape/by-id/scsi-1234567-changer
Serial Number = 11011219
Vendor Identification = DELL
Product Identification = ML6000Product Revision Level = 1.00
# End of auto generated data
# Parameters
# debug = 0 or 1 or 2
# split = split-infosplit = (0,1|1-5)(0,1|8-10)
# emulate = inquiryemulate = "Scalar i500"
# See qc driver documentation# End Time Navigator setup
```

### Tape Drive

Example of tape drives detected by Time Navigator.

```
# devdrvconfig -s tape
evice Type=Tape drive
Device Descriptor=/dev/tape/by-id/scsi-32004000e11802379-nst
Configured=Not available
OS Device Path=/dev/tape/by-id/scsi-32004000e11802379-nst
OS SPT Device Path=/dev/tape/by-id/scsi-32004000e11802379-nst
Vendor Identification=IBM
Product Identification=ULT3580-HH5
Product Revision Level=D2AD
Tape Drive Serial Number=1068017011
Number of Tina drive type for this device=1
Tina type value for this drive=82
===================
Device Type=Tape drive
Device Descriptor=/dev/tape/by-id/scsi-3500104f000b93002-nst
Configured=Not available
OS Device Path=/dev/tape/by-id/scsi-3500104f000b93002-nst
OS SPT Device Path=/dev/tape/by-id/scsi-3500104f000b93002-nst
Vendor Identification=IBM
Product Identification=ULTRIUM-TD4
Product Revision Level=94D7
Tape Drive Serial Number=1310199174
Number of Tina drive type for this device=1
Tina type value for this drive=71
===================
Device Type=Tape drive
Device Descriptor=/dev/tape/by-id/scsi-3500104f000b93005-nst
Configured=Not available
OS Device Path=/dev/tape/by-id/scsi-3500104f000b93005-nst
OS SPT Device Path=/dev/tape/by-id/scsi-3500104f000b93005-nst
Vendor Identification=IBM
Product Identification=ULTRIUM-TD4
Product Revision Level=94D7
Tape Drive Serial Number=1310198365
Number of Tina drive type for this device=1
Tina type value for this drive=71
===================
#

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/getting-started/getting-started-with-tina/create-a-storage/tape-storage/drivers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
