Networker

Re: [Networker] multiple pools for mminfo possible?

2004-03-05 11:06:40
Subject: Re: [Networker] multiple pools for mminfo possible?
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Fri, 5 Mar 2004 08:06:31 -0800
> Hi
>
> As subject header.
>
> Reason is I am doing cloning for a group of savesets spanning across
> multiple pools, eg
>
> nsrclone -b "Default Clone" -S `mminfo -r 'ssid' -q 'pool=MONFUL'`
>
> But I'd like to clone those from TUEFUL, WEDFUL ... FRIFUL as well.
>
> It seems mminfo doesn't allow you to specify multiple pools here.

No, it doesn't.  But you can run it multiple times, and then feed all
the results into nsrclone.  Personally, I'd change the line a bit, so
that previously cloned tapes aren't found.  Maybe add a "copies=1" to
the mminfo query.

#!/bin/perl
my @pools = qw/MONFUL TUEFUL WEDFUL THUFUL FRIFUL/;
my @ssids;
foreach my $pool (@pools)
{
   push (@ssids, `mminfo -r 'ssid' -q "pool=$pool,copies=1"`);
}
chomp @ssids;
system("nsrclone", "-b", "Default Clone", "-S", @ssids);

Something like that (but hopefully with more error checking..)

Or if you have multiple pairs of tape drives, do it like you're doing
now, but just run several 'nsrclone's at the same time.

nsrclone -b "Default Clone" -S `mminfo -r 'ssid' -q 'pool=MONFUL'`
nsrclone -b "Default Clone" -S `mminfo -r 'ssid' -q 'pool=TUEFUL'`

That gets you parallelism in the cloning process...







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

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