Common usage examples, Copy data from disk to tape, Copy data from tape to disk – HP StoreEver Ultrium Tape Drives User Manual

Page 14: Copy data from tape to tape, Unmounting and shutdown

Advertising
background image

Common usage examples

Copy data from disk to tape

In this example, the library is mounted as /mnt/hp_msl. It contains an LTFS-formatted tape with
barcode KR1234L5.

The directory to be written to tape is located on the host machine, at /opt/photos and that
directory may contain a number of files, for example files from a digital camera.

To copy all of those files to tape, use the following command

cp /opt/photos /mnt/hp_msl/KR1234L5 -r

Copy data from tape to disk

To move the data from the previous example from tape to disk, at a location called /opt/
incoming_photos

, use the following command.

cp /mnt/hp_msl/KR1234L5/photos /opt/incoming_photos -r

Copy data from tape to tape

If the library or partition contains two tape drives, data may be copied from tape to tape.

Assume the library mounted at /mnt/hp_msl contains two tape drives, and two LTFS-formatted
cartridges, KR1234L5 and KR2468L5.

Use the following command to copy the 'photos' directory from KR1234L5 to the other tape.

cp /mnt/hp_msl/KR1234L4/photos /mnt/hp_msl/KR2468L5 -r

Unmounting and shutdown

The umount (or fusermount) command can be used to terminate the HP StoreOpen Automation
software, and unmount the library device. For example:

umount /mnt/hp_msl

or

umount /dev/sg5

NOTE:

fusermount

is only available on Linux.

IMPORTANT:

The umount command will return immediately. However, cached data will continue

to be written to tape for a few minutes. If there are two tape drives, the cached writes may take
up to 5 minutes total. Do not power off or reset the tape library for at least 5 minutes after the
umount

command has been issued. Otherwise, the tapes may become inconsistent and potential

data loss may occur.

For similar reasons, wait at least 5 minutes after umount has returned before re-mounting the
library.

14

Using HP StoreOpen Automation

Advertising
This manual is related to the following products: