Networker

Re: [Networker] last written to

2005-12-08 09:18:32
Subject: Re: [Networker] last written to
From: Joel Fisher <jfisher AT WFUBMC DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 8 Dec 2005 09:08:05 -0500
Thanks for the heads up...

This is a clone pool, and the original is still intact after I recycle
these volumes.

Thanks!

Joel

-----Original Message-----
From: Itzik Meirson [mailto:imeirson AT mbi.co DOT il] 
Sent: Tuesday, December 06, 2005 3:36 PM
To: Legato NetWorker discussion; Joel Fisher
Subject: RE: [Networker] last written to

Joel,
Be careful with the "brute force" recycling/relabel operation.
You MIGHT get yourself into a situation that you recycle/relabel volumes
with saveset needed for recoveries within the last 30 days...
Also be careful with volaccess - it is the last time the volume was
accessed, for read or write. So even just mount will count.
Itzik

> -----Original Message-----
> From: Legato NetWorker discussion 
> [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On Behalf Of Joel Fisher
> Sent: Tuesday, December 06, 2005 22:12
> To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> Subject: Re: [Networker] last written to
> 
> This is what I'll have to do then.  I just wanted to make 
> sure there wasn't something built into mminfo that I was missing.
> 
> Thanks!
> 
> Joel
> 
> 
> 
> -----Original Message-----
> From: Legato NetWorker discussion 
> [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU]
> On Behalf Of Darren Dunham
> Sent: Tuesday, December 06, 2005 1:49 PM
> To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> Subject: Re: [Networker] last written to
> 
> > Is there a way to find all the volumes in a pool that haven't been 
> > written to in the last x amount of time?
> 
> In one tight line, maybe not.  But we can probably get there.
> 
> > I know I can reference volaccess, but that is written to or 
> read from.
> > I want be able to recycle all the media in a pool that has not been 
> > written to in 30 days.
> 
> > I also know I can use sscreate to find out all the volumes 
> that have 
> > been written to in the last x number of days, but that 
> doesn't work in 
> > the reverse.
> 
> (or even sscomp...)
> 
> > Incidentally is there even a way to do some think like " -q 
> > 'volaccess!>30 days ago' ".
> 
> Well, it's pretty simple with 'volaccess', because that's a 
> single figure for a volume.  You can easily reverse the 
> comparison to 'volaccess < 30 days ago' for the older ones.
> 
> However using sscreate/sscomp is different because you can 
> have savesets in both states on the same volume.  So you'll 
> really need to have a script find it all.
> 
> > I suppose I can get a list of all the volumes in a pool 
> then a list of 
> > the volumes written to in the last thirty days and do a diff.  But
> there
> > seems like there should be a more elegant way to do this.
> 
> The problem is really a combination of (1) there's no 
> equivalent to volaccess for writing and (2) the workaround 
> isn't a volume field but a saveset field.  'mminfo' isn't a 
> full query/logic language, so sometimes you just have to 
> parse the output.
> 
> I'd probably write a perl program to do it (little more 
> flexible, better control of output), but you're right that 
> you should be able to just 'diff' it.
> 
> pool=<your pool here>
> mminfo -av -q "pool=$pool" -r 'volume' | sort -u > 
> /tmp/pool_all.out # One report field, so no header line...
> mminfo -av -q "pool=$pool,sscomp>30 days ago' -r 'volume' | 
> sort -u > /tmp/pool_recent.out diff /tmp/pool_all.out 
> /tmp/pool_recent.out
> 
> -- 
> Darren Dunham                                           
> ddunham AT taos DOT com
> Senior Technical Consultant         TAOS            
> http://www.taos.com/
> Got some Dr Pepper?                           San Francisco, 
> CA bay area
>          < This line left intentionally blank to confuse you. >
> 
> 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
> wit 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
> 
> 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 wit 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
> 

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

<Prev in Thread] Current Thread [Next in Thread>