Networker

Re: [Networker] How to determine savesets that have not been cloned?

2003-10-03 14:34:06
Subject: Re: [Networker] How to determine savesets that have not been cloned?
From: "Reed, Ted G II [ITS]" <ted.reed AT MAIL.SPRINT DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Fri, 3 Oct 2003 13:32:20 -0500
$MMINFO -r ssid,location,savetime -q '!incomplete,pool=$POOL,copies=1' -t 
"$TIME"> $SAVESETS

Where $TIME is "two days ago", $POOL is the desired pool to clone, and 
$SAVESETS is "/usr/local/Legato/clone/logs/savesets".  We use "two days ago" so 
if there are still live backups when we run the clone job, they can still be 
swept to clone the next day.

Then loop through the $SAVESETS file to do the actual work based on ssid and 
location (we have master + storage nodes.....so it matters).

--Ted




-----Original Message-----
From: Giles Malet - IST [mailto:gdmalet AT IST.UWATERLOO DOT CA]
Sent: Friday, October 03, 2003 9:54 AM
To: NETWORKER AT listmail.temple DOT edu
Subject: Re: [Networker] How to determine savesets that have not been
cloned?


> Add to your query the condition "copies=1".

But be aware that that includes incomplete / suspect savesets... so if
you kill a clone before it finishes you'll never restart it, because
copies=2.

A more reliable way is to run mminfo on a saveset, exclude bad
savesets by looking at the flags (ssflags,clflags), then count the
number of unique cloneid's.

gdm

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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