Vidéos d'aide de Screencast
Recherche de vidéos d'aide Close Back
to help

Cannot expire a tape

Created: 07 Oct. 2011 | 10 comments
l'image des 2540Lancaster
0 1 Vote
Login to vote

I tried to expire a tape without success, Our environment is Netbackup 7.1 Master and media servers

I rant the command below,  however it states that I had an invalid command paramter, I then ran a second command against that media, however nothing jumped out at me,   What am I missing.???

C:\>bpexpdate -m VTL337 -d 0
Media VTL337 is due to expire at 10/21/2011 11:55:22
Are you sure that the data on this media is not critical to
your business, and you are sure you want to delete VTL337 y/n (n)? y
invalid command parameter

C:\>nbemmcmd -listmedia -mediaid VTL337
NBEMMCMD, Version:7.1
====================================================================
Media GUID:                     24413177-2d5e-40c8-980c-d876be183a16
Media ID:                       VTL337
Partner:                        -
Media Type:                     HCART3
Volume Group:                   ---
Application:                    Netbackup
Media Flags:                    1
Description:                    LTO3 Tapes
Barcode:                        VTL337
Partner Barcode:                --------
Last Write Host:                cbsnbk011
Created:                        08/15/2011 12:31
Time Assigned:                  09/20/2011 11:33
First Mount:                    08/20/2011 23:43
Last Mount:                     09/20/2011 12:07
Volume Expiration:              -
Data Expiration:                10/21/2011 11:55
Last Written:                   09/20/2011 11:55
Last Read:                      -
Robot Type:                     NONE
Robot Control Host:             -
Robot Number:                   -
Slot:                           -
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               33
Maximum Mounts Allowed:         0
Media Status:                   MPX
Kilobytes:                      548677
Images:                         1
Valid Images:                   1
Retention Period:               3
Number of Restores:             0
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             0
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    cbsnbk011
Server Group:                   NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    5
Volume Pool:                    Backups
Previous Pool Name:             Scratch
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
====================================================================

Commentaires CommentairesAccéder au dernier commentaire

l'image des Mark_Solutions

If you are not running this on the Master Server add -M <masterservername> and possibly also -h cbsnbk011 but as it is in a group that wont apply

It may be that it is part of a Storage Lifecycle which may interfere with this - but you could always try -force on the end.

It would also be an issue if it is currently allocated (doing something like being used)

Authorised Symantec Consultant

Don't forget to give a "Thumbs Up" or mark as "Solution" if someones advice has helped you.

0
Login to vote
  • Actions
l'image des wr

try with the -host option

 

will restore -- where there is a Will there is a way

0
Login to vote
  • Actions
l'image des Marianne van den Berg

Storage Lifecycle Policy?

If tape is 'owned' by SLP, it cannot be expired with bpexpdate.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

0
Login to vote
  • Actions
l'image des 2540Lancaster

Marianne,

I think this tape is associated with SLP,  the listmedia in the first posting, does not describe this,  if it is related toSLP how do I expire it if I cannot use bpexpdate????

0
Login to vote
  • Actions
l'image des Marianne van den Berg

I do not have any documetation available for the next 2 days to look it up for you... Hope someone else will respond. Will see if I can 'poke a friend'...

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

0
Login to vote
  • Actions
l'image des Mark_Solutions

Hi

Try expiring the images on that tape via the Catlog section in te GUI

You should then be able to do a bpexpdate -deassignempty which will clear it down (or just wait 12 hours until it is done automatically.

If that still wont do it you may need to use nbstlutil -cancel against the images on the tape after which you should be able to expire it

See the commands guide for full details

Hope this helps

Authorised Symantec Consultant

Don't forget to give a "Thumbs Up" or mark as "Solution" if someones advice has helped you.

0
Login to vote
  • Actions
l'image des mph999

You need to remove the image from SLP control :

 

nbstlutil cancel -backupid <backup id of image on tape>

USe above command to cancel the image(s) on the tape.

Once done, the bpexpdate command should work.

Regards,

 

Martin

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
+1
Login to vote
  • Actions
l'image des Marianne van den Berg

Did you manage to eventually expire this tape?

Either way, it has naturally expired by now and back in use, right?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

0
Login to vote
  • Actions
l'image des Tmy_70

This will not completely free up the tape if the tape is frozen or suspended, so the command(s):
    bpmedia -unfreeze -ev <mediaid>
or
    bpmedia -unsuspend -ev <mediaid>
may be needed.

 

Please, check the link:

http://www.symantec.com/business/support/index?page=content&id=TECH6680

If this post has helped you, please vote or mark as solution. MBA. TC Venezuela Consultor Power

0
Login to vote
  • Actions
l'image des Marianne van den Berg

Have a look at 'nbemmcmd -listmedia' output in the opening post. Media is NOT frozen or suspended.

Media under SLP control cannot be manually expired.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

0
Login to vote
  • Actions