Checking media by using the ltfsck
command
How to check tape media consistency and, if necessary, recover media from an inconsistent
state by using the ltfsck
command. The options that can be used with this command
are also explained.
Enter
ltfsck
from the command line to mount media for use with the IBM Storage Archive.
Operating system | Command line entry |
---|---|
Linux® |
Or
ltfsck
<drive_serial_number> (Example: ltfsck 1168001522) |
The following
ltfsck
command options are available.- -a OR --trace
- Enable function call tracing.
- --capture-index
- Captures indexes to the work directory.
- -f OR --full-recovery
- Recover extra data blocks for which metadata is excluded from the index file. The recovered data
is stored in the directory
_ltfs_lostandfound
. This directory is located in the root directory on the tape medium. When the tape medium is mounted, it can be seen at the mount point. - -h OR --help
- Display program help information.
- -g<generation> OR --generation=<generation>
- Specify the index of the generation to roll back. Obtain the list of acceptable indexes by
entering the
ltfsck
command with a-l
option. - -j OR --erase-history
- Erase history at rollback.
- -k OR --keep-history
- Keep history at rollback (default).
- -l OR --list-rollback-points
- List rollback points (generations). Use this command with the
-v
option. - -m OR --full-index-info
- Display full index information (effective only for
-l
option). - -n OR --no-rollback
- Do not roll back. Verify only the point that is specified by
-g
. (This option is the default.) - -o scsi_lbprotect=off
- Disable logical block protection (default).
- -o scsi_lbprotect=on
- Enable logical block protection. (The default is
disabled
.) - -q OR --quiet
- Suppress progress information and general messages. For more information, see Setting the log trace level.
- -r OR --rollback
- Roll back to the point specified by
-g
or-t
. - -v OR --traverse=<strategy>
- Set traverse mode for listing rollback points. Strategy can be forward or backward (default is
backward
). Used with the -l option. - -z OR --deep-recovery
- Recover the cartridge that is missing the end-of-data mark.