Unsolved
This post is more than 5 years old
5 Posts
0
1424
January 12th, 2007 03:00
Automatic Cloning with two NDMP Groups (both blocking each other)
Hi,
we have set up twobackup groups. Each is doing backup for one ndmp client.
Both groups finishing the backup but also both getting stuck on waiting for a writable clone tape.
But there are only two tape devices with dds. And both are choosed for reading for their clone sessions at the same time. So both clone sessions are blocking each other.
I set the clone storage node to each of its name like:
client netapp1: clone storage node - "netapp1"
client netapp2: clone storage node - "netapp2"
Is there a way to control or define the order which automatical clone session should start first, so that 2 clonings are not starting at the same time.
Otherwise could I maybe set only one netapp for cloning, so the other one doesnt block it?
Thanks in advance
Harald
we have set up twobackup groups. Each is doing backup for one ndmp client.
Both groups finishing the backup but also both getting stuck on waiting for a writable clone tape.
But there are only two tape devices with dds. And both are choosed for reading for their clone sessions at the same time. So both clone sessions are blocking each other.
I set the clone storage node to each of its name like:
client netapp1: clone storage node - "netapp1"
client netapp2: clone storage node - "netapp2"
Is there a way to control or define the order which automatical clone session should start first, so that 2 clonings are not starting at the same time.
Otherwise could I maybe set only one netapp for cloning, so the other one doesnt block it?
Thanks in advance
Harald
0 events found
No Events found!


ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
January 12th, 2007 03:00
via cron. The advantage of automatical cloning is
that it would start right after the backup is
finished and only if its finished.
You can check with script if backup is finished and if drives are idle and if they are run it. Put that to run every hour or so and that's would be one way of doing it.
for instance, the cloning scripts might fail since
the drives are still busy. An extra manual start
would be required.
With automatic cloning it would get delayed too. Started cloning would wait for drive to become available and carry on when ready.
Usually environments are set to have backups over the night and cloning over the day. Not sure if that can be applied in your case.
setting the clone storage node for both filers to
explicit netapp2
client netapp1: clone storage node - "netapp2"
client netapp2: clone storage node - "netapp2"
In that case you still need two devices as before and two groups could overlap again. You would have 1 target instead of two, but still 2 sources.
haentsch
5 Posts
0
January 12th, 2007 03:00
But I suppose scripts can only run at a certain time via cron. The advantage of automatical cloning is that it would start right after the backup is finished and only if its finished.
In cases when backup gets delayed by missing media for instance, the cloning scripts might fail since the drives are still busy. An extra manual start would be required.
Thats why I prefer the automatic cloning.
What if I would only use one clone storage node. Like setting the clone storage node for both filers to explicit netapp2
client netapp1: clone storage node - "netapp2"
client netapp2: clone storage node - "netapp2"
Cheers
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
1
January 12th, 2007 03:00
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
January 12th, 2007 04:00
weekends I guess I also have to run different scripts
according to the Networker schedule calendar to check
what group has finished, do I?
Well, one approach would to check if devices are available - if they are then check mediadb for saveset without clone (for specific clients or group unless you clone everything) and then clone those. That can be done with single line script.
after and doesn't depend when the script is started
next.
I see that as major problem with automatic. I wish my backups not to be limited by the fact they can't be written to tape because drive is being used by cloning process. Also, with script you can sort first savesets according not spanning tapes thus achieving faster cloning results. Not sure about current NW versions, but that was not the case with automatic cloning before.
haentsch
5 Posts
0
January 12th, 2007 04:00
time
that it would start right after the backup is
finished and only if its finished.
You can check with script if backup is finished and
if drives are idle and if they are run it. Put that
to run every hour or so and that's would be one way
of doing it.
Ok. When I use different groups during the week and weekends I guess I also have to run different scripts according to the Networker schedule calendar to check what group has finished, do I?
for instance, the cloning scripts might fail since
the drives are still busy. An extra manual start
would be required.
With automatic cloning it would get delayed too.
Started cloning would wait for drive to become
available and carry on when ready.
Right, thats clear, but at least it starts right after and doesnt depend when the script is started next.
Usually environments are set to have backups over the
night and cloning over the day. Not sure if that can
be applied in your case.
Yes, would work except for the full backup wich happens monthly. This would take then longer than 8 hours. But this happens on the weekend anyway.
Like
explicit netapp2
client netapp1: clone storage node - "netapp2"
client netapp2: clone storage node - "netapp2"
In that case you still need two devices as before and
two groups could overlap again. You would have 1
target instead of two, but still 2 sources.
Ok, makes sence. I thought there could be a logic inside networker to realize that only 2 tapes are available and therefore only one cloning session starts by another.
Ok, I think I have two options:
- Using cloning scripts
- Using one group so that it backs up one filer by another which will take twice as much since they not backup in parallel to the devices)
Guru4
19 Posts
0
May 31st, 2007 12:00
Why not merge both filder or clusters in one group that way the auto cloning dont need four devices ( assuming two are reading, two are writing)
pgerke
35 Posts
1
June 1st, 2007 12:00
- use the savepnpc command for one of the groups
- use the post backup script to cause that group to pause after it finishes, such as by adding a sleep for an hour or two
This would allow time for Legato to unload the drive so the other group could use it to start its clone. And when the post backup 'pause' script for this group finally finishes, the group would wait for the two tape drives to become available and then run its automatic clone.
This would allow you to start the backups at the regular time and would allow automatic cloning (which I prefer to scripted cloning, but can't use in my environment because of the quantity of backup groups to be backed up during each backup window).
Let me know if you would like some more detail on setting up this idea.
Good Luck.
haentsch
5 Posts
0
October 8th, 2007 10:00
I will use the savepnpc command amd write a post backup script. This script will check for active running Groups. If there is only its own group in active running state the script will finish.
Thanks
Guru4
19 Posts
0
October 10th, 2007 12:00