can we do vMotion between two data center
Dear team,
Can we do vMotion between two data center (esxi5, x)
Can we do SVMotion between two data center (esxi5, x)
Note: it is not a physical data center, it is a virtual data center
can we do vMotion between clusters (esxi5.x)
can we do SVMotion between clusters (esxi5.x)
concerning
Mr. VMware
Can we do vMotion between two data center (esxi5, x)
NO, you can't.
Can we do SVMotion between two data center (esxi5, x)
Yes, as long as data warehouses are shared.
can we do vMotion between clusters (esxi5.x)
Yes, as they perform the same CPU families.
can we do SVMotion between clusters (esxi5.x)
Yes, as long as data warehouses are shared.
Tags: VMware
Similar Questions
-
Can we do vMotion between two datacenter if VM is poweredoff
Dear team,
Can we do vMotion between two data center (esxi5, x)
Can we do SVMotion between two data center (esxi5, x)
Note: it is not a physical data center, it is a virtual data center
can we do vMotion between clusters (esxi5.x)
can we do SVMotion between clusters (esxi5.x)
concerning
Mr. VMware
Can we do vMotion between two data center (esxi5, x)
Yes.
Can we do SVMotion between two data center (esxi5, x)
Yes.
can we do vMotion between clusters (esxi5.x)
Yes.
can we do SVMotion between clusters (esxi5.x)
Yes.
-
FabricPath or OTV between two data center using Direct fiber cable
Hello
I have two data center both of them has the same equipment N7k, N5k and N2k, and we want the dataCenter being active/active, I'm really confused to use OTV or FabricPath characteristic, if someone can help me with my scenario and explain to me what is the best solution and advantage and disadvantage between OTV and PabrcPath.
Many thanks in advance
Hi Steven,
No problem, I'll go through your points as completely as possible. I advise you to read more about these protocols, maybe if you have access to INE or similar, see their videos on this. I would also like to say again that I have not seen all documentation Cisco indicating that FabricPath to be used as a DCI.
With regard to the way fabric you ask what follows...
1. only can use it between two datacenters of you have more we can't, please correct me?
No, you can use the path of fabric with more than two data centers, but even with OTV, you can use it with more than two data centers.
2. HSRP localization can not be implemented as OTV. However You can have two differnet Gateways at the Data Center 1 and 2 using two different HSRP groups. If server is moved dynamically from, (i didn't understand this point can you please explain with example?
OK, so this is a GREAT topic. Location of HSRP CAN be implemented with OTV, but cannot be implemented with fabric path. First hop redundancy protocols can be localized and is supported by Cisco with OTV, this basically allows the same default gateway to reside in two of your data centers providing the ACTIVE/ACTIVE configuration. So no matter where your VM is, they did not change their default, even if gateway your servers to move to the other datacenter.
If we didn't have this, we would have only an active member of HSRP divided between DC and things would be extremely troublesome in regard to traffic flows. A virtual machine in DC2 VLAN needs to talk to host in VLAN B. But the default gateway is completely in DC1. So frame is sent to the ICD in DC1, then the gateway by default, routes packets VLAN B. This VLAN B lies in fact in DC2, so now it has to go all the way back to DC2. You get my point...? :)
With localization happen only local to the domain controller. If all servers / VMS in the domain controller can speak locally to its "own" default gateway.
3. unknown unicast flooding (can you give me an example?)
Unknown unicast traffic is unicast packets/images with unknown destination mac address. By default, switches are flooding this type of traffic to all ports in the VLAN. With path of fabric that would take place during your DCI, but with OTV, it is all taken care locally, so massive savings on bandwidth here and it is much more effective.
4. ARP optimization between Data Center (can you give an example regarding ARP optimization?)
There is another function of OTV, which makes it far superior on the way of tissue. Essentially, we are reducing the volume of traffic passing through the transport infrastructure (i.e. ICD)
When ARP, host in DC1 to host that responds in DC2, we use links and there is travel time of package that might be minimal, but is not the most optimal. OTV AED - or edge device spy ARP response and subsequently knows that this mapping exists from there. ARP takes place after the first Protocol, the EDA almost proxy ARP to DC1 so the ARP request locally does not have to travel to DC2.
5. Typically two flows (Odd VLANs by OTV-VDC-1 and even vlans by OTV-VDC-2) carry the entire layer 2 traffic flow between the two Data Centes. Hence the load balancing the links is not efficient. ( (can you explain compare with FabricPath if you have example?)
IMHO, it's bad and good. Balance the workload of the OTV if you have more than an AED on site. VLAN strange appointment via an AED, even numbered VLAN go through the other. Depending on traffic on VLANs, this could become unbalanced. Fabric used by all its links to mac addresses 'route' to the respective SID - ID switch she needs to do. So perhaps a better uniformity of split here.
6. VLAN scalability for OTV is lower than FabricPath as of this content writing. (can you explain what this mean i didn't understand it)
I completely disagree with this comment. I too do not understand.
7. Resiliency of FabricPath network is better than OTV in some failure scenarios.(can me an example ?)
I also disagree with that. Resilience of path of fabric could be same as OTV or perhaps better. However, my personal experience is that OTV fine tuning with things like BFD failover is much faster!
Fabric is good because the control of aircraft ISIS and its operation is admirable, but could say the same for the OTV.
Lets say one of the DCI links had to die, the transmission of the tissue path would continue through the other links, then perhaps for low latency, high frequency, environments that would be beneficial. OTV will change the EDA and re - learn mac, announced by other AEDS, addresses, but as I said, the time could be extremely minimal and tuning. This isn't a big deal, unless you need under second time convergence!
I hope that I have answered your questions, I recommend use for your DCI OTV, use the path of fabric for your inside of local switching in your DC. This has been implemented repeatedly and the links I sent you the models validated Cisco also point out.
Remember - fabric has been built to be a step towards TRILL, and replacement of protocols spanning-tree, OTV was built especially for the dci. They are both built and examples of specific design. It makes no sense to get these confused or mixed up, unless there is a real and pressing the case.
Joel conclusion is right, use the right tools for the job. If the use case is good for the FP then OK, if not, OTV.
Rcmnd - reading http://www.packetmischief.ca/2013/04/23/DCI-series-overlay-transport-vir...
These are just my thoughts.
Bilal (CCIE #45032)
-
Script of VM failover between two data center
http://communities.VMware.com/docs/doc-7470
I came across this link and will look into it today... Just wondering if Arian had a play with this again
As we cannot afford to buy RS... that look like the way forward!
Sorting... Script simple failover taking into account Vmx were created on the side of DR.
Concerning
-
How can I determine if the current date is between two dates?
I'm trying to post a link when grave the current date between two dates. I have setup the startdate and the enddate. When he falls between the startdate one date enddate, the link will be apear. The startdate and enddate have already been formatted previously, as mm/dd/yyyyy. I tried to use the following script, nothing will do. What I am doing wrong?
< cfif startDate GTE #dateformat (now (), "MM/DD/YYYY") # AND enddate LTE #dateformat (now (), ' MM/DD/YYYY') # >
Don't know what you're talking about. I used the #dateformat(date_entered, 'mm/dd/yyyy') # for years without problem. I googled the datediff function before posting here and what I've found is datediff determines the whole number of units by which date1 is less than date2. I don't know how this can help me.
-
Number of Saturdays between two dates
Hello
How can I get number of Saturdays between two dates, including the two dates?
for example number of Saturdays between 09/05/2014 and 10/05/2014 is five
Help, please
I use oracle 10g
SQL> with t 2 as 3 ( 4 select to_date('05/09/2014 ', 'dd/mm/yyyy') from_dt 5 , to_date('05/10/2014 ', 'dd/mm/yyyy') to_dt 6 from dual 7 ) 8 select to_char(from_dt + (level-1), 'fmDay') day_ 9 , count(*) cnt 10 from t 11 connect 12 by level <= to_dt - from_dt + 1 13 group 14 by to_char(from_dt + (level-1), 'fmDay'); DAY_ CNT --------- ---------- Saturday 5 Thursday 4 Tuesday 4 Friday 5 Wednesday 4 Monday 4 Sunday 5 7 rows selected. SQL>
-
Hello
I have two dates. start date and end date.
I want to extract months between two dates
months should be as
JAN
FEB
MAR
for example.
Start - 1-jan-2014
date of end - 31 - dec - 2014
How can I do this?
Thanks and greetings
CORINE
You should always use the function MONTHS_BETWEEN...
for example
SQL > ed
A written file afiedt.buf1 with t as (select date '' 2014-01-01 as start_date date ' 2014-12-31' as double end_date)
2 --
3 end of test data
4 --
5. Select to_char (add_months (start_date, rownum-1), 'My') by month
6 t
7 * connect by rownum<=>=>
SQL > /.LUN
---
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Ms
Oct
Nov
Dec12 selected lines.
And if you want that they display, separated by commas...
SQL > ed
A written file afiedt.buf1 with t as (select date '' 2014-01-01 as start_date date ' 2014-12-31' as double end_date)
2 --
3 end of test data
4 --
5 Select listagg (to_char (add_months (start_date, rownum-1), 'My'), ',') group by month (order by rownum)
6 t
7 * connect by rownum<=>=>
SQL > /.MONTH
-----------------------------------------------------------------------------------------------------------------
Jan, Feb, Mar, Apr, may, June, July, August, Sept, Oct, Nov, Dec -
Number of occurrences of a day between two dates
Hello
I have a requirement in my code to count the number of times per day occurs between two dates. So, for example if
start date = January 1, 2014
end date = March 31, 2014
The number of times that happens day 1 is three times. That's why I want the result to be 3. My three input parameters are the number of the day, start and end dates. I know that this can be done by parsing through the days and incrementing a counter of sorts, but can it be done without any loop etc?
Looking for options of
Thank you
Birdy
SELECT COUNT (TO_CHAR (DAYS, 'DD')) IN)
SELECT DAYS START_DATE + LEVEL 1
FROM T1
CONNECT BY LEVEL<=>=>
WHERE TO_CHAR (DAYS, 'DD') ='&01';
Post edited by: Parth272025
-
How to find days between two dates in days
Hi, I want to get the days between two dates, expressed in days, how can I do this? For example, I date i.e. 1 October 10, 2013 (Thursday) and 2 as October 13, 2013 (Sunday). How can I get a production of:
Thursday, Friday, Saturday and Sunday, which are the days between Oct. 10-13, 2013. I hope you understand my point. Thank you
You can try something like this
CURSOR LOAD_PROF is
SELECT load_prof1, v_time_profile_day
OF load_profile_test
WHERE profile_day IN (select TO_CHAR(:day1+level-1,'Day')
of the double
connect by level<>
);
Kind regards
S Pax
-
Calculate the (age) years between two dates
Nice day!
I have not been able to find an answer, that I was able to use in the archives or online and would be very grateful for the help. I'm working with Adobe Acrobat Pro XI (not LiveCycle) and I have very little experience with programming (for the most part, copy / paste).
I need to create a text box that calculates the number of years between two dates entered, i.e. the age when the date of birth and death are given. Also, would be nice if she was a Virgin until the two were provided. Anyone would be able to give me the code I need to put in the custom calculation script?
Once again, any help would be much appreciated! Thank you and have a wonderful day!
For the fields for Date of birth DOB and DOD for the Date of death and age in complete years both by using a'd-mmm-yyyy' date format you can use a custom calculation to the JavaScript for the field of age as:
function GetField (cName) {}
get the field with error trapping object;
oField var = this.getField (cName);
test error;
if(oField == null) app.alert ("error during the" + cName, 1, 0);
Returns the field object;
return oField;
} / / end GetField function;function {Scand (cFormat, cString)
using date string format convert object date;
convert string to date using format;
Kai var = util.scand (cFormat, cString);
the value null is an error of conversion;
if(oDate == null) app.alert ("Conversion error" cString "by using the format" + cFormat, 1, 0);
date of return;
Return to oDate;
} / / end Scand function;clear the value of the field;
Event.Value ="";
get data dob and dod;
var oDOB = GetField ("DOB");
Var o = GetField ("DOD");treat only if DOB and DOD have value and are not null;
If (oDOB! = null & o! = null & oDOB.value! = "" & oDOD.value!) = "") {}convert the DOB and DOD to date objects.
oDOB var = util.scand ("d-mmm-yyyy", oDOB.value);
O var = util.scand ("d-mmm-yyyy", oDOD.value);get the difference over the years;
var Age = oDOD.getFullYear () - oDOB.getFullYear ();adjust for month of previous DOD DOB;
If (oDOD.GetMonth)< odob.getmonth())="">adjust the DOD before DOB date in the month of birth;
If (oDOD.GetMonth () == oDOB.getMonth () & oDOD.getDate ())< odob.getdate())="">
Set the value of the field;Event.Value = Age;
} -
Need assistance with obtaining data of users modified between two dates in IOM
Hi all
I have a 11g IOM environment where I need to write a scheduled task that needs to go out the data of users that have been modified between two dates. After the search in the forums, I've had an idea and wrote the following code for the same thing. But it doesn't seem to work. Can someone help me here please?
> //initialize upper and lower attributes to two values of oracle.sql.DATE
> Criteria1 SearchCriteria is nothing, Criteria2 = null, criteria;
> criteria1 = new SearchCriteria ("update the", lower, SearchCriteria.Operator.GREATER_EQUAL);
> Criteria2 = new SearchCriteria ("update the", plus top, SearchCriteria.Operator.LESS_EQUAL);
> criteria = new SearchCriteria (Criteria1, criteria2, SearchCriteria.Operator.AND);
> //initialize the necessary parameters, obtain a User Manager object and follow these steps
> users = umgr.search (criteria, attrNames, settings);
But this doesn't seem to work. Can someone shed light on this you? The attribute "updated on" is not available for this task? If I use a unique 'User login' attribute search criteria, this thing works and gets the user data but this does not work when I use the attribute "updated on" so made me think maybe that this attribute is not available for use via the API or something. Or maybe it's with the help of the oracle.sql.DATE is a problem here. Not sure if. So kindly help me with this.
Thanks in advance,
$idI suggest that create you a real attribute in your scheduled task called something like 'Last Run Timestamp'. The reason why I say this is that you can modify your search on this basis rather than manipulate the date of beginning and end of the last run. To retrieve the value, like any other attribute use this:
>
String lastRunTimestamp = hashMap.get ("last Run Timestamp") m:System.NET.SocketAddress.ToString ();
>
Format your time you are entered like this: "YYYY-MM-DD hh: mm: zzz ' in order to retrieve and format the value like this:
>
SimpleDateFormat time = new SimpleDateFormat ("yyyy-MM-DD hh: mm: zzz");
recover start date, so it can be updated on the ground on the scheduled task
Start date = new Date();Convert timestamp last executed so far
Date stamp = new Date();
timestamp = time.parse (lastRunTimestamp);
>
You have now your last time stamp execution that you can set your time dérirez based on.And finally, to return the last value of stamp on both scheduled run time, you started this task
>
SchedulerService task = Platform.getService (SchedulerService.class);
Task = task.lookupScheduledTask taskEntry (getName ());
JobParameter = taskEntry.getParameters () .get ("last Run Timestamp") jobparam;
JobDetails job = task.getJobDetail (getName ());
HashMapattributes = job.getAttributes ();
String timestamp = (time.format (start));
jobparam.setValue (timestamp);
Attributes.put ("last Run Timestamp", jobparam);
job.setAttributes (attributes);
task.updateJob (job);
>I hope it's useful. This is how I do all my scheduled tasks that need a timestamp.
-Kevin
-
Calculate business hours between two dates in a cursor
Hello, its me again (?).
Yesterday, I got a solution to a problem here where I need to calculate the hours between two dates, excluding Sat/Sun and from 09:00 to 18:00. I'm now putting this login in a PL/SQL block, so I can calculate it for each record in a slider, all by looping.
The logic above, I'm up here:with t (start_date ,end_date ) as (select to_date('22-oct-2012 09:00:00','dd-mon-yyyy hh24:mi:ss') start_dt, to_date('23-oct-2012 09:00:00','dd-mon-yyyy hh24:mi:ss') end_dt from dual ) , hrs (dt) as (select start_date from t union all select dt +1/24/60 from hrs where hrs.dt < (select end_date-1/24/60 from t) ) select count(*)/60 from hrs where to_char(dt,'dy') not in ('sat','sun') and to_number(to_char(dt,'hh24')) not between 18 and 23 and to_number(to_char(dt,'hh24')) not between 0 and 8 /
I really don't like if the performance is horrible because it will run once a month and should spend only 40-100 records.FOR c_record IN c_1 LOOP //For each record, check if the two dates meet the criteria and then raise the counters accordingly select to_date(c_record.REPORTADA,'dd-mon-yyyy hh24:mi:ss') INTO vFch1 FROM DUAL; SELECT to_date(c_record.INICIOREAL,'dd-mon-yyyy hh24:mi:ss') INTO vFch2 FROM DUAL; IF ((vHoras > 2) AND c_record.PRIORIDAD=3) THEN vContOk :=vContOk + 0; vContBad := vContBad+1; vContOt := vContOt+1; ELSE vContOk :=vContOk +1; vContBad := vContBad+0; vContOt := vContOt+1; END IF; IF ((vHoras > 4) AND c_record.PRIORIDAD=2) THEN vContOk :=vContOk + 0; vContBad := vContBad+1; vContOt := vContOt+1; ELSE vContOk :=vContOk +1; vContBad := vContBad+0; vContOt := vContOt+1; END IF; IF ((vHoras > 16) AND c_record.PRIORIDAD=1) THEN vContOk :=vContOk + 0; vContBad := vContBad+1; vContOt := vContOt+1; ELSE vContOk :=vContOk +1; vContBad := vContBad+0; vContOt := vContOt+1; END IF; END LOOP;
However, I can't find a way to use this connection even in this case
Could you help me?
Thank you!
Greetings,
NACEURN wrote:
I need to calculate the number of minutes between two dates, only count the hours from 9 to 18hs.CREATE OR REPLACE FUNCTION get_bus_minutes_between( p_start_date DATE, p_end_date DATE ) RETURN NUMBER IS v_return NUMBER; BEGIN with t as ( select case level when 1 then greatest(p_start_date,trunc(p_start_date) + 9 / 24) else trunc(p_start_date) + level - 15 / 24 end start_dt, case connect_by_isleaf when 1 then least(p_end_date,trunc(p_end_date) + 18 / 24) else trunc(p_start_date) + level - 8 / 24 end end_dt from dual connect by level <= trunc(p_end_date) - trunc(p_start_date) + 1 ) select sum(greatest(end_dt - start_dt,0)) * 24 * 60 work_minutes into v_return from t where trunc(start_dt) - trunc(start_dt,'iw') < 5; -- exclude weekends RETURN v_return; END; /
For example:
SQL> select get_bus_minutes_between( 2 to_date('20-oct-2012 13:00:00','dd-mon-yyyy hh24:mi:ss'), 3 to_date('22-oct-2012 13:21:00','dd-mon-yyyy hh24:mi:ss') 4 ) work_minutes 5 from dual 6 / WORK_MINUTES ------------ 261 SQL>
SY.
-
Calculate the hours between two dates
Hello
I have a requirement to count the hours with 2 given timestamps, something like:
However, I wish it would be that simple. I just need to count the hours between two timestamps for the hours of work for example, 08:00 - 17:00, MONDAY to Friday (excluding weekends).SQL> select ((to_date('22-oct-2012 13:00:00','dd-mon-yyyy hh24:mi:ss') - to_date('20-oct-2012 13:00:00','dd-mon-yyyy hh24:mi:ss'))*24) B from dual ; B ---------- 48
So lets say I have to count the hours between two dates above the result should be 18 hours not 48 (4 hours on 20/oct, 9 hours on 21/oct to 5 hours 22/oct).
How can I achieve this? Any idea will be useful.
Thank youMy query generates a list of all the hours between the start and end time, filters on the hours that are outside of the hours of work and then account for the remaining lines. Change that to partial hours must just be a case of replace the two occurrences of 1/24 with 24/01/60, then - as say you - Division COUNT (*) by 60.
There may be performance issues using techniques of generation of line like this, if you put this in a query involving the joining of several lines of other tables (for example where the dates of beginning and end are derived from several employees?) or in several days. If you don't find it then count the number of whole days (taking weekends into account) between dates and work on the partial days after that it could be better. This would probably involve a lot of statements of case (which I don't have time to test it now).
Ben
-
No.of feb 29 s between two dates
Hello
I would like to calculate feb29 between two dates currently using connect by level , but it causes the problem of performance (50 M of data)
(SELECT SUM (DECODE (TO_CHAR (start_date + LEVEL - 1,'dd - my '), 29 - feb', 1, 0)) double CONNECTION OF LEVEL < = SYSDATE - start_date + 1) ' no. OF. FEB29'
using Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit
Thank you-Small change required...
with t as (select sysdate-10000 start_dt,to_date('01-Mar-2012','dd-Mon-yyyy') end_dt from dual) select start_dt,end_dt,st_year,end_year,sum(case when mod(yr,400)=0 then 1 when mod(yr,4) = 0 then 1 else 0 end) cnt from( select start_dt,end_dt,st_year,end_year,st_year+rownum-1 yr from ( select start_dt,end_dt, extract(year from start_dt)+ case when extract(month from start_dt) < 3 then 0 else 1 end st_year, extract(year from end_dt)+ case when extract(month from end_dt) >= 3 then 0 else -1 end end_year from t) connect by st_year+rownum-1 <= end_year ) group by start_dt,end_dt,st_year,end_year SQL> / START_DT END_DT ST_YEAR END_YEAR CNT ----------- ----------- ---------- ---------- ---------- 11-may-1985 28-feb-2012 1986 2011 6 SQL> / START_DT END_DT ST_YEAR END_YEAR CNT ----------- ----------- ---------- ---------- ---------- 11-may-1985 29-feb-2012 1986 2011 6 SQL> / START_DT END_DT ST_YEAR END_YEAR CNT ----------- ----------- ---------- ---------- ---------- 11-may-1985 01-mar-2012 1986 2012 7
Published by: JAC September 26, 2012 11:44
formattingPublished by: JAC September 26, 2012 12:07
Subqueries can be avoided, added the goal of understanding -
Hello
I have my structure of the table and records build here
http://sqlfiddle.com/#! d099ef/4/7
I would like to get the records between two dates.
For example, I would get the records between October 1, 2001 and October 31, 2001.
How can I get the records. Any help is much appreciated.
Concerning
Published by: ponic on 29 August 2012 09:42ponic says:
Start End 4th Jul 12th Dec 4th Jul 10th Oct 3rd Oct 19th Nov 3rd Oct 4th Oct
I would like to have all the lines between October 1, 2001 and October 31, 2001
If the above lines because every OCTOBER under the foregoing.Thank you
Try
select * from products_range where product_start_date <= to_date('31-oct-2001', 'dd-mon-yyyy') and product_end_date >= to_date('1-oct-2001', 'dd-mon-yyyy')
Published by: Paul Horth on August 29, 2012 00:46
Maybe you are looking for
-
Dictation doesn't work after sleep
Hello I have a macbook pro retina early 2015 version running on El Capitan OS X (10.11.4). Recently, I started using the dictation feature & speech and found that it will not work after waking from sleep (most of the time that I do not close). When I
-
Kindle Fire HDX: Kindle HDX Fire
I use the HP eprint app on my HDX Kindle fire. This is a great app! Can you help me to clear an error message from the status bar? Is not clear, everything works, drag, I restarted the Kindle and uninstalled/reinstalled the soft feel.
-
Hello I have a problem with the scaling of a NI6229 device. Set the entry on 0.0V, then the return value of aiPolynomialScaler (.) -10.63V and if the 10V input, I get - 0.63V.
-
Hi, I have developed a .vi to produce the optical power in mW of an optical fiber. Fiber optics has built in the detector optics tap/picture producing an output voltage. I need this tension in correlation with the optical output intensity at the en
-
Updates to security for Office 2007 will not install
OK - I have WIndows 7 Home 64 bit, installed office 2007 and the seucutiy updates will not be installed. I use AVG antiv virus as well as the windows firewall. I tried to install updates of security with both of them is off, does not.Runs an e8400