Skip navigation

Lion IP failover

1196 Views 11 Replies Latest reply: Oct 14, 2013 5:31 PM by coocooforcocoapuffs RSS
kevin209 Calculating status...
Currently Being Moderated
Aug 5, 2011 8:54 PM

Hi --

 

Is there a way to set up IP Failover in OS X Lion Server.  I see instructions for previous server editions, but can't locate any for the Lion release.  I tried to edit the hostconfig files like listed for previous releases and this did not work.

 

Thanks.

Mac mini, Mac OS X (10.7), Lion Server
  • nei0angei0 Level 1 Level 1 (5 points)
    Currently Being Moderated
    Dec 22, 2011 12:14 PM (in response to kevin209)

    Nope sorry sir. It has been removed!!!!!!!!!!!!!!

  • nei0angei0 Level 1 Level 1 (5 points)
    Currently Being Moderated
    Dec 22, 2011 12:44 PM (in response to nei0angei0)

    Fail over replacement software-My only option was to create a process made up of 3 scripts that fully simulate what heartbeatd and failoverd provided on the previous systems. They check for constant availability and monitor services. When issues are detected they try and repair the issue, then fail over if not successful. Right I am using this with Two servers that do not share the same file pool. They nightly sync so if a fail over occurs, the data is from the night before until we can bring the main server up and sync it.

  • lingem Level 1 Level 1 (0 points)
    Currently Being Moderated
    Sep 28, 2013 1:27 AM (in response to nei0angei0)

    Can you share those scripts, or are they publicly available?

  • nei0angei0 Level 1 Level 1 (5 points)
    Currently Being Moderated
    Oct 2, 2013 6:57 PM (in response to lingem)

    Sure if there is still a need I will be publishing my solution soon. I am permantely moving away from OSX for any server related activities.

  • coocooforcocoapuffs Level 3 Level 3 (845 points)
    Currently Being Moderated
    Oct 2, 2013 7:10 PM (in response to nei0angei0)

    Sure would love to see a documented solution to this... I have two Lion-based mac mini servers to play with, and that actually need this functionality. Best of luck!

  • lingem Level 1 Level 1 (0 points)
    Currently Being Moderated
    Oct 3, 2013 4:09 AM (in response to nei0angei0)

    Yes, there is still need for this. Would be great if you shared information about the process and source code/scripts.

  • nei0angei0 Level 1 Level 1 (5 points)
    Currently Being Moderated
    Oct 3, 2013 7:09 PM (in response to kevin209)

    What is everyone looking to monitor specifically for fail over? The ones I designed specifically were for a file share server. If either SMB or AFP was down, it would shut the server off and the back up server would then kick on its services and take the IP. If you had other things like a web server on the same box, it would go down also. There is a way to separate (where there is a will there is a way) but I would need to look into it.

     

    So everyone, please tell me what your heart's desires are.

     

    Thank you

  • coocooforcocoapuffs Level 3 Level 3 (845 points)
    Currently Being Moderated
    Oct 3, 2013 10:02 PM (in response to nei0angei0)

    I would just use for web server services. The most common application here would be when one mac mini server went down, that the other mac mini server would kick in. Thx!

  • John Lockwood Level 5 Level 5 (5,075 points)
    Currently Being Moderated
    Oct 4, 2013 6:11 AM (in response to nei0angei0)

    If you made your scripts modular it should be possible to make it fit more configurations. First would be the need for a heartbeat monitor (and server). Then would be a script to take over the IP, and then would be a script to start (or restart) a service e.g. file-services (AFP and/or SMB), web, email, calendar.

     

    The hearbeat monitor script could have lines calling scripts which would start specific service(s) and if you comment out or uncomment a line it would start the service.

     

    For the benefit of everyone else, some services could be managed by a DNS loadbalancer and the use of VIPs (virtual IP addresses). However OpenDirectory and PasswordServer and DHCP would not be possible this way, so these services as used to be possible with Snow Leopard Server would need an IP-failover approach like discussed here.

  • nei0angei0 Level 1 Level 1 (5 points)
    Currently Being Moderated
    Oct 13, 2013 12:48 PM (in response to John Lockwood)

    Ok, I am almost done cleaning up the code and making it more universal. I had to go back to a few versions, right now it doesn't do heartbeat in the traditional sense (a daemon waiting for input on one server, and a daemon outputting data on another) rather it is just two different ping scripts with timeout thresholds that control the flow of actions. I am not sure what avenue I should use to share the code base. Any suggstions?

  • coocooforcocoapuffs Level 3 Level 3 (845 points)
    Currently Being Moderated
    Oct 14, 2013 5:31 PM (in response to nei0angei0)

    I have no expierece publishing, but this site seems good to download stuff:

    http://sourceforge.net/publish/

    best of luck with that!

    coocoo

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.