Networker

Re: [Networker] How to view progress of a clone operation?

2010-12-13 16:30:05
Subject: Re: [Networker] How to view progress of a clone operation?
From: Hirter Marcel <Marcel.Hirter AT NE DOT CH>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 13 Dec 2010 22:28:00 +0100
Hi,
Here is what I did to follow the progress of the cloning.
It give you the real time cloning paralelle sessions.

#!/usr/bin/perl -w
sub LL
{
        $MMINFO_ARG="/nsr/usr/sbin/mminfo -s vdn-nsr1 -r 
clflags,volume,name,client,totalsize -q volume='$tape' | grep CLONE ";
        open (MM, "$MMINFO_ARG |") or die;
        while (<MM>) {
        chomp $_;
        $A=$_;
        @B=split / +/, $A;
        $B[4] =~ s/(^[-+]?\d+?(?=(?>(?:\d{3})+)(?!\d))|\G\d{3}(?=\d))/$1'/g;
                if ($B[0] =~ /^i/) {
print "<tr><td width=12%>$B[0]</td><td WIDTH=20%>$B[1]</td><td 
WIDTH=25%>$B[3]</td><td width=33% align=left>$B[2]</td><td WIDTH=20% 
align=right >$B[4]</td>";
                                }
                next;
                        }
        close (MM);
}
#---- main ----
use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/html\n\n";
print "<p><H5>CLONE EN COURS</H5></p>";
open (LI, ">/tmp/clone.tmp");
print LI "option Hidden: on\n";
print LI "print type: NSR device\n";
close (LI);
print "<table style=WIDTH: 100% cellspacing=1 cellpadding=1 border=0>";
print "<tbody>";
print "<tr><td width=12%>En_cours</td><td width=20%>Volume</td><td 
width=25%>Client</td><td width=33% align=left>Name</td><td 
WIDTH=20%>Taille$B[4]</td></tr>";
open (AA, "/nsr/usr/sbin/nsradmin -s vdn-nsr1 -i /tmp/clone.tmp | grep 'volume 
name: CLONE' | ") or die "cannot get nsradmin report\n";
        while (<AA>) {
        chomp ($_);
        s/ //g;
        s/;//g;
        @lg = split /:/, ;
        $tape = $lg[1];
        LL;
                }
close (AA);
print "</tbody>";
print "</TABLE>";
exit 0;

May be It will help!
Marcel

-----Message d'origine-----
De : owner-networker AT LISTSERV.TEMPLE DOT EDU [mailto:owner-networker AT 
LISTSERV.TEMPLE DOT EDU] De la part de George Sinclair
Envoyé : lundi, 13. décembre 2010 19:32
À : EMC NetWorker discussion
Objet : How to view progress of a clone operation?

Hi,

Two questions about viewing the progress of a clone operation.

Let's suppose that I'm running a manual clone operation, using nsrclone, 
and it's processing a list of ssids (from an input file). What does it 
mean when nwadmin shows something like this in the Sessions window:

Cloning session 48 of 233 save set(s) reading from clone_volume 87 GB of 
6687 GB

I understand that 6687 GB is the total amount of data that needs to be 
cloned/read, and 233 is the total number of save sets, but the value 
following the clone_volume has always puzzled me. This value will 
change, but it doesn't start at zero and increment all the way to 6687. 
Instead, it stays at a given value for a certain period of time and then 
changes to a new value, etc., etc.

Questions:
1. Is this number the size of the current save set that it's currently 
cloning (in this case 48 of 233), or is it instead the aggregate size of 
some sub-group of ssids that it's working on within the input file?

I'm unclear on how NW decides which ssids to actually clone first and/or 
in what order, based on the ones listed in the input file. I assume that 
it optimizes wherever it can, but because the original save sets are 
multiplexed to tape, it seems possible that it's preserving this 
multiplexing, so in that case, maybe multiple (interleaved) save sets 
(say, a sub-group of the ones listed in the input file) are being cloned 
or written to the clone volume at the same time, in which case the 
aggregate of all those sizes might be reported as 87 GB of 6678 ???

2. I still use nwadmin for viewing only (it has a few nice features that 
I don't see in nmc) but nmc for configuration changes and/or viewing. I 
can't see how to get nmc to actually show me this number. If I look 
under devices, I simply see the total that it's currently written to the 
clone volume, e.g.

rd=snode:/dev/nast1 clone_volume  writjing at 60 MB/s, 434 GB

If I look under Monitoring->Sessions->Clone Sessions, I see an entry, 
but no useful information, just:

Client Name Message Source Volume Source Device Start Time Duration 
%Complete Size Total Size Target pool
--------------------------------------------------------------------
Server       cloning session                    12/13/10 3:25:32 AM
0                          Clone_pool

Seems like nwadmin is the only way to get this?

Thanks

George


-- 
George Sinclair
Voice: (301) 713-3284 x210
- The preceding message is personal and does not reflect any official or 
unofficial position of the United States Department of Commerce -
- Any opinions expressed in this message are NOT those of the US Govt. -

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

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