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

Replacing Damaged tapes 1

Status
Not open for further replies.

pd77

Technical User
May 17, 2007
30
GB
Hi,

I need to remove a damaged tape where some of the savesets are marked as suspect. Can any one, please tell me the procedure of replacing tapes....

Thanks,
Pd77
 
You can not replace a tape - you can only remove it as you said in the beginning.

For example from the command line with "nsrmm -d volume".
 
If you want to try to preserve what you can off the tape, try this..

Code:
#!/bin/ksh

DESTPOOL=`mminfo -r pool -q volume=${1}`

mminfo -r ssid,cloneid -q volume=${1} | while read SSID CLONEID
do
        nsrstage -mvb "${DESTPOOL}" -S ${SSID}/${CLONEID}
done

This goes through every saveset on the volume one-by-one, and tries to move it to a different volume in the same pool. The reason it's done one at a time is that if you try to do them all at once (which is possible), if any single one fails, the entire task fails, and some may be copied and some may not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top