Pages

Tuesday, October 2, 2012

SharePoint Cumulative Updates Best Practices

You can stay up-to-date on Microsoft SharePoint 2010 Cumulative Updates by regularly going to the SharePoint TechNet site and checking if an update is available. The following guidelines will be very helpful in making sure that the cumulative updates process goes smoothly:
  1. Never install a cumulative update without testing it on your development/staging/test servers.
  2. If your SharePoint server is setup in a virtual environment, ask your system administration to take a snapshot of all of your servers in the SharePoint farm. This is helpful when things don’t go right and the only way to resolve an error is to wipe out the server and set it up from scratch.
  3. Never install an update on production servers during regular business hours. This sounds funny but I had seen junior SharePoint Administrators making this mistake over and over. Ideal time to install updates in production is on the weekend, sad I know :(
  4. You must first check what is the current version of SharePoint configuration database by going to System Settings –>   Manage Servers in the Central Administration web site. When you look at the details of the cumulative update on the TechNet site for e.g.; March 2012 Cumulative Update, look for “Download Information” section to find the “File Version” of this update. The file version becomes the SharePoint Configuration Database version after the upgrade process is complete.

    image image
  5. The phrase “cumulative update” is very misleading for SharePoint updates. The cumulative update “MAY NOT” contain patches from the previous release. In my experience, previous updates are never included in the current cumulative update package. After determining the version of your configuration database, start with the least recent update package that needed to be install on your servers.
  6. Download the patch at a network location so that you do not have to download the update for every server in the farm.
  7. Verify the patch you are installing by first opening the e-mail from Microsoft and making sure that this is the patch you want to install.

    image
  8. Install the patch in order on every server of your farm. Complete the upgrade process by running the SharePoint Products Configuration Wizard on every server of your farm.  DO NOT install the next cumulative update package without completing the upgrade process.
  9. Once the cumulative update package is installed, reset IIS by issuing the IISRESET command in the command prompt or SharePoint Management Shell on every server of your farm. In addition, run Get-SPProduct cmdlet in SharePoint Management Shell on every server with the “local” flag. This will prevent the missing patch error if the SharePoint Products Configuration Wizard fails to upgrade the farm.

    Get-SPProduct -local

    image
  10. If SharePoint Products Configuration Wizard fails, close the wizard and run it again. If you get a missing patch error in the second run, exit the wizard and follow step #5.
  11. Run the SharePoint Products Configuration Wizard on every server of your farm as it does update some local resources on the server as well.
  12. After installing the update, go to System Settings –> Manage Servers and verify that the upgrade process is complete on every server. This page will also tell you if you need to run the SharePoint Products Configuration Wizard on a server to complete the update process.
  13. Verify that the SharePoint services including the SharePoint Timer Service is running by going to Administrative Tools –>  Services. You may need to update the login information in case the service is not running. If you cannot start a SharePoint service, verify that the password is correct and the account is not locked.
  • Restart your servers just to be on the safe side after the update process is complete.
  • Perform random testing of your SharePoint web applications and site collections. If you are using InfoPath forms, make sure to test these forms in the InfoPath Client or in the web browser.
  • Check the Windows Event Logs and SharePoint logs in the 14 hive to make sure that there are no errors after the upgrade. Look for the keywords “error” or “exception” in the log.


  • 6 comments:

    1. good ones dude :), it helped me to understand much better

      ReplyDelete
    2. Hi, should i install only the latest CU or all of them (that are not yet installed) in release date order...??

      ReplyDelete
      Replies
      1. DIW: The latest CU should include previous updates. However, it was not the case in some of the CU that was released for SharePoint 2010. If you are targeting to fix a particular issue that is addressed in a previous CU and it doesn't get fixed by installing the current CU, you may have to apply the hotfixes individually. It is very rare though.

        Delete
      2. Hello -

        If something goes wrong - what will be the process to rollback the patching .

        Thanks,
        Jitendar

        Delete
      3. Jitender: Rolling back the patches can corrupt the farm. It get's complicated because the SharePoint Configuration Wizard also upgrade the configuration and content database whenever a SharePoint patch is installed. You have to make sure that you have full farm backup before applying any patch in case you need to rollback.

        Delete