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)