Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Clustering > Server 2008 failover cluster...force change of IP on failover

Reply
Thread Tools Display Modes

Server 2008 failover cluster...force change of IP on failover

 
 
Jeff Strubberg
Guest
Posts: n/a

 
      07-29-2009
We have two 2008 server boxes with Hyper V loaded and virtual servers running
happily. We use a product called GeoCluster to replicate from on elocal disk
to another, allowing us to separate the two servers from a shared disk
resource.

With this configuration,we can run a cluster that is geographically
dispersed and has nodes in seperate subnets on our WAN. Where we run into a
problem is that virtual machines in the cluster do not change IP addresses
when they migrate from one host to another.

Writing a script to change the IP address and gateway address is fairly
trivial. Where I am stuck is how to trigger that script? Does 2008 failover
provide any way to call a routine only when failover occurs?
 
Reply With Quote
 
 
 
 
John Toner [MVP]
Guest
Posts: n/a

 
      07-29-2009
You could add a generic script resource to your Hyper-V Application Group.
This resource would be triggered any time the resource comes online.

Regards,
John

Visit my blog: http://msmvps.com/blogs/jtoner

"Jeff Strubberg" <> wrote in message
news:2058FB59-8929-43D5-B71E-...
> We have two 2008 server boxes with Hyper V loaded and virtual servers
> running
> happily. We use a product called GeoCluster to replicate from on elocal
> disk
> to another, allowing us to separate the two servers from a shared disk
> resource.
>
> With this configuration,we can run a cluster that is geographically
> dispersed and has nodes in seperate subnets on our WAN. Where we run into
> a
> problem is that virtual machines in the cluster do not change IP addresses
> when they migrate from one host to another.
>
> Writing a script to change the IP address and gateway address is fairly
> trivial. Where I am stuck is how to trigger that script? Does 2008
> failover
> provide any way to call a routine only when failover occurs?



 
Reply With Quote
 
Jeff Strubberg
Guest
Posts: n/a

 
      07-30-2009
Dave;
Not sure our applications would allow a roaming address. Also, wouldn't
that leave you waiting on a dns update after a failover before clients could
reconnect?



"daveberm" wrote:

> On Jul 29, 1:29 pm, Jeff Strubberg
> <JeffStrubb...@discussions.microsoft.com> wrote:
> > We have two 2008 server boxes with Hyper V loaded and virtual servers running
> > happily. We use a product called GeoCluster to replicate from on elocal disk
> > to another, allowing us to separate the two servers from a shared disk
> > resource.
> >
> > With this configuration,we can run a cluster that is geographically
> > dispersed and has nodes in seperate subnets on our WAN. Where we run into a
> > problem is that virtual machines in the cluster do not change IP addresses
> > when they migrate from one host to another.
> >
> > Writing a script to change the IP address and gateway address is fairly
> > trivial. Where I am stuck is how to trigger that script? Does 2008 failover
> > provide any way to call a routine only when failover occurs?

>
> Why not just us DHCP assigned IP addresses and create a reservation
> for each server?
>

 
Reply With Quote
 
Jeff Strubberg
Guest
Posts: n/a

 
      07-30-2009
John,

That resource would move with the machine, correct? Meaning it would assign
the wrong IP address half the time. I'm not sure that's a big problem, since
IT personnel would likely be present for the move back to primary hardware.

"John Toner [MVP]" wrote:

> You could add a generic script resource to your Hyper-V Application Group.
> This resource would be triggered any time the resource comes online.
>
> Regards,
> John
>
> Visit my blog: http://msmvps.com/blogs/jtoner
>
> "Jeff Strubberg" <> wrote in message
> news:2058FB59-8929-43D5-B71E-...
> > We have two 2008 server boxes with Hyper V loaded and virtual servers
> > running
> > happily. We use a product called GeoCluster to replicate from on elocal
> > disk
> > to another, allowing us to separate the two servers from a shared disk
> > resource.
> >
> > With this configuration,we can run a cluster that is geographically
> > dispersed and has nodes in seperate subnets on our WAN. Where we run into
> > a
> > problem is that virtual machines in the cluster do not change IP addresses
> > when they migrate from one host to another.
> >
> > Writing a script to change the IP address and gateway address is fairly
> > trivial. Where I am stuck is how to trigger that script? Does 2008
> > failover
> > provide any way to call a routine only when failover occurs?

