Using hp ltfs to check the cartridge – HP StoreEver Ultrium Tape Drives User Manual

Page 17

Advertising
background image

Using HP LTFS to check the cartridge

Every time a cartridge is mounted onto the system, the HP LTFS application will perform a consistency
check to ensure that the index information is accurate and up-to-date with the data on the tape. If
for some reason there is a problem, the mount operation will fail.

In order to recover the tape to a consistent state, you can use the ltfsck utility to check and
repair the LTFS volume. The options to ltfsck are shown below; the only required parameter is
the device name (such as /dev/st0 on Linux), but the behavior of ltfsck can be controlled
through the following:

Usage: ltfsck <options> filesys

where filesys is the device file for the tape drive

Specify the generation to roll back.

–g, —-generation=<generation>

Rollback to the point specified by -g or -t.

–r, -—rollback

Do not roll back, just verify the point specified by -g (default).

–n, -—no-rollback

Recover extra data blocks into directory _ltfs_lostandfound.

–f, -–full-recovery

Recover EOD missing cartridge. Some blocks may be erased but recover
to final unmount point which has an index version "2.0.0" or earlier.

-z, --deep-recovery

(Must be used for a cartridge that cannot be recovered by a normal
option.)

List rollback points.

–l, -–list-rollback-points

Display full index information (effective only for -l option).

-m, --full-index info

Set traverse mode for listing roll back points. Strategy should be forward
or backward (default: backward).

-v, --traverse=<strategy>

Erase the history at rollback.

–j, -—erase-history

Keep the history at rollback (Rollback).

–k, -—keep-history

Suppress informational messages. (Implies --force)

–q, -—quiet

Enable diagnostic output.

–a, -—trace

This help.

–h, -—help

Full help, including advanced options.

–p, -—advanced-help

NOTE:

You should only need to use the -z option when a mount operation has failed and ltfs

has advised that deep recovery is required.

Note also that the “erase history” operation cannot be undone, so only use this option when you
are sure that you need it.

Using HP LTFS to check the cartridge

17

Advertising
This manual is related to the following products: