摘要:Cannot to restore SharePoint site collection
When you continue to delete and then restore a single site collection error occurs:
Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully. No content databases in the web application were available to store your site collection. The existing content databases may have reached the maximum number of site collections, or be set to read-only, or be offline, or may already contain a copy of this site collection. Create another content database for the Web application and then try the operation again. At line:1 char:15
the reason:
If you just deleted a line in CA where site collection. This will only in the Front End of Content DB to delete this site, it is not completely removed.
If you perform Get-SPDeletedSite you will know there are those Site collection has not been completely removed
example:
WebApplicationId : 2f210dbb-f6bb-43d2-b730-9cb61222cbdb
DatabaseId : 213a1719-929b-420c-89f8-d03f52a06bc7
SiteSubscriptionId : 00000000-0000-0000-0000-000000000000
SiteId : 5ce0264c-1dad-4ffa-8360-8195i24dac69
Path : /teams/Test2
DeletionTime : 7/4/2013 6:30:36 AM
Solution
1. First completely delete the site collection:
Remove-SPDeletedSite –Identity 5ce0264c-1dad-4ffa-8360-8195i24dac69(SiteId)
2. Perform Gradual site delete timer job
Central administration > Monitoring > Job definitions 跑一次 “Gradual Site Delete” job
Original: Big Box Can not to restore SharePoint site collection