cancel
Showing results for 
Search instead for 
Did you mean: 

unfreeze tapes

Ashz_Tomz
Level 5
Partner Accredited Certified
Hi
 
How do i unfreeze a set of tapes on a media server i presently use
 
bpmedia -unfreeze -m mediaID -h (media_servers) i am doing unfrezzing tapes individually
 
i have the following media id : tn0001,tn0002 on same media server . How to unfreeze both these tapes at the same time with the command .. Any other way ?
 
regards
Ashish
 
8 REPLIES 8

Stumpr2
Level 6
bpmedia by itself can only interact with an individual media. However you could place the bpmedia command within a for loop.
 
 

PraveenChollang
Level 3
1. copy the list of tapes to excel sheet.
2. write command to unfreeze media.
   bpmedia -unfreeze -m X1 -h <media_server>
   bpmedia -unfreeze -m X2 -h <media_server>
   bpmedia -unfreeze -m X3 -h <media_server>
NOTE: you can unfreeze tapes on different media servers on single run.
3. copy all the command llist to a batch file and execute it.
4. this takes 2 mins to prepare and 2 mins to execute.
you can expire n number of tapes at a time.
 
 
Regards,
Praveen Chollangi

Ashz_Tomz
Level 5
Partner Accredited Certified
give me the proper syntax for unfreezing multiple tapes ..

PraveenChollang
Level 3
Please follow the below steps...
Firstly understand that there is no single command to unfreeze multiple tapes. we are just running same command multiple times.
 
1. Take the list of frozen tapes.
2. Copy the list to an excel sheet.
3. prepare normal command to unfreeze.
Example:
a) column A: bpmedia -unfreeze -m
b) Column B: <mediaID>
c) column C: -h <Media_server>
so if u paste row 1 it looks like: bpmedia -unfreeze -m <mediaID> -h <Media_server>
4. paste all the list of tapes in column B and copy the command to all the rows.
5. Then copy all the commands to a new text file and save the file with extension .bat.
6. Run this file to expire all the tapes in a moment.
 
 

Stumpr2
Level 6


adad egty wrote:
give me the proper syntax for unfreezing multiple tapes ..



give me?
sigh...
 
# cat > /tmp/medialist
media01
media02
media03
^D
 
# for i in `cat /tmp/medialist`
> do
> echo $i
> /usr/openv/netbackup/bin/admincmd/bpmedia -unfreeze -m $i -h <hostname>
> done
 

Nathan_Kippen
Level 6
Certified
Kinda demanding are we adad egty?  What happened to please and thank you?
 
nk
 
 

Ashz_Tomz
Level 5
Partner Accredited Certified
Thanks a lot Guys ....Its worked ...


Stumpr2
Level 6
You are welcome.