Hi Toasters
We run our snapmirrors overnight mostly, to a DR site which just happens to be a working office. Sometimes they're still running in the morning, and they eat all the bandwidth. We throttle them in the snapmirror management. We do this manually and its a pain and sometime we forget etc.
What I'd like to do is (probably) script and schedule some SSH commands to set the bandwidth throttle on the volumes so that they are restricted during working hours, but open out of hours. Is there a global method of doing this, or do I have configure each of my snapmirror vols separately?
Also, never actually scripted SSH before, I cant find any decent pointers, is this a regular thing to do with filers?
Thanks Dave Ashton
********************************************************************** The information contained in this e-mail and any attachments are intended for the named recipient(s) only. It may also be privileged and confidential. If you are not an intended recipient, you must take no action as a result of receiving it, including, but not limited to copying, distributing and amending it. If this communication has been sent to you in error, please contact us immediately and do not show the communication to any other party.
Rullion shall have no liability whatsoever in respect of the content of the communication and makes no warranty as to accuracy. Any views or opinions presented are solely those of the author.
Viruses:- Although we have taken steps to ensure that this e-mail and attachments are free from viruses, we advise that in keeping with good computing practice, the recipient should ensure they are actually virus free.
**********************************************************************
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Is there a global method of doing this, or do I have configure each of my snapmirror vols separately?
According to the man page anyway, the snapmirror throttle command is on a per volume basis.
Also, never actually scripted SSH before, I cant find any decent pointers,
is this a regular thing to do with filers?
Yup, this is a standard thing for me anyway. Setting up ssh keys to gain passwordless logins to the filers for scripting is also really useful. You could also probably use the Netapp API to do this type of thing.
Another alternative that I though of after reading this tidbit of the snapmirror throttle man page:
The new value will be used only for the current
transfer. The next scheduled transfer will use the kbs value specified in the snapmirror.conf file. If the value for the kbs option in the snapmirror.conf is changed while transfer is going on, then the new value will take effect within two minutes.
Is that you could have a simple script which just changes all the throttle values in the snapmirror.conf file at the time you want the values throttled and sets them back when that timeframe is over.
Good luck, Romeo
On Mon, Mar 30, 2009 at 11:45 PM, David.Ashton@rullion.co.uk wrote:
Hi Toasters
We run our snapmirrors overnight mostly, to a DR site which just happens to be a working office. Sometimes they're still running in the morning, and they eat all the bandwidth. We throttle them in the snapmirror management. We do this manually and its a pain and sometime we forget etc.
What I'd like to do is (probably) script and schedule some SSH commands to set the bandwidth throttle on the volumes so that they are restricted during working hours, but open out of hours. Is there a global method of doing this, or do I have configure each of my snapmirror vols separately?
Also, never actually scripted SSH before, I cant find any decent pointers, is this a regular thing to do with filers?
Thanks Dave Ashton
The information contained in this e-mail and any attachments are intended for the named recipient(s) only. It may also be privileged and confidential. If you are not an intended recipient, you must take no action as a result of receiving it, including, but not limited to copying, distributing and amending it. If this communication has been sent to you in error, please contact us immediately and do not show the communication to any other party.
Rullion shall have no liability whatsoever in respect of the content of the communication and makes no warranty as to accuracy. Any views or opinions presented are solely those of the author.
Viruses:- Although we have taken steps to ensure that this e-mail and attachments are free from viruses, we advise that in keeping with good computing practice, the recipient should ensure they are actually virus free.
This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Well you can do it on a per secondary basis as well, but that does not solve the times. I've always used rsh to do this kind of stuff in the past but the security implications scare me now.
________________________________
From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of Romeo Theriault Sent: Monday, March 30, 2009 11:32 AM To: David.Ashton@rullion.co.uk; toasters@mathworks.com Subject: Re: Throttling
Is there a global method of doing this, or do I have configure each of my snapmirror vols separately?
According to the man page anyway, the snapmirror throttle command is on a per volume basis.
Also, never actually scripted SSH before, I cant find any decent pointers, is this a regular thing to do with filers?
Yup, this is a standard thing for me anyway. Setting up ssh keys to gain passwordless logins to the filers for scripting is also really useful. You could also probably use the Netapp API to do this type of thing.
Another alternative that I though of after reading this tidbit of the snapmirror throttle man page:
The new value will be used only for the current transfer. The next scheduled transfer will use the kbs value specified in the snapmirror.conf file. If the value for the kbs option in the snapmirror.conf is changed while transfer is going on, then the new value will take effect within two minutes.
Is that you could have a simple script which just changes all the throttle values in the snapmirror.conf file at the time you want the values throttled and sets them back when that timeframe is over.
Good luck, Romeo
On Mon, Mar 30, 2009 at 11:45 PM, David.Ashton@rullion.co.uk wrote:
Hi Toasters
We run our snapmirrors overnight mostly, to a DR site which just happens to be a working office. Sometimes they're still running in the morning, and they eat all the bandwidth. We throttle them in the snapmirror management. We do this manually and its a pain and sometime we forget etc.
What I'd like to do is (probably) script and schedule some SSH commands to set the bandwidth throttle on the volumes so that they are restricted during working hours, but open out of hours. Is there a global method of doing this, or do I have configure each of my snapmirror vols separately?
Also, never actually scripted SSH before, I cant find any decent pointers, is this a regular thing to do with filers?
Thanks Dave Ashton
**********************************************************************
The information contained in this e-mail and any attachments are intended for the named recipient(s) only. It may also be privileged and confidential. If you are not an intended recipient, you must take no action as a result of receiving it, including, but not limited to copying, distributing and amending it. If this communication has been sent to you in error, please contact us immediately and do not show the communication to any other party.
Rullion shall have no liability whatsoever in respect of the content of the communication and makes no warranty as to accuracy. Any views or opinions presented are solely those of the author.
Viruses:- Although we have taken steps to ensure that this e-mail and attachments are free from viruses, we advise that in keeping with good computing practice, the recipient should ensure they are actually virus free.
**********************************************************************
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Run "options replication", note that the values are kiloBYTES/second:
toaster> options replication replication.throttle.enable off replication.throttle.incoming.max_kbs unlimited replication.throttle.outgoing.max_kbs unlimited
replication.throttle.enable Enables global network throttling of snapmirror and snapvault transfers. The default value for this options is off.
replication.throttle.incoming.max_kbs This option specifies the maximum total bandwidth used by all the incoming (applied at destination) snapmirror and snapvault transfers, specified in kilobytes/sec. The default value for this option is unlimited, which means there is no limit on total bandwidth used. This option is valid only when the option replication.throttle.enable is on.
replication.throttle.outgoing.max_kbs This option specifies the maximum total bandwidth used by all the outgoing (applied at source) snapmirror and snapvault transfers specified in kilobytes/sec. The default value for this option is unlimited, which means there is no limit on total bandwidth used. This option is valid only when the option replication.throttle.enable is on.
-Simon
________________________________
From: David.Ashton@rullion.co.uk [mailto:David.Ashton@rullion.co.uk] Sent: Monday, March 30, 2009 9:46 AM To: toasters@mathworks.com Subject: Throttling
Hi Toasters
We run our snapmirrors overnight mostly, to a DR site which just happens to be a working office. Sometimes they're still running in the morning, and they eat all the bandwidth. We throttle them in the snapmirror management. We do this manually and its a pain and sometime we forget etc.
What I'd like to do is (probably) script and schedule some SSH commands to set the bandwidth throttle on the volumes so that they are restricted during working hours, but open out of hours. Is there a global method of doing this, or do I have configure each of my snapmirror vols separately?
Also, never actually scripted SSH before, I cant find any decent pointers, is this a regular thing to do with filers?
Thanks Dave Ashton
**********************************************************************
The information contained in this e-mail and any attachments are intended for the named recipient(s) only. It may also be privileged and confidential. If you are not an intended recipient, you must take no action as a result of receiving it, including, but not limited to copying, distributing and amending it. If this communication has been sent to you in error, please contact us immediately and do not show the communication to any other party.
Rullion shall have no liability whatsoever in respect of the content of the communication and makes no warranty as to accuracy. Any views or opinions presented are solely those of the author.
Viruses:- Although we have taken steps to ensure that this e-mail and attachments are free from viruses, we advise that in keeping with good computing practice, the recipient should ensure they are actually virus free.
**********************************************************************
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Unfortunately there is no way to schedule throttling using NetApp built-in means; and that is what OP asked. And what I’m looking for BTW as well ☺ So far external scripting looks like the only solution; it’s possible that Protection Manager can do it, but it is overkill in my case.
С уважением / With best regards / Mit freundlichen Grüβen
--- Andrey Borzenkov Senior system engineer
________________________________ From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com] On Behalf Of Gales, Simon Sent: Tuesday, March 31, 2009 4:03 AM To: toasters@mathworks.com Cc: David.Ashton@rullion.co.uk Subject: RE: Throttling
Run "options replication", note that the values are kiloBYTES/second:
toaster> options replication replication.throttle.enable off replication.throttle.incoming.max_kbs unlimited replication.throttle.outgoing.max_kbs unlimited
replication.throttle.enable Enables global network throttling of snapmirror and snapvault transfers. The default value for this options is off.
replication.throttle.incoming.max_kbs This option specifies the maximum total bandwidth used by all the incoming (applied at destination) snapmirror and snapvault transfers, specified in kilobytes/sec. The default value for this option is unlimited, which means there is no limit on total bandwidth used. This option is valid only when the option replication.throttle.enable is on.
replication.throttle.outgoing.max_kbs This option specifies the maximum total bandwidth used by all the outgoing (applied at source) snapmirror and snapvault transfers specified in kilobytes/sec. The default value for this option is unlimited, which means there is no limit on total bandwidth used. This option is valid only when the option replication.throttle.enable is on. -Simon
________________________________ From: David.Ashton@rullion.co.uk [mailto:David.Ashton@rullion.co.uk] Sent: Monday, March 30, 2009 9:46 AM To: toasters@mathworks.com Subject: Throttling
Hi Toasters
We run our snapmirrors overnight mostly, to a DR site which just happens to be a working office. Sometimes they're still running in the morning, and they eat all the bandwidth. We throttle them in the snapmirror management. We do this manually and its a pain and sometime we forget etc.
What I'd like to do is (probably) script and schedule some SSH commands to set the bandwidth throttle on the volumes so that they are restricted during working hours, but open out of hours. Is there a global method of doing this, or do I have configure each of my snapmirror vols separately?
Also, never actually scripted SSH before, I cant find any decent pointers, is this a regular thing to do with filers?
Thanks Dave Ashton
**********************************************************************
The information contained in this e-mail and any attachments are intended for the named recipient(s) only. It may also be privileged and confidential. If you are not an intended recipient, you must take no action as a result of receiving it, including, but not limited to copying, distributing and amending it. If this communication has been sent to you in error, please contact us immediately and do not show the communication to any other party.
Rullion shall have no liability whatsoever in respect of the content of the communication and makes no warranty as to accuracy. Any views or opinions presented are solely those of the author.
Viruses:- Although we have taken steps to ensure that this e-mail and attachments are free from viruses, we advise that in keeping with good computing practice, the recipient should ensure they are actually virus free.
**********************************************************************
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________