EMC NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU> wrote on
02/07/2008 11:47:13 PM:
> A saveset on adv_file has copies=2 so your query with copies>1 will
> show the same whether or not the seaveset have been copied to tape... I
> expect this script has been deleting stuff you didn't want deleted..
Well, ordinarily, my selection criteria looks like:
-q "client=%machine%,volume=%tapevol%,copies>2,savetime<1 day 17:00"
Which *should* give me any savesets that have been cloned to tape (3
copies = 1 on RW disk, 1 on RO disk, 1 on tape), and that were created
before 5PM yesterday (in our case, that effectively means 2 days ago). We
then delete those returned savesets.
This particluar script is for a machine that doesn't have enough diskspace
to keep 1 day's backup on disk, so this script clears out everything on
the disk space.
> And my usual warning, when we discuss this topic (every two weeks or
> so), copies=3 does not necessarily mean you have a good copy on tape
> - an aborted copy will still be counted. You need to check clflags
> before deleting.
Hrm ... so I should be adding "clflags <> a"?
>
> > -----Original Message-----
> > From: EMC NetWorker discussion
> > [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On Behalf Of MIchael Leone
> > Sent: Friday, 8 February 2008 5:29 AM
> > To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> > Subject: [Networker] Confused about mminfo query
> >
> > So I have this storage node, and we run a script every day, to delete
> > savesets that have already been cloned to tape. We write to disk
> > (adv_file), and then clone from there. While we prefer to keep 2 days
> > worth of backups on the disk, I have one storage node that
> > doesn't have
> > enuough disk space, so on this node, I have to clear out the
> > disk space,
> > after it's been cloned to tape. So I use:
> >
> > SET machine=machine
> > SET tapevol=NWServer.023.RO
> > mminfo -r "ssid,cloneid,savetime" -q
> > "client=%machine%,volume=%tapevol%,copies>1"
> >
> > And I get back:
> >
> > 396861745 1202168111 2/4/2008
> > 4104799284 1202340915 2/6/2008
> > 4088022108 1202340955 2/6/2008
> >
> > (side question - I want to see the date and time - in 24 hr
> > format - that
> > the save set was created. What should I use, instead of
> > "savetime", to
> > show that?)
> >
> > Main question: when I run:
> >
> > mminfo -r "ssid,cloneid,savetime" -q
> > "client=%machine%,volume=%tapevol%"
> >
> > I get the same results. How is that possible? How can a query
> > that asks
> > for everything, and a query that asks for just the subset that has
> > multiple copies, show the same result? Or am I totally
> > misunderstanding
> > what this script is supposed to be doing? (it was created by the EMC
> > consultant who originally installed NetWorker here, about a year ago)
> >
> > We use the results to do:
> > FOR /F "tokens=1-2" %%a in
> > (%nwpath%\tmp\%machine%_ss_list.txt) do nsrmm
> > -y -d -S %%a/%%b
> >
> > so that we clear out the adv_file device on the storage node.
> >
> > --
> > Michael Leone
> > Network Administrator, ISM
> > Philadelphia Housing Authority
> > 2500 Jackson St
> > Philadelphia, PA 19145
> > Tel: 215-684-4180
> > Cell: 215-252-0143
> > <mailto:michael.leone AT pha.phila DOT gov>
> >
> > 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
> >
>
> NOTICE
> This e-mail and any attachments are confidential and may contain
> copyright material of Macquarie Group Limited or third parties. If
> you are not the intended recipient of this email you should not
> read, print, re-transmit, store or act in reliance on this e-mail or
> any attachments, and should destroy all copies of them. Macquarie
> Group Limited does not guarantee the integrity of any emails or any
> attached files. The views or opinions expressed are the author's own
> and may not reflect the views or opinions of Macquarie Group Limited.
>
> 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
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
|