cancel
Showing results for 
Search instead for 
Did you mean: 

Process for Frozen/Suspended Media...

DM
Level 3
Currently, we are using Netbackup 6.0 MP4....
What do other Netbackup users do with your Frozen/Suspended Media? Do you have a specific process you follow? I would like to put a process together and have contacted Support for this issue. They have given me instructions to run the following on the frozen media:
(Import media)
bpmedia -unfreeze -m $MEDID -h $MEDIASERVER
Is there a script you have that you run to read a file that will run the commands to unfreeze or unsuspended media?
I need any suggestions if you have any.
Thanks

Message Edited by DM on 08-15-200707:31 AM

12 REPLIES 12

J_H_Is_gone
Level 6
Media gets frozen when the system uses it and has too many errors on the meida.
 
Meaning the sever thinks the media is BAD.......
any media I find that gets frozen.... I will wait for any good images on it to expire, unfreeze it them delete it and put it in my BAD box, to latter be cleaned and recertified, or have it destroyed.
 
you can unfreeze any media you want and continue to use it but it might just keep getting frozen if the tape is bad.
 
 

Rakesh_Khandelw
Level 6
As a best practice you shouldn't be unfreezing media using automated script. You should know the reason for which NBU is freezing or suspending the media. If the reason was a true failure on media itself, then any automated unfreezing/unsuspending process will put media back to active state, which can lead to backup failures.
 
As "J. Hinchcliffe" mentioned, wait for any active images on these freeze/suspended to expire and then either get a replacement from vendor (most of the vendors provide you replacement for bad media) or destroy the media (whatever your company policy is).

DM
Level 3
Rakesh,
 
I tried to unfreeze some old frozen media and getting errors:
 
Requested media ID was not found in the EMM database.
 
I am using the bpexpdate command with -m, -d, and -force option...
 
Do you know of a workaround?

J_H_Is_gone
Level 6
do you have more then one media server?
 
try bpmedia -unfreeze  -h <server that did the backup> -m <mediaid>
 
not sure this this will work or not but it is the way I do it.

Stumpr2
Level 6
I have a special pool that I place media in that was frozen until I am able to determine if it was the drive that caused the errors or the media itself.  The pool I place the potentially bad tapes into is called "cesspool"  Smiley Very Happy
 
 
 
 

sdo
Moderator
Moderator
Partner    VIP    Certified
I agree with J.H.  You have to know why the media was frozen.  There's no point trying to re-use true bad media.  It's only worth un-freezing if the cause was a drive error or a SAN blip.  I wish I had thought of Bob's pool name though.

Stumpr2
Level 6
 
For our forum friends that do not use english as their primary language, here is the definition of cesspool from dictionary.com
 
cess-pool (noun)
1.a cistern, well, or pit for retaining the sediment of a drain or for receiving the sewage from a house.
2.any filthy receptacle or place.
3.any place of moral filth or immorality: a cesspool of iniquity.

 

 

Message Edited by Bob Stump on 08-16-200710:50 AM

DM
Level 3
I will try J.H's command, but does anyone know how long it will take for a media to unfreeze?  I ran a script yesterday and the it's still on the second one?  I like the pool idea and name of the pool itself.
 
I tried the command I get an error: "database system error"

Now I get the mssg that the requested media id was not in the EMM database, same as before.

Message Edited by DM on 08-16-200708:15 AM

sdo
Moderator
Moderator
Partner    VIP    Certified
Frozen media will never unfreeze and never expire.  It has to be done manually.
 
What we are saying, is wait for the expiry time to pass (and the media will not unfreeze and not expire) - then, when you have passed what should have been the expiry date - then you can manually unfreeze, and if the media doesn't automatically expire, then you can manually expire and then eject and destroy.
 
I have two such frozen media at the moment out of 1300 in my robots - and I'm simply waiting for each media to reach what should be its expiry date - after this I'll eject it, then unfreeze, then expire, then destroy - and add a replacement new scratch.
 

Omar_Villa
Level 6
Employee
here it is your script:
 
#!/bin/ksh
for med in `cat TAPESLIST`    #TAPELIST has the list of frozen medias
{
      for ser in `sudo bpmedialist -m $med | grep -i host | awk '{print $4}'`
      {
               echo Unfreezing $med on $ser
              sudo bpmedia -unfreeze -m $med -h $ser
      }
}
 
Regards

Anton_Panyushki
Level 6
Certified
A couple of scripts we use to handle frozen media.
 
 cat frozentapes.ksh
#!/usr/bin/ksh
ReportFile=/tmp/frozenreport.log
if [[ -f $ReportFile ]]
then
    rm $ReportFile
fi
#Get the list of media servers
NetBackupRoot=/usr/openv/netbackup
NetBackupConfFile=$NetBackupRoot/bp.conf
for MediaSrv in `cat $NetBackupConfFile | grep -w 'SERVER' | cut -c10-`
do
     print "================================= $MediaSrv ======================================\n"
     bpmedialist -summary -h $MediaSrv | fgrep '(FROZEN)' | awk '{print $1}'
done
cat unfreezeall.ksh
#!/usr/bin/ksh
PermFrozenTapes=/space/permfrozentapes
NetBackupRoot=/usr/openv/netbackup
NetBackupConfFile=$NetBackupRoot/bp.conf
TempFile=/tmp/`basename $0`.tmp
#command line options checking
if (( $# < 1 ))
then
    script_name=`basename $0`
    print "Usage: $script_name <media server>|all"
    exit 1
fi
cat $NetBackupConfFile | grep -w 'SERVER' | cut -c10- > $TempFile 2>/dev/null

srv=$1
if [[ $srv = 'all' || $srv = 'ALL' ]]
then
for MediaSrv in `cat $TempFile`
do
  for media in `bpmedialist -summary -U -h $MediaSrv | grep "(FROZEN)" | awk '{print$1}'`
  do
    if ! grep $media $PermFrozenTapes > /dev/null
    then
        if bpmedia -unfreeze -m $media -h $MediaSrv > /dev/null
        then
            print "Media $media has been unfrozen sucessfully"
        else
            print "Media $media can't be unfrozen"   
        fi
    else
        print "Media $media is in permanently frozen tapes list"
    fi
  done
done
elif grep $srv $TempFile > /dev/null
then
        for media in `bpmedialist -summary -U -h $srv | grep "(FROZEN)" | awk '{print$1}'`
        do
            if ! grep $media $PermFrozenTapes > /dev/null
            then
                if bpmedia -unfreeze -m $media -h $srv > /dev/null
                then
                    print "Media $media has been unfrozen sucessfully"
                else
                    print "Media $media can't be unfrozen"   
                fi
            else
                print "Media $media is in permanently frozen tapes list"
            fi
        done
else
    print "$0: $srv is not a mediaserver"
fi
exit 0

Stumpr2
Level 6
Thank you for posting your scripts. I wish this forum had a place where all the scripts could be gathered into for easy access.