14 Replies Latest reply: Mar 10, 2009 4:36 PM by Bryan K. Vines
Drew Boone1 Level 1 Level 1 (40 points)
I need to move my OD master and iCal server to a different server in our company. Has anyone had any experience with this and could recommend a process for doing this?
TIA
Drew

MacBook Pro, Mac OS X (10.5.6)
  • 1. Re: Moving iCal service to a different server
    Sean Flynn Level 2 Level 2 (150 points)
    Similar need.
    Not moving OD master, just the iCal function to new OSX server host. Tried just tarring up the files and moving them to the new host, but doesn't appear to have worked.
  • 2. Re: Moving iCal service to a different server
    Cyrus Daboo Level 2 Level 2 (230 points)
    You need to make sure that permissions and extended attributes are all correctly transferred when you move the data from one machine to another.

    What problems are you seeing on the new machine?
  • 3. Re: Moving iCal service to a different server
    Drew Boone1 Level 1 Level 1 (40 points)
    Sean,
    be aware that apple does not support or suggest hosting iCal server on a machine other than the OD master.
    I was informed of this by an Apple support technician.
    Drew
  • 4. Re: Moving iCal service to a different server
    Sean Flynn Level 2 Level 2 (150 points)
    Thanks for the heads up about iCal on non-Master OD server. For me the attempt was to mv it to OD replica.

    I may look into what it takes to elevate a replica to master, and then downgrade the master to replica.

    As far as permissions go, all were preserved when directories were tarred up, on that I was very careful.
  • 5. Re: Moving iCal service to a different server
    jchuckran Level 1 Level 1 (5 points)
    Drew,

    That's incredible! Nowhere in the official iCal Service Administration documentation does it mention the requirement that the iCal server be an OD master. I've been running iCal Server perfectly on an server whose OD role is "Connected to a Directory System." What kind of Apple technician told you that? Apple Enterprise Support?

    Joe
  • 6. Re: Moving iCal service to a different server
    Sean Flynn Level 2 Level 2 (150 points)
    Yes, I was told by Apple Enterprise support, and it may be that the tie in is its role as OD replica, rather than attached to Dir Sys. not at all sure, but I've been unable to get it to show up as an available iCal host, as OD replica with iCal running. I'm still hoping to fail replica to master at some point, but for now it will run on old system.
  • 7. Re: Moving iCal service to a different server
    jchuckran Level 1 Level 1 (5 points)
    Sean,

    OK thanks, but I'm still dumbfounded by that. I would be very interested in finding out the reasoning behind their recommendation. It doesn't make any sense to me. I don't have Enterprise Support anymore so I can't call myself. You would think that this recommendation would be officially documented somewhere! Maybe it is and I'm just looking in the wrong places.

    Joe
  • 8. Re: Moving iCal service to a different server
    Drew Boone1 Level 1 Level 1 (40 points)
    What application do suggest for keeping extended attributes and permissions intact? I have tried cp and rsync but they don't seem to do it.
  • 9. Re: Moving iCal service to a different server
    Sean Flynn Level 2 Level 2 (150 points)
    I tarred and bzipped the file before mv'ing it. It kept the permission and attributes. The only thing I 'think' I noticed it not doing was setting the sticky bit, which can be done after the move with chmod.
  • 10. Re: Moving iCal service to a different server
    Drew Boone1 Level 1 Level 1 (40 points)
    What options did you use? I couldn't get it to work.
  • 11. Re: Moving iCal service to a different server
    Cyrus Daboo Level 2 Level 2 (230 points)
    There is no requirement that the calendar server machine be an OD master or replica. All it needs is to be "bound" to the proper OD server hosting the user records needed for calendaring. If that happens to be the same machine, that is fine. If it is a different machine, that is fine too. Of course with a different machine there will be additional latencies in accessing the directory data but a fair bit of caching happens so it shouldn't be too bad (unless the network connectivity is itself poor).
  • 12. Re: Moving iCal service to a different server
    Sean Flynn Level 2 Level 2 (150 points)
    Well that sounds like wonderful news, but here is the most important thing.

    How?

    I have an OD master and and OD replica. I have tried numerous ways to try to get iCal running on the replica, and not had apparent success.

    The within WGM the users are still shown only the OD master hostname available as the iCal server, and attempt to connect fail if that iCal service is not running on the OD master.

    It would be a huge boon to myself if a clear way to execute this were available.
  • 13. Re: Moving iCal service to a different server
    Drew Boone1 Level 1 Level 1 (40 points)
    Cyrus,
    Have successfully moved the iCal service from one server to another? When I try to move the data and I look at the iCal overview with the Server Admin software. It doesn't show any of the data (e.g. Accounts: 0). Perhaps this is because I haven't successfully gotten all of the permissions and extended attributes correctly transferred. I sure wish Apple would provide some documentation on how to do this properly.
    Drew
  • 14. Re: Moving iCal service to a different server
    Bryan K. Vines Level 3 Level 3 (835 points)
    I just wanted to chime in that I have successfully done this. Make sure both servers are running the same version of OS X Server. Stop the calendar service on both servers before you proceed with the commands listed below.

    The commands I used to package up the Calendar store is:

    *sudo tar -cjf /Library/CalendarServer.tar.bz2 /Library/CalendarServer/*

    This should create a file named "CalendarServer.tar.bz2" in the /Library directory. Then, using the method of your choice, move that file to the /Library directory of the new server. You may then un-tar it with these commands:

    *cd /Library*
    *sudo tar -xjf CalendarServer.tar.bz2*

    Start the calendar service on the new server and the overview should show all the right information.

    Hope that helps.
    --
    Bryan Vines