3 using hp storeopen automation, Formatting cartridges with hp storeopen automation – HP StoreEver Ultrium Tape Drives User Manual

Page 13

Advertising
background image

3 Using HP StoreOpen Automation

Starting HP StoreOpen Automation (Linux and Mac OS)

1.

Ensure that /usr/local/bin/ is in your command search path. For example:

$ export PATH="$PATH:/usr/local/bin"

2.

Linux: Find the library device file. One way to do this is to grep the dmesg log for sg devices
with device type 8. In this example, assume the library’s device file is /dev/sg5

Mac OS: Find the library's robotic device instance number. One way to do this is to run the
system_profiler

command. In this example, assume the library's device instance number

is 0.

3.

Create a mount directory for the library device. This only needs to be done one time. For
example:

mkdir /mnt/hp_msl

4.

Mount the tape library device, using the ltfs tool provided with the product:

Linux: ltfs /mnt/hp_msl –o devname=/dev/sg5

NOTE:

To find the device file associated with the tape library, run the following

command:

dmesg | grep sg

From the output, search for the device with device type 8. That will be the library device.

Mac OS: ltfs /mnt/hp_msl -o devname=0

NOTE:

To find the instance number associated with the tape library robotic device, run

the following command: system_profiler.

From the output, get the tape library robotic device

The library will start to identify each piece of media in the library, or partition, by moving it
to a drive, and caching the LTFS index, if the tape is formatted for LTFS.

This process may take several minutes, potentially an hour or more.

5.

After all the media has been identified, you can begin using any LTFS formatted cartridge as
a file system.

Formatting cartridges with HP StoreOpen Automation

LTO-5 and LTO-6 tape cartridges must be LTFS-formatted before they can be used as a file system.

There are two ways to format an LTO tape for use with HP StoreOpen Automation. Both methods
use the mkltfs utility, from the command line. In the following examples, the library device file
is /dev/sg4, and the barcode of the media to be formatted is KR1234L5. You may specify an
individual tape's barcode, using -m. Alternatively, you may omit the -m parameter, and select the
cartridge from a menu. Below is an example of each method.

Formatting an LTO tape after the library is mounted:

mkltfs -s KR1234L5

Formatting a tape before the library is mounted:

mkltfs --device=/dev/sg4 -s KR1234L5

Starting HP StoreOpen Automation (Linux and Mac OS)

13

Advertising
This manual is related to the following products: