> 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/miria-4.6/admin-guide/deployment/installing-media-manager.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Installing Media Manager

Media Manager is an optional component that you can install with Miria.

## Installation prerequisites

Before you install Media Manager, ensure to meet these prerequisites:

* You must install libraries and/or drives and declare them in the operating systems of the machines physically connected to the devices.
* You must perform SAN zoning before you install Media Manager components.

{% hint style="info" %}
**Ensure that SAN/TAPE and SAN/DISK are in different SAN zones**.
{% endhint %}

* **Windows**.
  * Update the library drivers.
  * Stop the Removable Storage Windows (<kbd>NtmsSvc</kbd>) service.\
    If this service is started, some conflicts may occur for media access.

## Windows Library Drivers Update

On a Windows system, before configuring a library, you must update the system driver to avoid any detection issue. The only system driver supported is Unknown Medium Changer.

> **Important**: If the Windows Update program suggests a Hardware Update and you select the option to update the library driver, this will restore the vendor driver and undo the corrective process described above. Media Manager will then no longer work until you reset the library driver to Unknown Medium Changer.

**To update the system driver**

1. From the **Windows Desktop**, right-click **My Computer** and select **Manage**. The Computer Management window appears (<mark style="color:blue;">Figure 2</mark>).

   <figure><img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FXO8MwAXLs6p7ax2EXYbb%2Fimage.png?alt=media&amp;token=0ed7688f-8158-48d8-814b-dcec025b16a0" alt=""><figcaption></figcaption></figure>
2. On the left pane, expand the **System Tools node,** then click **Device Manager.**
3. On the right pane, double-click **Medium Changer devices.**
4. Ensure that no library vendor driver is configured for libraries. Unknown Medium Changer must be the only driver under the Medium Changers node. If vendor drivers are listed, remove them. In the sample screen, you must remove the <kbd>Dell ML6000 Tape Library.</kbd>
5. Right-click the vendor driver and select Update Driver Software to open the wizard.
6. In the Welcome screen, click **Browse my computer for driver software.**
7. In the Search screen, click **Let me pick from a list of device drivers on my computer.**
8. In the Device Selection screen, select Show Compatible Hardware and select Unknown Medium Changer from the list of compatible hardware, then click Next.
9. Exit the wizard.

## Advanced Path Failover Feature of IBM Driver

The Advanced Path Failover of IBM driver is the ability to switch automatically to the standby optical fiber cable in case of primary cable failure.\
This driver is only supported in the SFMP mode (called "join driver").\
If your driver wasn't installed in this particular mode, then it needs to be uninstalled and reinstalled as SFMP driver. Refer to the "IBM Tape Device Drivers Installation and User's Guide" documentation to uninstall the driver.

### Typical SFMP driver installation on Linux

**To install the driver for path failover**

1. Obtain the following packages from IBM website based on your Linux flavor
   1. lin\_tape-1.x.x.x.0-1-src.rpm
   2. lin\_taped-1.x.x.x.0-1.rpm
2. Run the command: rpmbuild --rebuild -with sfmp lin\_tape-1.x.x.x.0-1.src.rpm ... Write: /usr/src/redhat/RPMS/i386/lin\_tape-1.x.x.x.0-1.i386.rpm ...
3. Edit or create the file "/etc/modprobe.d/lin\_tape.conf " and add both lines : options lin\_tape alternate\_pathing=1 options lin\_tape lin\_tape\_as\_sfmp=1
4. Install the rpms: rpm -ivh /usr/src/redhat/RPMS/i386/lin\_tape-1.x.x.x.0-1.i386.rpm rpm -ivh lin\_taped-1.x.x.x.0-1.rpm 3 modules should then be loaded :
   1. lsmod
   2. ...
   3. pfo
   4. sgmp
   5. stmp ...
5. The installation is done. You can then configure the devices in Miria as usual.

## Device Configuration Prerequisites

