Best practices when updating Lync Server with those cumulative updates – #Lync

Cumulative Updates (CU) are kind of a service pack that comes out quarterly for Lync Server and the clients. It includes fixes and some times new functionality is added.

The latest is Cumulative Update is CU4 (as of December 2011) and it can be downloaded here http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11551

image

As you can see there are a lot of files to download and you could just download and update specific components or you can download the LyncServerUpdateInstaller.exe package that includes all the latest updates. So go ahead and download it and then copy the file to your Lync Servers.

To start the update process log in to your server. And start the Lync Server Management Shell

  1. Check that no users are talking on the phone or are in a meeting before you start the update. You can do this by running Get-CsWindowsService (read more in this post http://www.ultimate-communications.com/2011/11/lync-powershell-tip-5/ )
    image
    1. In the screenshot above there are one active call in the call park service and it would be a bad idea to turn off the services right now as this would terminate the call.
  2. So the solution would be to prevent new sessions for a while and drain the active connections. This can be done running Stop-CsWindowsService –Graceful
    (Read more on server draining at http://voipnorm.blogspot.com/2011/03/lync-server-draining.html )
    1. image
      As seen in the picture the services is now stopped.
  3. Next thing would be to stop the World Wide Web service. By typing: net stop w3svc
  4. Now Close all Lync Server Management Shell windows.
  5. Install the cumulative update for Lync Server 2010 by running LyncServerUpdateInstaller.exe
    image
    This will start the update tool and you should se what updates are needed and what version is already installed. (As you can see in the picture I have already installed the latest update package and it shows a green checkmark at every line. If there were some services that wouldn’t be updated this would show a red stop mark instead.)
    1. Restart the computer if you are prompted to do so
  6. The next step is something that is almost always forgotten. To update the Lync Server Databases (this step is normally not done if you just used Windows Update to update your Lync server and should then be done manually after Windows Update has updated your server.)
    1. Start the Lync Server Management Shell: (Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.)
    2. To apply the changes made by LyncServerUpdateInstaller.exe to the SQL Server databases do one of the following:
      1. If Enterprise Edition Back End Server databases are not collocated with any other databases, such as Archiving or Monitoring databases, at the command line, type the following:
        Install-CsDatabase –Update –ConfiguredDatabases –SqlServerFqdn <SQL Server FQDN>
      2. If Enterprise Edition Back End Server databases are collocated with other databases, such as Archiving or Monitoring databases, at the command line, type the following:
        Install-CsDatabase –Update –ConfiguredDatabases –SqlServerFqdn <SQL Server FQDN> –ExcludeCollocatedStores
      3. For Standard Edition, type the following:
        Install-CsDatabase –Update –LocalDatabases
  7. Now when the database is also up to date, its time to start the IIS & Lync Server services. At the command line, type:
    net start w3svc
    Start-CsWindowsService

And that’s it Open-mouthed smile you should now be up to date and ready to roll out the client updates to your Lync clients and phones.

Have I missed something that you considerer being a best practice when updating your server? Please comment bellow.

  • http://japhethnolt.myopenid.com/ Japheth Nolt

    Great article……Does the database update need to be done on the edge server?

    • http://www.ultimate-communications.com Tommy Clarke

      Thanks, nope its not needed on the Edge db yet.

  • Pingback: Best practices when updating Lync Server with those cumulative updates – #Lync | Ultimate Communications « JC’s Blog-O-Gibberish

  • Pingback: Best Practices for updating your Lync 2010 Servers – Chris Madge

  • Pingback: Lync Client and Server Cumulative Update Package (CU4) | Inside Lync

  • Pe_pi

    About the database update, does it really be a requirement if you have already applied earlier hotfixes? It is hard to believe that Microsoft generate all the time new updates into database schema, or?

    • http://www.ultimate-communications.com Tommy Clarke

      You should do it once per CU release. So at CU4 do the update… at CU5 do the update if the release notes say you should :D

      • Pe_pi

        Sounds like nobody knows :-/ As I see updating the database by using the “just in case” -method might not be the one you like. Or is there a check that database is updated already and it will not do it?

        …I’m just a poor admin who likes to understand what we are doing and why :-D

  • Pe_pi

    Also as following your instruction, running the database update in each time you are patching all your server roles. Is that really needed? E.g. mediation servers or reporting servers are in different servers. I doubt a bit..

    • http://www.ultimate-communications.com Tommy Clarke

      Onle needed once per pool

      • Pe_pi

        …but mediation servers can be members of mediation “pool” and reporting servers have own databases…

  • Pingback: Deploying Lync Mobility « msunified.net

  • Pingback: Enabling Lync Server 2010 for Lync Mobile Clients « msunified.net

  • Pingback: Lync Mobile clients; how to implement | Jeroen Reijling Blog

  • Pingback: Aktivera Lync server 2010 för mobila klienter « Henrik Börjesson's UC-Blog

  • BramV

    Thanks for these best practices!
    Just to be sure, does the latest CU also contain all previous fixes like in service packs? Or do you need to install all CU’s instead of just the latest one? We’re still at RTM here.

    • http://www.ultimate-communications.com Tommy Clarke

      Hi
      The updates are Cumulative so yes they include the previous updates and you can just roll on CU 4 now from rtm

  • http://twitter.com/myneek Matt Philpott

    Does the CU4 update need to be done on the edge servers as well?

    • http://www.ultimate-communications.com Tommy Clarke

      Yes, install it on all Lync servers.

      • Jbg

        though, there are no edge updates in CU4. But normally yes.

  • Jeff Patton

    Received an error applying the update: 

    The Lync Server Web Conferencing Edge service terminated with the following error:  The requested address is not valid in its context.

    Resolution: Went into my network settings and noticed one of my IP’s got removed from the network adapter, added it back on and everything work successfully. 

    HTH Anyone experiencing the same error.

    • http://www.ultimate-communications.com Tommy Clarke

      No i have not seen that over here :D the CU should not remove the interfaces or IP addresses so it sounds wierd if the CU caused this error