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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a tape to SCRATCH with vmchange

Status
Not open for further replies.

sgoldsmith

Technical User
Jan 29, 2004
48
Anyone got any ideas about this one?

I want to change all unallocated tapes in the silo to the SCARTCH pool.

I've generated the list of these tapes, however, when I run the following command:

vmchange -M master1 -h master1 -p SCRATCH -m mediaid

the tape "mediaid" is moved to the pool of None. Not SCRATCH?
If this process is done manually in xvmadm it moves the volume to SCRATCH no problem.

Any ideas.

Simon Goldsmith
Storage Engineer
 
Solved it myself!!!

The pool part must be the pool number - not the name... stupid me!!!

Simon Goldsmith
Storage Engineer
 
Part of a script that I run everyday to reset tapes etc ...

$VOLDIR/vmquery -deassignbyid $MEDIA $POOL 0
$BPDIR/bpexpdate -m $MEDIA -d 0 -host $ROBHOST -force
$VOLDIR/vmdelete -M $MASTER -m $MEDIA
$VOLDIR/vmadd -m $MEDIA -b $MEDIA -mt hcart -M $MASTER
$VOLDIR/vmchange -M $MASTER -p $POOL -m $MEDIA
$VOLDIR/vmchange -M $MASTER -res -m $MEDIA -mt hcart -rt tld -rn $RNUM -rh $ROBHOST -v $INVG -rc1 $SLOT -rc2 0
$VOLDIR/vmchange -d "Division" -m $MEDIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top