This post is more than 5 years old
1 Rookie
•
88 Posts
0
1318
May 17th, 2007 12:00
Cloning Scheduling?
If I want to schedule a clone job after the regular jobs have finished and I don't want to use the Automatic cloning option in the GROUP? Is the only way to do it by manually right clicking on volume / save set and run clone / or by a cron job in the operating system?
What I need to do is clone several groups, I was told the Automatic cloning feature for a lot of clients is not a good idea you can run into drive contention while the clone is running but I dont know if this is the case? What is best practice for this scenario? Thanks in advance.
What I need to do is clone several groups, I was told the Automatic cloning feature for a lot of clients is not a good idea you can run into drive contention while the clone is running but I dont know if this is the case? What is best practice for this scenario? Thanks in advance.
No Events found!


elocsin
12 Posts
0
May 17th, 2007 12:00
elocsin
12 Posts
1
May 17th, 2007 12:00
I created a script that:
1) gathers all the SSIDs to be cloned.
2) unmounts any of the source volumes from the tape drives
3) sets the "Location" field of the source volume to the clone storage node.
4) starts the clone
5) sends out a summary report of the clone
We have to use the script so that NetWorker loads the source volumes to the DDS in the clone storage nodes. The clone storage nodes sees the volumes as mounted local to them and sends the data to the Scalars via the SAN. This avoids using our slower production network for the data path.
ajw2
1 Rookie
•
88 Posts
0
May 17th, 2007 12:00
ajw2
1 Rookie
•
88 Posts
0
May 17th, 2007 12:00
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
1
May 17th, 2007 12:00
elocsin
12 Posts
0
May 17th, 2007 13:00
I didn't know you could change the "read hostname" parameter. What command would I use? I tried depending on the idle device timeout before but it wasn't always reliable. Plus, my script can be used to restart a failed cloned session so the unloading part is useful if you restart right away.
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
May 17th, 2007 13:00
With 30 drives and multiple storage nodes I would also use script of course. You can change your script by setting read hostname before nsrclone to force "source node". With DDS unloading devices can be controlled via idle device timeout so you don't need to worry about that.
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
May 17th, 2007 14:00
I assume you have function for each nsrclone set (actually you probably split those to get parallel jobs) per sn so the main part would look like
Of course, $NSRADMIN points to full path of nsradmin on your system in variable areas somewhere within your script.
One thing to pay attention is when you kill cloning process. "Cloned" instance gets clflags "a" as aborted, but it also increases copies count. I assume you query is against copies=1 if dealing with data on tape so potentially if you don't watch out you may end up with data not cloned if you have stopped cloning while running.
ajw2
1 Rookie
•
88 Posts
0
May 18th, 2007 06:00
elocsin
12 Posts
0
May 18th, 2007 06:00
Thanks!
Eric
elocsin
12 Posts
0
May 18th, 2007 06:00
if (( $OK_FLAG < 1 ))
then
< Your cloning commands here >
else #Reschedule clone
print "$GROUP cloning has been delayed 10 minutes" | mailx -s "$GROUP cloning has been delayed 10 minutes" daily_summary_email
at now + 10 minutes <
> /dev/null 2>&1 EOF
fi
Message was edited by:
Eric Locsin
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
May 18th, 2007 06:00
ajw2
1 Rookie
•
88 Posts
0
May 29th, 2007 08:00
Question for you where in the script do you specify the 10 minute waiting period for the reschedule of the job?
ajw2
1 Rookie
•
88 Posts
0
May 29th, 2007 08:00
elocsin
12 Posts
0
May 29th, 2007 08:00
at now + 10 minutes <
{Your clone script here} > /dev/null 2>&1
EOF