The list of supported operating systems and devices is subject to frequent changes. For the most up-to-date information, see the [<mark style="color:blue;">Miria Compatibility Guide.</mark>](https://documentation.atempo.com/miria-4.6/reference-documentation/compatibility-guide.md)

### Devices

These are the device prerequisites:

* You can only use Media Manager with devices reporting a serial number and libraries reporting their drive serial number.
* You must correctly detect and configure every device to the operating system:\
  – **Windows**. Devices should be available to the system Device Manager.

  * Library should be managed by the Unknown Medium Changer driver.
  * LTO drives should be managed by the LTO Windows native driver.\
    See [LTO-7 and Windows 2012 R2](https://documentation.atempo.com/miria-4.6/admin-guide/deployment/preparing-to-install.md#lto-7-and-windows-2012-r2) for details.
  * Other drives should be managed by the manufacturer's driver.

  – **Linux**. Devices should be listed by the cat /proc/scsi/scsi command.\
  Tape drives should be managed by the st Linux native driver.

### Device Connections

{% hint style="info" %}
If your Host Bus Adapter (HBA) controller is optimized for RAID, then it is not compatible with tape drive and tape library use. The block size management of HBA controller is not adapted for sequential access devices (block size can be dynamically modified by the controller), nor for asynchronous data transfer.\
Atempo is thus unable to support such a configuration for its products.
{% endhint %}

### Libraries

These are the library prerequisites:

* **Media Manager only supports libraries of these types:**
  * SCSI/SAN/iSCSI/FC (Fiber Channel) /FCoE (Fiber Channel Over Ethernet)
  * Other Library Managers (ACSLS)
* **Media Manager only supports libraries providing barcode management capability:**
  * Barcodes on media are mandatory.\
    They must be reported by libraries, and they must be unique in the Miria configuration.\
    Configure the library to report the full barcode to Miria, including the media ID suffix.
  * All barcodes used on media in libraries are supported, except the cleaning barcodes\
    (i.e., barcodes that start with the CLN prefix). Cleaning barcodes must not be used on data media
* **Media Manager only supports tape libraries equipped with mailboxes.**

### ACSLS Libraries

To install a Media Manager server in an environment using ACSLS, request these items from your ACSLS administrator prior to the installation:

* A dedicated media pool.
* A dedicated barcode range.
* One or more dedicated tape drives.
* A CAP (Cartridge Access Port) in automatic mode.

If you use ACSLS, only one library can be declared on the ACSLS server and Media Manager only supports the standard port for ACSLS clients (i.e., <kbd>50004</kbd>).

{% hint style="info" %}
ACSLS (Automated Cartridge System Library Software) is a tape library management software developed by Oracle (formerly StorageTek).
{% endhint %}

### Drives

Media Manager only supports drives connected inside a library (i.e., no drive management en standalone).

For an overview of drives supported by Miria, see the [<mark style="color:blue;">Compatibility Guide.</mark>](https://documentation.atempo.com/miria-4.6/reference-documentation/compatibility-guide.md)

### Hardware Recommendations

* Avoid sharing a controller between disk and tape drives.\
  Atempo recommends that you dedicate a controller connection to disk(s) and another one to tape device(s).
* Use only generic controllers.\
  Do not use RAID-optimized controllers. Avoid using PowerEdge Raid Controller (PERC)\
  and motherboard controllers because they are very likely to be optimized for RAID.

### Device Configuration Limitations

* Media Manager does not support tape drives and tape libraries connected through NDMP.
* Media Manager does not support drive sharing with third-party software.
* Media Manager does not support library sharing with other applications (e.g., Atempo\
  \[\[\[Undefined variable Installation.tn]]]), except with an ACSLS library.\
  Using the hardware split mechanism may alter and reduce the mailbox management\
  functions.
* Media Manager does not manage or control the cleaning of tape drives.\
  Cleaning is managed by the library.
* When a SpectraLogic library is partitioned, the EE port must be configured in shared mode. Media Manager does not support any other EE SpectraLogic modes.

## Installation Parameters

Consider these recommendations:

* Selecting the Media Manager option automatically launches the Media Manager Setup on the current host.
* You can install the Media Manager server on any machine in the network.\
  The server implicitly includes an agent.
* You must install a Media Manager agent and a Miria agent on every machine physically\
  connected to devices (i.e., libraries and drives).

The installation parameters are described in the table below.

For options to install Media Manager, see also [Installation Modes.](https://documentation.atempo.com/miria-4.6/admin-guide/deployment/preparing-to-install.md#installation-modes)

<table data-header-hidden><thead><tr><th width="217.6666259765625"></th><th></th></tr></thead><tbody><tr><td><strong>Parameter</strong></td><td><strong>Options and Actions</strong></td></tr><tr><td><strong>AMM Installation Type</strong></td><td>Choose whether you want to install a Media Manager server or agent.</td></tr><tr><td></td><td><strong>Server installation.</strong> The Media Manager server is composed of the Media Manager database and a listener process communicating with the Media Manager agent(s). The Media Manager server is installed on the same machine as a Miria server or a Miria agent. You can install it on any platform with a compatible operating system. The Setup automatically installs the Media Manager server and database, and sets all the necessary environment variables.</td></tr><tr><td></td><td><strong>Data Mover installation.</strong> The Media Manager agent is composed of the services driving the libraries and/or drives. It must be installed on the platforms driving these devices. The Setup installs the library and media services, but not the database. The Setup sets all the necessary environment variables.</td></tr><tr><td><strong>AMM Installation - Server Installation</strong></td><td>This screen displays only if the default ports are already in use. Media Manager uses these ports:</td></tr><tr><td></td><td><p><strong>AMM Port Number.</strong> Port that enables the Media Manager server and agents to communicate. The default value is 651.</p><blockquote><p><strong>Note</strong>: The port must be open on the firewall from Media Manager agents to the Media Manager server.</p></blockquote></td></tr><tr><td></td><td><strong>Database Port Number (PostgreSQL).</strong> Port through which the Media Manager PostgreSQL database will listen. The default value is 15432.</td></tr><tr><td></td><td><strong>AMM HTTP Port Number.</strong> Port that enables Media Manager to communicate with Miria. The default value is 8282.</td></tr><tr><td><strong>Media Manager -</strong><br><strong>Agent Installation</strong></td><td><p>Complete these fields:</p><ul><li><strong>Server Name</strong>. Media Manager server with which this agent will<br>communicate.</li><li><strong>Server Port.</strong> Port number that enables the Media Manager server to<br>communicate with the agents.<br>By default, the port is <kbd>651</kbd>, but you can change it if necessary.</li></ul></td></tr><tr><td><strong>Device detection</strong></td><td><p><strong>Only for an agent installation.</strong> For a server installation, the automatic device detection is launched systematically.<br>Once you have entered all installation parameters, the Installation Wizard proposes to run a storage device detection. The detection may reset existing devices and interrupt any running archiving jobs, and may take some time.</p><ul><li>Click Yes to run the automatic device detection at the end of the installation.<br><strong>Or</strong></li><li>Choose No to manually launch the device detection later.</li></ul></td></tr></tbody></table>

## Device Configuration

Once the Miria Setup has successfully installed Media Manager, you are ready to configure devices in Media Manager, using one of these methods:

* Automated device configuration. Configures the local SCSI devices with a serial\
  number.\
  The Miria installer automatically launches the Automated device configuration when you\
  install a Media Manager server from the Miria installer.\
  See [<mark style="color:blue;">Device Configuration Prerequisites</mark>](#device-configuration-prerequisites) before configuring your devices in automated\
  mode.

> **Note**: Atempo strongly recommends that you use automated device detection\
> whenever possible. Automated detection makes it easier to keep the configuration\
> consistent.

* Interactive device configuration. Configures specific local SCSI devices or ACSLS

### Automated Device Configuration

Use the Automated Device Configuration feature if you want to configure all the local SCSI devices with a serial number.\
The Miria installer launches the automated device detection when you install a Media Manager server from the Miria setup. When you install a Media Manager agent, the Miria installer asks you to choose if you want to run the automated device detection when the installation is complete. If you chose not to run automated detection, or if it ran but no local SCSI devices were detected (e.g., if they were not yet connected), then you must launch this procedure at your convenience after installing the product.

#### Recommendations

Review these considerations carefully before performing an automated configuration:

* Automated detection only applies to devices that are physically connected to a machine (i.e., SCSI, SAN, SAS, FC and FCoE).
* Before performing any configuration using the mm\_adm\_device command, you must stop the mm\_agent service.

See [<mark style="color:blue;">Device Configuration Prerequisites</mark>](#device-configuration-prerequisites) also before configuring your devices in automated mode.

#### SCSI Devices

Local SCSI devices are devices that are physically connected to a machine (Parallel SCSI, SAN, SAS, FC and FCoE). To create a local SCSI device in automated mode

1. Stop the mm\_agent service.
2. Run <kbd>Media Manager Command Line Interface.</kbd>
3. Run mm\_adm\_device in automated mode: <kbd>mm\_adm\_device -a</kbd> All the local SCSI devices present on the agent are detected and automatically created in Media Manager. **Example**.

```
C:\Miria\AMM\bin>mm_adm_device -a
[Notice] Peripheral A230D60000 updated to device spt_c3b0t0l0

    Creating Tape drive (Serial number A230D00001)

    Creating Tape drive (Serial number A230D00002)

    Creating Tape drive (Serial number A230D00003)

    Creating Library (Serial number A230D60000)

C:\Miria\AMM\bin>
```

4. Start the mm\_agent service.

### Interactive Device Configuration

Use interactive device configuration if you want to configure specific local SCSI devices or ACSLS libraries.

#### Recommendations

Review these considerations carefully before performing an interactive configuration:

* Before you make any configuration change using the mm\_adm\_device command, you must stop the mm\_agent service.
* All drives present in the library will be automatically declared, regardless of whether you intend to use them. If needed, you can disable the agent configuration for specific drives using the interactive mm\_adm\_device command. The drives themselves should remain defined in the configuration to ensure proper library operation and consistency.

See [<mark style="color:blue;">Device Configuration Prerequisites</mark>](#device-configuration-prerequisites) before configuring your devices in interactive mode.

#### SCSI Devices

Local SCSI devices are devices physically connected to a machine (Parallel SCSI, SAN, SAS, and FC et FCoE).\
To configure specific local SCSI devices, use the interactive mode.

**To create a local SCSI device in interactive mode**

1. Stop the <kbd>mm\_agent</kbd> service.
2. Run Media Manager Command Line Interface.
3. Run mm\_adm\_device in interactive mode: <kbd>mm\_adm\_device</kbd>
4. Scan the devices on the local host: scan
5. If the serial number is available, create the new device with this command: create \<device\_serial\_number> Or You can use the scan list to create the new device (this is the only way for devices without a serial number): create
6. Start the mm\_agent service.

**Example 1. Creating a device with a serial number.**

```
(MM) scan
[Information] Device Type=Tape drive
[Information] Device Descriptor=c3b0t1l0
[Information] Configured=Yes
[Information] OS Device Path=\\.\Tape0
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=Ultrium 6-SCSI
[Information] Product Revision Level=HB91
[Information] Tape Drive Serial Number=A230D00001
[Information] ===================
[Information] Device Type=Tape drive
[Information] Device Descriptor=c3b0t2l0
[Information] Configured=Yes
[Information] OS Device Path=\\.\Tape1
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=Ultrium 6-SCSI
[Information] Product Revision Level=HB91
[Information] Tape Drive Serial Number=A230D00002
[Information] ===================
[Information] Device Type=Tape drive
[Information] Device Descriptor=c3b0t3l0
[Information] Configured=Yes
[Information] OS Device Path=\\.\Tape2
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=Ultrium 6-SCSI
[Information] Product Revision Level=HB91
[Information] Tape Drive Serial Number=A230D00003
[Information] ===================
[Information] Device Type=Medium changer
[Information] Device Descriptor=spt_c3b0t0l0
[Information] Configured=No
[Information] OS Device Path=\\.\Scsi3:
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=MSL G3 Series
[Information] Product Revision Level=6.24
[Information] Library Serial Number=A230D60000
[Information] Number of slots=20
[Information] Number of drives=3
[Information] Number of mailbox slots=4
[Information] Drives Serialization Method=1
[Information] Drives Serialization=Yes
[Information] Serial number for drive index0=A230D00001
[Information] Serial number for drive index1=A230D00002
[Information] Serial number for drive index2=A230D00003
[Information] Split=No
[Information] ===================

(MM) create A230D00003

    Creating Tape drive (Serial number A230D00003)
(MM Create) Name of the device ? DRIVE4
[Warning] Drive DRIVE4 (Serial number A230D00003) remains as a standalone drive.

(MM) 
```

**Example 2**. Creating a device with or without a serial number (using the scan list).

```plaintext

(MM) create
[Information] Device Type=Tape drive
[Information] Device Descriptor=c3b0t1l0
[Information] Configured=Yes
[Information] OS Device Path=\\.\Tape0
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=Ultrium 6-SCSI
[Information] Product Revision Level=HB91
[Information] Tape Drive Serial Number=A230D00001
[Information]===================

(MM Create) Define this device on this host? (yes/no/cancel) yes

    Creating Tape drive (Serial number A230D00001)
(MM Create) Name of the device ? DRV1
[Information] Device Type=Tape drive
[Information] Device Descriptor=c3b0t2l0
[Information] Configured=Yes
[Information] OS Device Path=\\.\Tape1
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=Ultrium 6-SCSI
[Information] Product Revision Level=HB91
[Information] Tape Drive Serial Number=A230D00002
[Information] ===================

(MM Create) Define this device on this host? (yes/no/cancel) yes

    Creating Tape drive (Serial number A230D00002)
(MM Create) Name of the device ? DRV2
[Information] Device Type=Tape drive
[Information] Device Descriptor=c3b0t3l0
[Information] Configured=Yes
[Information] OS Device Path=\\.\Tape2
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=Ultrium 6-SCSI
[Information] Product Revision Level=HB91
[Information] Tape Drive Serial Number=A230D00003
[Information] ===================

(MM Create) Define this device on this host? (yes/no/cancel) yes

    Creating Tape drive (Serial number A230D00003)
(MM Create) Name of the device ? DRV3
[Information] Device Type=Medium changer
[Information] Device Descriptor=spt_c3b0t0l0
[Information] Configured=Yes
[Information] OS Device Path=\\.\Scsi3:
[Information] OS SPT Device Path=\\.\Scsi3:
[Information] Vendor Identification=HP
[Information] Product Identification=MSL G3 Series
[Information] Product Revision Level=6.24
[Information] Library Serial Number=A230D60000
[Information] Number of slots=20
[Information] Number of drives=3
[Information] Number of mailbox slots=4
[Information] Drives Serialization Method=1
[Information] Drives Serialization=Yes
[Information] Serial number for drive index0=A230D00001
[Information] Serial number for drive index1=A230D00002
[Information] Serial number for drive index2=A230D00003
[Information] Split=No
[Information] ===================

(MM Create) Define this device on this host? (yes/no/cancel) yes

    Creating Library (Serial number A230D60000)
(MM Create) Name of the device ? MYLIB

(MM)
```

#### ACSLS

ACSLS is an Automated Cartridge System Library Software.\
See [<mark style="color:blue;">ACSLS Libraries</mark>](#acsls-libraries) for more information on the prerequisites for creating an ACSLS library.

**To create an ACSLS library**

1. Stop the mm\_agent service.
2. Run Media Manager Command Line Interface.
3. Run <kbd>mm\_adm\_device</kbd> in interactive mode: mm\_adm\_device
4. Create an ACSLS library: acslib
5. Provide this information:
   1. The ACSLS server name.
   2. The ACSLS library logical name.
   3. The ACSLS pool number.
   4. The range of barcode (optional).
   5. The drive type: Media Manager automatically detects whether the ACSLS server has several drive types and displays the “Select drive type for the current library:” message. Select the drive type to declare because Media Manager can only manage one type of drive.

      > **Note**: If you do not specify neither the pool number nor the barcode range, Media Manager takes into account all the media of all the ACSLS pools, whatever their barcodes.
6. Start the mm\_agent service. Example.

```
(MM) acslib
(acslib) ACSLS server name? sonny
(acslib) ACSLS Library logical name? ACSLS_SONNY
(acslib) ACSLS pool []? 124
(acslib) Range of barcode []? 000000-999999
```


---

# 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/miria-4.6/admin-guide/deployment/installing-media-manager.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.
