Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overwrite Volumes

Media Management

Overwrite Volumes

by  joeunixadmin  Posted    (Edited  )
To overwrite volumes and make them available for relabeling and continued use in the jukebox

Determine which volumes are recyclable

Use nsrjb | more and read the last entry (recyclable) for each volume, if yes it is recyclable if no, it is not recyclable :)

or

$: mminfo -r volume -q volrecycle

remove references to a volume and the user files saved on it from the NetWorker indexes

nsrmm -d volume_name

load the volume in a drive:

$: nsrjb | grep volume_name

$: 39: volume_name
|
slot number in jb

$: nsrjb -ln -S 39 -f /path/to/device (/dev/rmt/0cbn 1cbn 2cbn ...)
(/path/to/device should be for the device which is known by NetWorker)

rewind the tape

$: mt -f /path/to/device rewind
(if you used /dev/rmt/0cbn above use /dev/rmt/0 here)

use tar to write a file (min size of 100MB) to the volume

$: tar cvbf 384 /path/to/device file_name
(if you used /dev/rmt/0cbn above use /dev/rmt/0 here)

rewind the tape

$: mt -f /path/to/device rewind
(if you used /dev/rmt/0cbn above use /dev/rmt/0 here)

eject the volume and return it to the jb

nsrjb -u -f /path/to/device (/dev/rmt/0cbn 1cbn 2cbn ...)
(/path/to/device should be for the device which is known by NetWorker)
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top