Networker

[Networker] Make Expired Volumes Browseable

2009-08-26 22:13:49
Subject: [Networker] Make Expired Volumes Browseable
From: tkutil <networker-forum AT BACKUPCENTRAL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 26 Aug 2009 22:10:26 -0400
>From esg91975

Symptoms

Recovering files not found in Media Database 
Recovering data directly from tape using scanner command 
Recovering files from a tape no longer in the client file index or media 
database 
Recovering data from tapes no longer existing in the media database or the 
index database 
Volume has passed browse and retention policy 
Cannot recover a file or a saveset 
Scanning savesets for a particular client 
Error: 'Volume not in the media index' 
Error: '(save set) not in index' 
No data is displayed for the source client in the recover GUI 
Volume has deleted from the media database 
Volume is out of retention policy thus not in the media database 
How to recover from incomplete backup 

 

Cause

 

Volume or saveset has passed the retention policy. 

 

Resolution

 

If the original backup took place on a different NetWorker Server, or the 
volume information had been deleted from the immediate NetWorker Server and the 
following criteria are met:

 

- the backup of the CFI has gone, due expiration of the retention policy, then 
the actual saveset of the CFI index may not be available and the remaining

  option, if the tape of the saveset is still available is to carry out the 
following

 

a. Put the tape in the drive but don't mount it with this command:

 

nsrjb -ln -S <slot number where tape is located> -f <device path as configured 
in jukebox>

 

b. To recreate the CFI and Media DB information for this saveset run the 
following command:

 

scanner -i -S <ssid> <device path as configured in jukebox>

 

You should then be able to utilise the recover GUI to browse the Saveset for 
the information you wish to bring back. 

Note: that if the browse and retention policy for the saveset has expired and 
the tape has been reused, you will be unable to recover the contents of the 
Saveset.

 

The steps that need to be taken in order to recover the index where the status 
of the volume is recyclable and expired. These are as follows:

 

1) Determine the volume and corresponding savesets which you wish to recover

 

2) Check if the volume / saveset (s) is recyclable

 

3) Run the mminfo command to check the browse time and the retention time for 
each of the savesets (mminfo is following the timezone of the system nsrck is 
hard-coded for US):

 

- print the browse time and the retention time :

 mminfo -avV -q"ssid=<ssid>" -r"ssbrowse(26),ssretent(26)"

 

Additional query commands are as follows:

 

mminfo -avot (a for all, v for verbose, o for order and t for time)

mminfo -q "volumename=<volname>" -r 
"name,ssid,savetime(26),ssbrowse(26),ssretent(26)" - this queries the media 
database for information relating to a specific volume

mminfo -q"client=<clientname>" 
-r"name,ssid,ssbrowse(26),ssretent(26),ssflags,savetime(26)" - this queries the 
media database for information relating to a specific client

nsrinfo -t "US date and time for saveset" <clientname> - this is to list the 
files in the saveset

 

4) If the saveset is recyclable you will need to change the retention time 
first, before trying to make a volume recoverable, by running the following 
commands:

 

- change it's expiration to the future

 nsrmm -S <ssid> -e <new expiration date> ( DD/MM/YYYY )

 

- change it to not recyclable :

 nsrmm -S <ssid> -o notrecyclable

then mminfo (Step 3) again to check that the time changed

In the GUI the status of the saveset should have changed from recyclable to 
recoverable


5) Recover the right index to browse it again :

- print the browse time and the retention time :

 mminfo -avV -q"ssid=<ssid>" -r"ssbrowse(26),ssretent(26),savetime(26)"

The time format on this output is DD/MM/YYYY

 

Prior to running the 'nsrck' command, you may need to stop and start NetWorker 
to ensure that the correct tape is utilised for the recovery:

 - Stop NetWorker using the NetWorker Shutdown Script
         net stop nsrd (windows environment)

         nsr_shutdown (unix environment)

 

 - Start NetWorker using the NetWorker Startup Script
         net start nsrd  (windows environment)

         relevant startup script path as per the unix platform

    

If we recover the index from the day before the ssbrowse time or for the date 
listed for the savetime in the mminfo command output, we will be able to browse 
it again, we can do that with :

 

 nsrck -L7 -t MM/DD/YYYY <clientname> /  nsrck -v -L7 -t MM/DD/YYYY <clientname>

+----------------------------------------------------------------------
|This was sent by troy.kutil AT milwaukeetool DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER