Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 7, 2012, 04:12 AM   #1
lucaspkm
macrumors member
 
Join Date: Apr 2010
OSX 10.7.4 Lion Server IP Failover

Hi guys,

anyone figure it out how to do it for lion servers?
lucaspkm is offline   0 Reply With Quote
Old Jul 27, 2012, 06:02 PM   #2
nei0angei0
macrumors newbie
 
Join Date: Jul 2012
yessir, best thing to do is create a couple applescripts that will ping your servers. You could set up a monitoring server to do this, or have each server (primary and back up) ping eachother. If ping fails, begin to do scripted actions for fail over.

You can:
-switch IP's with simple commands that change your Network location
-enable or disable protocols
-send out warning emails.

If anyone needs details PM. I was orignally going to release a GUI replacement for fail over but lost my motivation after getting a new job.

Last edited by nei0angei0; Jul 27, 2012 at 06:18 PM.
nei0angei0 is offline   0 Reply With Quote
Old Aug 7, 2012, 03:26 AM   #3
shaitan667
macrumors newbie
 
Join Date: May 2012
nei0angei0 - I am interested in this as well - could you please provide some more info on how to set this up? Would it work with 10.8?
shaitan667 is offline   0 Reply With Quote
Old Aug 8, 2012, 05:01 PM   #4
nei0angei0
macrumors newbie
 
Join Date: Jul 2012
Sure works in 10.8. I basically run two active scripts. One on each server. One runs on primary server, it's job is to verify services are active and to ping the back up server. If a service fails, it will try and restart it, if it can't be restarted the machine is taken offline. The back up server is also running a script, pinging the main server, if several ping attempts fail, it tell the machine to switch ip addressess and then start the defined services. I use this mainly with AFP/SMB failover. You can also set up a shared drive to store AFP connection tokens so the user is never interrupted, just a short 30 second delay.
nei0angei0 is offline   0 Reply With Quote
Old Aug 8, 2012, 05:31 PM   #5
nei0angei0
macrumors newbie
 
Join Date: Jul 2012
I also run one more start up script on the main server, it checks the machine on boot. You could exercise an option to have your main server do a reboot to try and resolve issues, this start up script would check to see if the reboot fixed the issue, if not it would then power off the main server allowing the back up server's ping to fail, and it will fail over as well.

What is comes down to is how much downtime and how much user warning you want to include. In one scenerio, if a protocol failed like AFP but SMB was still working, it would blast a "server reboot in 1 hour" so SMB users can still work. Then the server would send another warning before reboot. In true high availability the whole process should occur automatically in a matter of seconds or minutes.
nei0angei0 is offline   0 Reply With Quote
Old Aug 21, 2012, 01:39 AM   #6
lucaspkm
Thread Starter
macrumors member
 
Join Date: Apr 2010
Quote:
Originally Posted by nei0angei0 View Post
I also run one more start up script on the main server, it checks the machine on boot. You could exercise an option to have your main server do a reboot to try and resolve issues, this start up script would check to see if the reboot fixed the issue, if not it would then power off the main server allowing the back up server's ping to fail, and it will fail over as well.

What is comes down to is how much downtime and how much user warning you want to include. In one scenerio, if a protocol failed like AFP but SMB was still working, it would blast a "server reboot in 1 hour" so SMB users can still work. Then the server would send another warning before reboot. In true high availability the whole process should occur automatically in a matter of seconds or minutes.
cant contact you nei0angei0 has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

If you are trying to send this message to multiple recipients, remove nei0angei0 from the recipient list and send the message again.
lucaspkm is offline   0 Reply With Quote
Old Aug 21, 2012, 04:34 PM   #7
kd5jos
macrumors regular
 
Join Date: Oct 2007
Location: Denver, CO
Just to throw in a monkey wrench...

I'm 99% sure I already know the answer, BUT if I'm running SSL on the primary server, is there a way to make SSL work on the backup (through using a wildcard cert I'm guessing)?
__________________
[15" MBP 9,1, 2.6 GHz, 16 GB RAM, 750 GB Momentus XT] [Mac Mini Server, 2.53 GHz, 8 GB RAM, 1 1TB HD, 1 2 TB HD] [AirPort Extreme]
kd5jos is offline   0 Reply With Quote
Old Aug 21, 2012, 04:43 PM   #8
nei0angei0
macrumors newbie
 
Join Date: Jul 2012
Lucas, can you try again? I am not sure how I turned off private messages.

And for the second questions

An SSL certificate is linked to the public domain name, not any internal dns or ip. You should be able to install the same cert on both servers.

From another post:
"Install the cert on the primary, then export the cert with the private key and install on the failover.

When the primary goes down, the failover will take over, with the same domain name and same certificate."
nei0angei0 is offline   0 Reply With Quote
Old Aug 27, 2012, 12:51 AM   #9
lucaspkm
Thread Starter
macrumors member
 
Join Date: Apr 2010
Quote:
Originally Posted by nei0angei0 View Post
Lucas, can you try again? I am not sure how I turned off private messages.

And for the second questions

An SSL certificate is linked to the public domain name, not any internal dns or ip. You should be able to install the same cert on both servers.

From another post:
"Install the cert on the primary, then export the cert with the private key and install on the failover.

When the primary goes down, the failover will take over, with the same domain name and same certificate."
nei0angei0 has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

If you are trying to send this message to multiple recipients, remove nei0angei0 from the recipient list and send the message again.
lucaspkm is offline   0 Reply With Quote
Old Sep 19, 2012, 03:16 PM   #10
nei0angei0
macrumors newbie
 
Join Date: Jul 2012
not sure.

aim: nei0angei0.
nei0angei0 is offline   0 Reply With Quote
Old May 1, 2013, 10:17 AM   #11
etcinitd
macrumors newbie
 
Join Date: May 2013
Scripts

Can you make available the scripts?

Quote:
Originally Posted by nei0angei0 View Post
not sure.

aim: nei0angei0.
etcinitd is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Anyone upgrade from Snow Leopard Server to Mountain Lion + Server.app? talmy Mac OS X Server, Xserve, and Networking 13 Jul 14, 2013 11:22 AM
OSX Lion Server Not External Receiving Emails Knifey-Spoony Mac OS X Server, Xserve, and Networking 1 Apr 23, 2013 01:31 PM
Where is index file for default web server Lion Server rockinmyshoe Mac OS X Server, Xserve, and Networking 0 Apr 14, 2013 10:59 PM
Using older OSX version Time Machine Server to backup Mountain Lion macs. A bad idea? ooans Mac OS X Server, Xserve, and Networking 1 Nov 30, 2012 12:10 AM
Just looking at the performance, Snow Leopard server or Mountain Lion server? bl00dyg33k Mac OS X Server, Xserve, and Networking 0 Aug 23, 2012 07:55 AM

Forum Jump

All times are GMT -5. The time now is 12:32 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC