Difference between revisions of "Netbackup Tape Management"
Line 26: | Line 26: | ||
'''List tapes in pool'''<br> | '''List tapes in pool'''<br> | ||
''vmquery -pn <pool name> -bx''<br> | ''vmquery -pn <pool name> -bx''<br> | ||
+ | '''List tape volume details'''<br> | ||
+ | ''vmquery -m <media ID>'' <br> |
Revision as of 10:52, 27 February 2015
List the tapes in the Load ports, If there is a tape in a port you will see "full=1", if empty "full=0"
- echo "s i q" | tldtest -r /dev/sg/c0tw500104f0009f24d7l0
For interactive menu to move tapes
- tldtest -r /dev/sg/c0tw500104f0009f24d7l0
For example, to move a tape from load port 4 to slot 23
- m p4 s23
To see if there are any tapes in the load ports
- s i q ( there are spaces between each letter )
To list the free slots in the library
- echo "s s" | tldtest -r /dev/sg/c0tw500104f0009f24d7l0 | grep 'contains Cartridge = no'
To update the volume configuration in the library, needs to be done when tapes are loaded or unloaded manually, the accuracy of the information displayed by the "available_media" command depends on the volume configuration being updated.
- vmupdate -rt TLD -rn 0
To show tape drive status
- vmoprcmd -d ds
- vmoprcmd -dp ds
How many tape drives are in current use
- ssh <server> /usr/openv/volmgr/bin/vmoprcmd -dp ds | awk '{ print $4}' | grep Yes | wc -l
Determine which volume pools are available by running the following command:
/usr/openv/volmgr/bin/vmpool -listall
To change the volume pool of the media, run the following command:
/usr/openv/volmgr/bin/vmchange -M <master server> -p <pool number> -m <media ID>
List all pools
vmpool -listall -bx
List tapes in pool
vmquery -pn <pool name> -bx
List tape volume details
vmquery -m <media ID>