Video Screencast Help

low free space

Created: 23 Dec 2013 • Updated: 24 Dec 2013 | 10 comments
This issue has been solved. See solution.

Hello All,

In VTL low free space, so from big backup policy getting 96 error.

expire the media according to policy (bpexdate )is not help, as I see. Because of linear writing.

So what can I do?

Do you have experience before ?

Is it possible move images from media to another ?

Operating Systems:

Comments 10 CommentsJump to latest comment

Mark_Solutions's picture

VTL's are usually a nightmare if they fill up!! (As you have found out)

Usually to get the media properly recycled you need to do a bpexpdate against the tapes that you want to clear down and then label them (bplabel) as well in order to get the VTL itself to free up the space you need.

You can manually duplicate them off to somewhere else ("real" tape, disk etc.) but if you dont have anything available then you dont have much option than start expiring tapes and labelling them - of course you also have your SLA's to meet so do be careful what you expire!

Hope this helps - generally expire the tapes and then label them and it should free up the space

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

turguns@gmail.com's picture

Thanks,

Here is 574 Backups which are not important.

Now I am expiring them one by one   (example -> ) bpexpdate -backupid      sdp_1387720812 -d 0

But I have a trouble. If I expire them, anyway I cant get free space, isn't it?

Mark_Solutions's picture

Expiring them by image id may not actually free up sets of tapes if there are any other images on them

If that is how you need to do it then once you have expired them all then run:

bpimage -cleanup -allclients

and then

bpexpdate -deassignempty -force

Once you have done that take a look in your media section for any tapes that do not now have a time assigned date (and so have no images on them) - select them all, right click and select label

This will tell the VTL that they have been labelled and will free up all space associated with thise tapes

Hope this helps

#edit# edited the commands

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

SOLUTION
turguns@gmail.com's picture

Thank you Mark ))

When I finish expire them, I will try your advice.

If this method would be not successfull, i need to search alternative way.

Mark_Solutions's picture

Usually the labelling of the tapes tells the VTL that the tape is now blank and will provide the free space

Of course in the long run you still have the possible issue that your environment has started to exceed its VTL capacity and you may need to adjust your retention periods.

We did a project a while ago for a customer with similar issues where we had to change the retention period of all tapes on their VTL and then do the cleanup / labelling etc.

Even once this was done they still label all "newly empty" tapes on a daily basis to ensure that space is always freed up

Let us know how it goes

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

turguns@gmail.com's picture

In pool 3893 volume( each are 25GB).   478 of them is expiration is infinity.  

other medias are vary  (max expiration is to  20 th february 2014).

As you told we checked retention periods.all of them is  up to importance of policy . some of them 10 days, some of theme 3 weeks.

Mark_Solutions's picture

Infinity retention - so you will never get those back and its capacity will just keep on getting less as time goes on if that schedule keep running

May be worth doing a regular label of  tapes to keep space available - VTLs do vary though but give it a try and if it helps you have a process to follow - but you may still need to increase capacity of the system at some point or add in another storage tier (a real tape library for example)

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

revarooo's picture

Make sure to run a bpexpdate -deassignempty to release the tapes back to their previous pools for re-use

Jim-90's picture

Depends upon your VTL.  In some VTLs expiring data on a tape and returning it to the scratch pool will not help.  If the VTL is not NBU aware then all data on the tape is valid, it will know nothing about the scratch pool.

I have VTLs that have the same issue the method I use is if I had to do this manually is

  • In the GUI go to you scratch pool highlight as many as you require and do a Quick Erase on them.

If that doesn't free up enough space 

Create a list of tapes with column 1 = Media ID & column 2 = last written to

nbemmcmd -listmedia -poolname $pool |  \
    awk ' /Media ID:/       { media_ID= $3 }
          /Last Written:/   { if ( $3 != "-" )
                                 printf"%s %s\n",media_ID,$3}
        ' > out_file

Filter out the ones you want to expire according to last written to data  and expire them

bpexpdate -m $media_ID -d 0 -host $media_server -force

Once done do a quick erase on them

One at a time

bplabel -m $media_ID -host $media_server -d hcart -pool $pool  -o -erase 

by looping the list

bplabel -m $media_ID -host $media_server -d hcart -pool $pool  -o -erase > /dev/null 2>&1 &
sleep 5

A warning for Linux

Looping through list puts every bplabel job in ther background.  If that is not done the then only one tape at a time will be processed, backgrounding the processing will ensure every avaliable tape drive is used for the relabel jobs BUT from my experience this also has the potential to hang your server.   You must include the 5 second sleep between jobs.   Without this wait you could  create a very large number of background jobs that go to swap and once that's full the server will hang.  Suggest doing some research on Linux "swappiness" if you plan on running the jobs in the background  

turguns@gmail.com's picture

Issue was solved.

What I did

I expire the images which are not important.There was 2200 images.

I wrote this script

#!/bin/sh
list=/expire/l.txt  
for i in `cat $list`
do
echo $i
/usr/openv/netbackup/bin/admincmd/bpexpdate -backupid $i -d 0 -force
done

.

After that as mark told me

I run the following commands

bpimage -cleanup -allclient

bpexpdate -deassignempty -force

And than I labeled the available medias.

Thank you  friends for replies.