table of contents
make_vtl_media(1) | User Commands | make_vtl_media(1) |
NAME¶
make_vtl_media - create the library database from lib_contents.* file(s)
SYNOPSIS¶
make_vtl_media -h|--help -- print help message and exit, or
make_vtl_media [OPTIONS]
DESCRIPTION¶
Where OPTIONS are from:
- -H, --home-dir=DIR
- Set the mhvtl home directory [default /var/lib/mhvtl]
- -C, --config-dir=DIR
- Set the config directory [default /etc/mhvtl]
- -f, --force
- Overwrite existing database files, if needed.
- -c, --create-dir
- Create the home directory, if needed.
This program is invoked initialy when the software is installed, but can also be ran later to recreate the tape libraray database. It does so by reading the device.conf and library_contents.* files in our configuration directory, and finding the Slot entries in those files, extracting the barcode found for each slot.
- If barcode starts with W
- Create as Write Once Read Many (WORM) media type.
- If barcode starts with CLN
- Create media type as cleaning cartridge.
- Otherwise
- Create the media as a data cartridge.
- Attempts to use the chars 7 and 8 to work out the media type (LTO1/2/3/4/5/6/7, T10K, AIT etc) See mktape(1) for more details on media density.
- Feel free to replace this script with one that better suits your needs.
If the configuration is regenerated then the mhvtl.target service should be restarted.
AUTHOR¶
Written by Mark Harvey
BUGS¶
Not documented.
REPORTING BUGS¶
Report bugs to <markh794@gmail.com> <mark.harvey@nutanix.com>.
COPYRIGHT¶
Copyright © 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO¶
library_contents(5), mktape(1), vtlcmd(1), vtllibrary(1), vtltape(1), generate_device_conf(1), generate_library_contents(1)
October 2024 | mhvtl 1.71_release+26.3f767890cdb2_release |