>
>
>

 
Reply With Quote
 
Jeff Strubberg
Guest
Posts: n/a

 
      07-30-2009
The more I think about it, the better this solution seems. Are MAC addresses
in 2008 virtual machiens stable, or are they dynamically assigned? If I had
a stable MAC, I could set a reservation in each of the two cisco switches
involved, then leave the virtual machine in DHCP mode.

"daveberm" wrote:

> On Jul 29, 1:29 pm, Jeff Strubberg
> <JeffStrubb...@discussions.microsoft.com> wrote:
> > We have two 2008 server boxes with Hyper V loaded and virtual servers running
> > happily. We use a product called GeoCluster to replicate from on elocal disk
> > to another, allowing us to separate the two servers from a shared disk
> > resource.
> >
> > With this configuration,we can run a cluster that is geographically
> > dispersed and has nodes in seperate subnets on our WAN. Where we run into a
> > problem is that virtual machines in the cluster do not change IP addresses
> > when they migrate from one host to another.
> >
> > Writing a script to change the IP address and gateway address is fairly
> > trivial. Where I am stuck is how to trigger that script? Does 2008 failover
> > provide any way to call a routine only when failover occurs?

>
> Why not just us DHCP assigned IP addresses and create a reservation
> for each server?
>

 
Reply With Quote
 
Russ Kaufmann
Guest
Posts: n/a

 
      07-31-2009
"Jeff Strubberg" <> wrote in message
news:970D9F83-6D8A-4FD9-A66E-...
> Dave;
> Not sure our applications would allow a roaming address. Also, wouldn't
> that leave you waiting on a dns update after a failover before clients
> could
> reconnect?


Yes, and this is true for almost every multi-site type of failover. Clients
need to get the new IP and start using it, which requires low TTLs on the
host records.

--
Russ Kaufmann,
MVP, MCSE: Messaging and Security, MCT, MCITP, MCTS and other stuff

ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp

 
Reply With Quote
 
Russ Kaufmann
Guest
Posts: n/a

 
      07-31-2009
"Jeff Strubberg" <> wrote in message
news:EF676189-B50D-46EC-A678-...
> The more I think about it, the better this solution seems. Are MAC
> addresses
> in 2008 virtual machiens stable, or are they dynamically assigned?


MAC addresses are based on the MAC address of the physical NIC being used.


--
Russ Kaufmann,
MVP, MCSE: Messaging and Security, MCT, MCITP, MCTS and other stuff

ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp

 
Reply With Quote
 
Russ Kaufmann
Guest
Posts: n/a

 
      07-31-2009
"Russ Kaufmann" <> wrote in message
news:C0666F41-0347-4627-905E-...
> "Jeff Strubberg" <> wrote in
> message news:970D9F83-6D8A-4FD9-A66E-...
>> Dave;
>> Not sure our applications would allow a roaming address. Also, wouldn't
>> that leave you waiting on a dns update after a failover before clients
>> could
>> reconnect?

>
> Yes, and this is true for almost every multi-site type of failover.
> Clients need to get the new IP and start using it, which requires low TTLs
> on the host records.


Augh... Back to your question...

If you use DHCP with reservations in each location, then the MAC address of
the VM will indeed be stable and can be used in each location.

--
Russ Kaufmann,
MVP, MCSE: Messaging and Security, MCT, MCITP, MCTS and other stuff

ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp

 
Reply With Quote
 
Jeff Strubberg
Guest
Posts: n/a

 
      07-31-2009

I agree, a virtual machine that could handle geographic dispersion over a
layer 3 network would be quite an enhancement. As for clients picking up the
new IP, this box runs a single app. I can change the client side icons to
call a dns refresh, then the application. That should cut changeover down to
just how long it takes for the virtual machine to report the IP change.

Thanks Dave, Russ. This looks like a much better solution than me trying to
graft a layer two link between two layer three sites.

"daveberm" wrote:

