27.01.2015 Views

HP LTFS Linear Tape File System user guide

HP LTFS Linear Tape File System user guide

HP LTFS Linear Tape File System user guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4 Using <strong>HP</strong> <strong>LTFS</strong><br />

How to use <strong>LTFS</strong><br />

1. Open a terminal window on your system. Ensure that /usr/local/bin/ is in your command<br />

search path. For example:<br />

$ export PATH="$PATH:/usr/local/bin"<br />

2. Load a tape cartridge into the drive, and then format it in <strong>LTFS</strong> format:<br />

For Linux:<br />

$ mkltfs -d /dev/st0<br />

For Mac OS X<br />

$ mkltfs -d 0<br />

mkltfs options:<br />

–d, -–device=<br />

–s, -–tape-serial=<br />

–n, -–volume-name=<br />

–r, -–rules=<br />

–o, -–no-override<br />

–q, -–quiet<br />

–f, -–force<br />

–t, -–trace<br />

–h, -–help<br />

–p, -–advanced-help<br />

<strong>Tape</strong> device (required).<br />

For Linux use the device name such as /dev/st0.<br />

For MacOS X, use the instance number of the tape drive, assigned<br />

sequentially by the system starting from 0.<br />

<strong>Tape</strong> serial number (6 alphanumeric ASCII characters)<br />

<strong>Tape</strong> volume name (empty by default)<br />

Rules for choosing files to write to the index partition. The syntax of<br />

the rules argument is:<br />

• size=1M<br />

• size=1M/name=pattern<br />

• size=1M/name=pattern1:pattern2:pattern3<br />

A file is written to the index partition if it is no larger than the given<br />

size AND matches at least one of the name patterns (if specified).<br />

The size argument accepts K, M and G suffixes. Name patterns<br />

may contain the special characters '' (match any single character)<br />

and '*' (match zero or more characters).<br />

Disallow mount-time data placement policy changes<br />

Suppress progress information and general messages<br />

Force reformat of existing <strong>LTFS</strong> volume (normally disallowed)<br />

Enable function call tracing (only useful for debugging)<br />

This help<br />

Full help, including advanced options<br />

3. Mount the formatted tape cartridge<br />

$ mkdir /mnt/lto5<br />

$ ltfs /mnt/lto5<br />

ltfs options:<br />

–o devname=<br />

–o work_directory=<br />

–o trace<br />

–o eject<br />

<strong>Tape</strong> device (default: /dev/st0)<br />

<strong>LTFS</strong> work directory (default: /tmp/ltfs/)<br />

Enable diagnostic output<br />

Eject the cartridge after unmount<br />

How to use <strong>LTFS</strong> 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!