This post is more than 5 years old

53 Posts

4659

August 17th, 2010 09:00

Determining saveset dependancies

Hello everyone. I'm currently looking at a tape on my networker server, that has every saveset on it listed as 'expired'. The tape itself has an expiration of 'undef'.

Having run an 'nsrim' on this tape, I'm told that 2 of my 62 savesets are browsable, the other 60 are recyclable.

And yet, if I run an 'mminfo' and specify -q "!ssrecycle" on this particular volume, nothing is listed.

So as best I can tell, this means that I have a dependancy - an incremental which is related to the savesets on this tape. The question I have is ... how do I tell which saveset this is?
I've got as far as spotting 'pssid' as an mminfo report - that doesn't appear to do what I want it to though, but ... well, something that allowed me to identify the other savesets in a 'cycle' would be lovely.


Is there an easy solution to this, or am I looking at doing some scripting?

56 Posts

August 18th, 2010 05:00

Yes Edward, This is a NetWorker Bug found in networker version 7.5.1 build 269 , where In NMC the field 'expiration" is blank for some volumes.
and mminfo -m for that volume shows the volretent as "undef"  while  All The savesets in the volume are expired. This could happens on random volumes.

Its impact is Volumes are not getting recycled automatically. and the workaround is to run mminfo on the volume and find out the ssretent of all the savesets on the volume and then manually relabel the volume.

But you have to install the cumulative fixes for your version to be in the safe side and allow networker to automatically find recycleable volumes and relabel them.

Thanks,

Ahmed Bahaa

53 Posts

August 17th, 2010 10:00

That query responds with 'no matches found for the query'.
Is that going to be matching dependant savesets, or only listing the browse time of the savesets actually on the tape?
Because I know they've all expired, but nsrim still thinks I have '18 GB used,    62 save sets, full, 2 browsable save sets, 60 recyclable save sets'

I'm just having a hard time tracking down which two that is, and am wondering if I'll be ending up doing 60odd sets of client/name queries, to determine if there's any unexpired incrementals following the ones on this tape. 

1 Rookie

 • 

294 Posts

August 17th, 2010 10:00

I forgot to add that you need to specify your tape in the mminfo command but I am sure you can work that out.

1 Rookie

 • 

294 Posts

August 17th, 2010 10:00

The savesets in question should be listed when you run:

mminfo -q "ssbrowse>today"

117 Posts

August 17th, 2010 23:00

A very usefull list of backup cycles, also showing dependencies, you will get by command

     nsrim -nv -c

or without specifying a client for all clients configured.

You'll get the backup time, ssid and the save set status (browsable, recoverable, recyclable) and you see the chronological order.

I would suggest first to check on the volume which clients and save set names to focus on using mminfo command and then checking with nsrim report.

53 Posts

August 18th, 2010 02:00

So, I've knocked together a spot of perl to test this - for every saveset on the tape, I did an 'mminfo' looking for the client/saveset name, and looking for possible culprits.


I can post the script if anyone's interested, but it's basically:

mminfo -ot -xc, -r "ssid,client,name,pool,volume" -q "volume=DS3320"

And for each saveset listed, do an

mminfo -avot -xc, -q "client=$client,name=$name" -r "pool,ssid,ssflags,savetime,ssbrowse,ssretent,level,client,name,volume"

And look for any savesets between 'my' saveset, and the next 'full' in the list, that are not full, and not expired.

Would I be right in thinking that this _should_ show up any savesets that are preventing my tape from being recycled? Because all I'm getting out of this, is a whole list that are 'expired'. (This is similar-ish in output to nsrim, but it tells me the volume and pool, which is much more useful for my purposes).

53 Posts

August 18th, 2010 04:00

Turns out it's a bug:

http://solutions.emc.com/EMCSolutionView.asp?id=esg109376&usertype=C

I've got 400 tapes tied up, and have knocked together a script to validate which ones are probably safe to recycle manually, but the longer term fix is to roll out an update.

736 Posts

August 18th, 2010 05:00

Hi Edward,

Could you post the perl script aswell please - I'd be interested to have a look at that.

thanks,

Bobby

53 Posts

August 18th, 2010 06:00

I've put the script in a document. I _think_ it should be:

https://community.emc.com/docs/DOC-8120

It's a bit rough and ready at the moment, so please treat with all the caution that a script from 'some guy off the internet' deserves.
Pretty sure it won't do you any harm, as it's only running mminfos though .
A sample of the results it's given me, checking by hand _looks_ like it's doing what it's supposed to.

Specifically:

Cycle through all the tapes in 'mminfo -m' with an expiration of 'undef'.

Check each of the tapes in question to ensure they have no savesets that are not 'expired'.
Do an mminfo on client and name, of each of those savesets, and try and identify if there are any unexpired incrementals afterwards that are not expired.

It generates a logfile in the current directory - 'ssdeps.log' - that's likely to get a little large, but should help validate the output on standard out, which I've tried to keep easily readable.

736 Posts

August 18th, 2010 07:00

Thanks a million Edward - looks great.

53 Posts

August 23rd, 2010 03:00

Just to update - the ssdeps log seems to get a bit excessive, so I've amended the script - 300Mb of log, for 400 tapes seems a little extreme .

No Events found!

Top