cancel
Showing results for 
Search instead for 
Did you mean: 

NBU 6.5.4 tape error 96

Shakil_Qureshi
Level 5

HI
Dear All,

i am having the issue of error 96. no tapes left in the scratch, most of them are seen as full. kinldy correct me ?

in my environment, i have NBU Master Server 6.5.4 attached FC SL500 LT03


i need to know, how can i delete the images from the tapes.


kinldy correct if i am wrong, ON NBU GUI, selected the Reports --> Images on the Tapes and then run the report.

i selected the list of the older backups via date, and then get the backup_id and then deleted it via cmd line.

/usr/openv/netbackup/bin/admincmd/bpexpdate -backupid DataBase_1266960234 -d 0


kinldy let me know is it the correct way, to delete the older images from the tapes.

thnx
1 ACCEPTED SOLUTION

Accepted Solutions

Ed_Wilts
Level 6

There are a couple of concepts you need to think about:

1.  Tape expiration doesn't mean what a lot of people think it does.  You want to expire the images from the tape, not the tape itself.  When you tell bpexpdate to expire a media, you are really telling it to expire all the images on that media.

2.  Expiring a single image on a tape does you no good since you can only write to the end of a tape.  If a tape is full, you can't write to it until all of the images on the tape have expired.    Even if you expire the last image on a tape, I don't think NetBackup is smart enough to use the expired space.

View solution in original post

13 REPLIES 13

Kisad
Level 5
you can try the below command.It cleans up expired images.

bpimage -cleanup -allclients

-cleanup 
This command deletes expired images, compresses the images that are scheduled to be compressed, and prunes the TIR information from the images specified. 
 
-allclients
Specifies the selection of all NetBackup clients that have already been backed up on the system. 

Man Page
------------------

http://alcor.concordia.ca/manpages/loc1/bpimage.1.html

Marianne
Level 6
Partner    VIP    Accredited Certified

Tapes can only be overwritten when ALL images on the tape have expired.
Use Media Summary report (tick Verbose) to see which tapes will expire in the next day or two and expire the media-id.

bpexpdate -m <media-id> -d 0

Please try and use this situation as motivation to buy more tapes. Expiring tapes/images is never a good idea - retention periods are required by business and backups/tapes need to be available for restore requests until they expire naturally.

Venkatesh_K
Level 5
Hi,

Marianne van den Berg 2
 has the right answer for your situation,

its better you request the scratch tapes from offiste location if you have any before expiring images on full medias,

Kisad
Level 5
just to add to my  above post. the same can be done from gui.

Master Server-> Host Properties -> Clean up -> 



Ed_Wilts
Level 6

I gave Marianne a vote for her response as well.  Most of our original retention periods were determined by a manager's unwillingness to buy tapes - he would buy more storage but not tapes necessary to back that storage up.  He said we could afford to buy a large and expensive tape library but not media.  He hid the true costs of the backups from his management.  Expiring images was a routine occurence and it was very, very wrong.  We told our business units what our frequencies and retentions were and then expired their images in the background.  Not good at all.

NetBackup, by default, won't mix retentions on the same tape, so you have another options available:  turn on the ability to mix retentions.  This has a short-term upside of perhaps allowing your backups to complete but a long-term downside of not being able to re-use the tape until ALL of the images on that tape have expired.  So if you have a 2GB full backup of a file system with a 5-year retention on an LTO-3 tape with 700GB of incrementals with a 2-week retention, you're hanging on to that tape for 5 years.

Long-term, NetBackup is currently telling you that you don't have enough tapes to meet the requirements that you have specified.  Either get management signoff to change the requirements (shorter retentions or fewer generations), or buy tapes - it's their choice.  Our tape providers can give us pre-labeled tapes in a couple of days.

Shakil_Qureshi
Level 5

HI,

Marianne step i have already performed. and she is also right, let the retentions finish natually.
thats why i have only expired the tapes which are about to expire in next week. with bpexpdate -m <media-id> -d 0

also, the expansion unit tapes are over. no more place for new cartridges. now have to do capacity planning.

now, my same question is:

some older backups can be seen from the NBU GUI, selected the Reports --> Images on the Tapes and then run the report.

i selected the list of the older backups via date, and then get the backup_id and then deleted it via cmd line.

bpexpdate -backupid DataBase_1266960234 -d 0

will that works perfectly? if yes, how can we see the image on tape is deleted. because only this message is generated when we run the command

Are you SURE you want to delete DataBase_1266960234 y/n (n)? y


is there any other confirmation? that the selected image(backup_id) is deleted and the size of tape is released. like if DataBase_1266960234 is 4GB and when we delete it,  from available_media command

/usr/openv/netbackup/bin/goodies/available_media | grep DBC007
DBC007  HCART3   TLD      0       99     -       8     689390139        ACTIVE/MPX

after deleting, the size was same.? why ?

Marianne
Level 6
Partner    VIP    Accredited Certified

As I've stated before - NBU can only re-use a tape when ALL the images on the tape have expired. NBU can only append if there's space left at the END of the tape.

If you expire a single image, NBU cannot re-use this space, as there is no guarantee whatsoever that the new image will fit it this space.

There are two excellent blogs describing this behaviour:
https://www-secure.symantec.com/connect/blogs/understanding-how-netbackup-writes-tape
https://www-secure.symantec.com/connect/blogs/you-can-t-use-tape-cartridges-till-you-can-t-empty-it-completely

Hope this helps?

Andy_Welburn
Level 6

the only way to "free-up" tapes is to expire a tape in its entirety, you cannot expire images & expect space to be freed up on tape, NetBackup just doesn't work that way.

We have been in your situation on a few occasions when unexpected tape usage took us by suprise - we were fire-fighting until a new delivery of tapes arrived by expiring in advance those tapes that were next due to expire 'naturally' by their retention levels.

As Ed says - "NetBackup is currently telling you that you don't have enough tapes to meet the requirements that you have specified"

Shakil_Qureshi
Level 5

kinldy correct me if i am wrong,

like the way i am deleteing the older backup images from tapes would work or not, not sure.

but the correct way is to expire the tape. ?
right ?

Andy_Welburn
Level 6

- there may still be images on the tape so it will still be FULL as far as NB is concerned.

Identify those tapes that are due to expire next (be sure that you do not require any images on these) & then:

bpexpdate -m <media-id> -d 0

Ed_Wilts
Level 6

There are a couple of concepts you need to think about:

1.  Tape expiration doesn't mean what a lot of people think it does.  You want to expire the images from the tape, not the tape itself.  When you tell bpexpdate to expire a media, you are really telling it to expire all the images on that media.

2.  Expiring a single image on a tape does you no good since you can only write to the end of a tape.  If a tape is full, you can't write to it until all of the images on the tape have expired.    Even if you expire the last image on a tape, I don't think NetBackup is smart enough to use the expired space.

J_H_Is_gone
Level 6

If the tape is full, just expiring one or two image will not help.

See my BLOG entry where I explain how NB writes to a tape to get a better understanding of why this will not work for you.

https://www-secure.symantec.com/connect/blogs/understanding-how-netbackup-writes-tape

Shakil_Qureshi
Level 5

Thanks a bunch Guys, expiring the tapes had worked.

i expired the tapes which were about to expire in next week or two.