> On Jul 30, 5:27 pm, Jeff Strubberg
> <JeffStrubb...@discussions.microsoft.com> wrote:
> > The more I think about it, the better this solution seems. Are MAC addresses
> > in 2008 virtual machiens stable, or are they dynamically assigned? If I had
> > a stable MAC, I could set a reservation in each of the two cisco switches
> > involved, then leave the virtual machine in DHCP mode.
> >
> >
> >
> > "daveberm" wrote:
> > > On Jul 29, 1:29 pm, Jeff Strubberg
> > > <JeffStrubb...@discussions.microsoft.com> wrote:
> > > > We have two 2008 server boxes with Hyper V loaded and virtual servers running
> > > > happily. We use a product called GeoCluster to replicate from on elocal disk
> > > > to another, allowing us to separate the two servers from a shared disk
> > > > resource.

> >
> > > > With this configuration,we can run a cluster that is geographically
> > > > dispersed and has nodes in seperate subnets on our WAN. Where we run into a
> > > > problem is that virtual machines in the cluster do not change IP addresses
> > > > when they migrate from one host to another.

> >
> > > > Writing a script to change the IP address and gateway address is fairly
> > > > trivial. Where I am stuck is how to trigger that script? Does 2008 failover
> > > > provide any way to call a routine only when failover occurs?

> >
> > > Why not just us DHCP assigned IP addresses and create a reservation
> > > for each server?- Hide quoted text -

> >
> > - Show quoted text -

>
> As far as I know and in my experience the MAC address is stable once
> the VM is created. However, you always can change the MAC to be
> static as part of the configuration just to be sure. Regardless of
> how you change the IP address, you will have to deal with clients
> caching the old IP address. I suggest you set the TTL of the A record
> of your server to 5 minutes to help with that issue. Of course you
> will have to deal with AD replication as well, so depending upon your
> AD topology, it could be a while before all of your clients get the
> new IP address.
>
> Would you be interested in a cluster resource that would automatically
> fix the IP address of a VM after switchover and force DNS to replicate
> the change throughout the AD forest? Sounds like a great enhancement
> to the Virtual Machine resource or for a 3rd party developer.
>

 
Reply With Quote
 
John Toner [MVP]
Guest
Posts: n/a

 
      07-31-2009
Yes, the resource would move with the machine. You would need to develop the
script so that it checks the owning node and then assigns the proper
address.

Regards,
John

Visit my blog: http://msmvps.com/blogs/jtoner

"Jeff Strubberg" <> wrote in message
news:533B9522-E2DA-4E91-B581-...
> John,
>
> That resource would move with the machine, correct? Meaning it would
> assign
> the wrong IP address half the time. I'm not sure that's a big problem,
> since
> IT personnel would likely be present for the move back to primary
> hardware.
>
> "John Toner [MVP]" wrote:
>
>> You could add a generic script resource to your Hyper-V Application
>> Group.
>> This resource would be triggered any time the resource comes online.
>>
>> Regards,
>> John
>>
>> Visit my blog: http://msmvps.com/blogs/jtoner
>>
>> "Jeff Strubberg" <> wrote in
>> message
>> news:2058FB59-8929-43D5-B71E-...
>> > We have two 2008 server boxes with Hyper V loaded and virtual servers
>> > running
>> > happily. We use a product called GeoCluster to replicate from on
>> > elocal
>> > disk
>> > to another, allowing us to separate the two servers from a shared disk
>> > resource.
>> >
>> > With this configuration,we can run a cluster that is geographically
>> > dispersed and has nodes in seperate subnets on our WAN. Where we run
>> > into
>> > a
>> > problem is that virtual machines in the cluster do not change IP
>> > addresses
>> > when they migrate from one host to another.
>> >
>> > Writing a script to change the IP address and gateway address is fairly
>> > trivial. Where I am stuck is how to trigger that script? Does 2008
>> > failover
>> > provide any way to call a routine only when failover occurs?

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Windows 2008 failover cluster question cojits Clustering 5 07-31-2009 09:08 AM
Re: Windows 2008 failover cluster question Russ Kaufmann Clustering 0 07-23-2009 04:02 AM
2008 Failover Cluster Phil Clustering 2 06-29-2009 03:55 PM
RE: Windows Server 2008 Failover Cluster Deinstallation-Problem sharath_bujji Clustering 0 06-25-2009 02:54 PM
Server 2008 Failover Cluster Validation (Shared Disks) JM Clustering 8 09-21-2007 03:52 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59