Wednesday, October 23, 2013

SharePoint 2013 upgrade tip - remove deleted sites before upgrade



If you on SharePoint 2010 SP1, you will have the ability to recover deleted site collections through powershell. However, this new feature introduced issue during the upgrade. The issue is the sites that are deleted from Central Admin,are not being deleted from Content Databases immediately. This results in Test-SPContentDatabases reporting errors and orphan sites during the upgrade.

As we discussed in previous blogs, one of key to prepare SharePoint 2013 upgrade is to clean up the current SharePoint 2010 environment. One of the cleanup tasks is to delete the following site collections and sites.
  • Sites cannot not be migrated to 2013 including Fab 40
  • Sites without site definitions
  • Sites no longer used and not need for eDiscovering or auditing
  • Sites inside recycle bins
  • Repair or delete orphan sites
Because the issue we mentioned above that deleted sites are not being deleted from Content Databases immediately,  here are the tips and steps to eliminate the orphan sites and Test-SpConetntDatabases errors.

1. Delete or migrate all the sites mentioned above
2. Empty recycle bins from UI, Microsoft powershell script, or custom powershell scripts
3. Force all the sites to be delete by the timer job the next time it runs through following powershell command

get-spdeletedsite -webapplication http://sharepoint | Remove-SPDeletedSite 
Get-SPDeletedSite
 
4. Run “Gradual Site Deletion” immediately to delete the sites that were marked for deletion

Of cause, you could recover the deleted if they are still in the queue using the following command.


Restore-SPDeletedSite –identity siteID

Now, you have cleaner SharePoint 2010for 2013 upgrade. Please refer to my previous blogs for other SharePoint 2010 upgrade clean up tasks.

2 comments:

  1. Excellent and insightful article. Thank you!!! You share very informative information on Upgrade to SharePoint 2013... Thanks again really it's very useful...

    ReplyDelete
  2. The very heart of your writing shilst sounding agreeable at first, did not settle very well with me personally after some time. Someplace within the paragraphs you were able to make me a believer but just for a while. I nevertheless have a problem with your leaps in assumptions and one would do well to fill in those breaks. In the event you actually can accomplish that, I will definitely end up being fascinated.
    Its such as you learn my thoughts! You seem to grasp so much approximately this, such as you wrote the ebook in it or something. I think that you simply can do with some% to force the massage house a bit, however other than that this is magnificent blog. An excellent read. I will certainly be back.
    Property leveraging

    ReplyDelete