cancel
Showing results for 
Search instead for 
Did you mean: 

How do I force expiry of tapes?

jonnyguitar
Level 4

Hi there.

I have a bunch of tapes I need to use.  All I want to do is add them back into the ScratchPool but as they have been written to and not yet expired I get the error:

"Cannot change media pool of an assigned media".

So I run this command:

bpexpdate -m <tape> -d 0 -force

And I get the error:

"requested media id is not assigned to this host in the EMM database"

I've tried this on master and media server and get the same result.

 

Any help would be appreciated.  Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

sksujeet
Level 6
Partner Accredited Certified

post the output of nbemmcmd -listmedia -mediaid

And check the output, it might already be expired.Just check the Last Write host,Time Assigned, Volume expiration and data expiration. If these fields are blank that means it is already expired.

What NBU you are running.

check this as well

http://www.symantec.com/docs/TECH58277
 

View solution in original post

8 REPLIES 8

sksujeet
Level 6
Partner Accredited Certified

post the output of nbemmcmd -listmedia -mediaid

And check the output, it might already be expired.Just check the Last Write host,Time Assigned, Volume expiration and data expiration. If these fields are blank that means it is already expired.

What NBU you are running.

check this as well

http://www.symantec.com/docs/TECH58277
 

mph999
Level 6
Employee Accredited

Hmm, are you sure you are giving the <media id> in the command and not the <barcode>, which may be different ?

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

I agree with request for output of the following for one of the tapes:

nbemmcmd -listmedia -mediaid <media-id>

Please also check if tapes were created via SLP backup or duplication.
If so, you will not be able to expire using bpexpdate as images are controlled by SLP.

 

mph999
Level 6
Employee Accredited

That a point - however, the message is different if you tr to expire a tape under SLP control.

"no images were successfully processed"

... well that's what I get on my system ....

M

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Seems the error changes across different versions...

I have seen this error in NBU 7.0 for tapes under SLP control:

 

"invalid command parameter"

mph999
Level 6
Employee Accredited

Hmm, nice that it is consistant then ....

jonnyguitar
Level 4

Thanks for everyone's comments and help.  I will take everything into consideration, and let you know the outcome when I get round to it again.  Thanks

Toni74
Level 2

Hi all.

Did you try to specify the host name of the server to which the media is assigned.

/usr/openv/netbackup/bin/admincmd/bpexpdate -m 0922L1 -d 0 -host mserver1