Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

NBU 6.5.4 tape error 96

Updated: 15 Aug 2010 | 13 comments
Shakil Qureshi's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

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

Comments

Kisad's picture
11
Jul
2010
0 Votes 0
Login to vote

bpimage -cleanup -allclients

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....

Thanks
Kisad

Marianne van den Berg's picture
11
Jul
2010
3 Votes +3
Login to vote

Tapes can only be overwritten

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.

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

venkatesh k's picture
11
Jul
2010
0 Votes 0
Login to vote

bpexpdate

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,

Thanks & Regards,
Venki

Dont forget to Vote for + if you think suggestion is good, and mark as solution if it has resolved your problem.

Kisad's picture
11
Jul
2010
0 Votes 0
Login to vote

can be done from gui also

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

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

Thanks
Kisad

Ed Wilts's picture
11
Jul
2010
2 Votes +2
Login to vote

Marianne's right

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.

If this post helps you, please add a vote.

If this post answers your question, please mark it as a solution.  Thanks!
 

Shakil Qureshi's picture
11
Jul
2010
0 Votes 0
Login to vote

bpexpdate

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 ?

Regards,

Shakil Qureshi
Technical Consultant

Marianne van den Berg's picture
11
Jul
2010
1 Vote +1
Login to vote

As I've stated before - NBU

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/unde...
https://www-secure.symantec.com/connect/blogs/you-...

Hope this helps?

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

Andy Welburn's picture
12
Jul
2010
0 Votes 0
Login to vote

As Marianne has stated

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"

Regards Andy

"It's not too late to panic ..."

Shakil Qureshi's picture
12
Jul
2010
0 Votes 0
Login to vote

expire the tape?

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 ?

Regards,

Shakil Qureshi
Technical Consultant

Andy Welburn's picture
12
Jul
2010
0 Votes 0
Login to vote

To confirm no point in expiring older images from tape

- 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

Regards Andy

"It's not too late to panic ..."

Ed Wilts's picture
12
Jul
2010
1 Vote +1
Login to vote

Tape expiry

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.

If this post helps you, please add a vote.

If this post answers your question, please mark it as a solution.  Thanks!
 

J.Hinchcliffe's picture
12
Jul
2010
0 Votes 0
Login to vote

Expiring one image on a tape will NOT help

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

I don't have to know how to spell....I work on Unix.
NetBackup 7.0.1 - AIX & Windows

Shakil Qureshi's picture
15
Jul
2010
0 Votes 0
Login to vote

Thanks a bunch Guys, expiring

Thanks a bunch Guys, expiring the tapes had worked.

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

Regards,

Shakil Qureshi
Technical Consultant