john burkholder: disaster recovery in sharepoint 2010
DESCRIPTION
TRANSCRIPT
![Page 1: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/1.jpg)
Disaster Recovery (Business Continuity) in SharePoint 2010
John Burkholder
Welcome to SharePoint Saturday – New York
@N8ivWarrior
![Page 2: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/2.jpg)
Welcome to SharePoint Saturday – New York
• Please turn off all electronic devices or set them to vibrate.• If you must take a phone call, please do so in the hall so as not
to disturb others.• Feel free to “tweet and blog” during the session
Thank you for being a part of SharePoint Saturday!
![Page 3: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/3.jpg)
What is a necessity?• The presence or pressure of circumstances
that justify or compel a certain course of action
• Necessary for human welfare• Found at nearly every business• Highest product sold in America
*Some content for this presentation provided from Microsoft Corporation published materials.
![Page 4: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/4.jpg)
What is a necessity?
![Page 5: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/5.jpg)
New Features• Improved Backup and Restore– Improvements in scale, performance, and resiliency– New configuration only backup– New SQL Server Snapshot support– New Granular Backup options
• Unattached Content Database Data Recovery
• New high availability scenarios– New support for SQL Server Database Mirroring– New flexible Service Application architecture
• New disaster recovery scenarios– Improved read-only database support
![Page 6: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/6.jpg)
Site Deletions
![Page 7: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/7.jpg)
Site Deletions• Improved site deletion logic– Minimizes blocking
1. Site is deleted from SiteMap2. A GUID referencing that site is instantiated in a new
table3. Timer Job performs background, chunk-based deletion
![Page 8: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/8.jpg)
Site Deletions
![Page 9: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/9.jpg)
Backup/restore
![Page 10: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/10.jpg)
Backup/restore
Initiates a SQL backup of each service and content databaseConfig settings are written to an xml fileSearch does some additional things
Will be covered in the slides on backing up Search
![Page 11: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/11.jpg)
Backup - Farm
![Page 12: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/12.jpg)
Backup – Config Settings
The configuration settings are written to an xml file, and backed up with file server backup.
![Page 13: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/13.jpg)
RestoreInstantiate a new farm with the same topology
as the original farm Execute stsadm (restore) or PowerShell (restore-
spfarm) For config-only restore use the –ConfigurationOnly flag
To complete a full farm restore:Deploy customizations as requiredOnce you have started your farm activate any features
![Page 14: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/14.jpg)
Backup - Config Solutions
*You can restore a configuration database to SQL, and then use the Backup-SPConfigurationDatabase cmdlet and give it the name of the restored database
![Page 15: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/15.jpg)
Backup – Content DBWhen you backup a web application or single content database, SharePoint starts a SQL Server backup of each content database
![Page 16: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/16.jpg)
Restore – Content DB• Restore with a new name- OR – • Restore database and overwrite
![Page 17: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/17.jpg)
Backup - Content DB Solutions
![Page 18: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/18.jpg)
Backup - Search
• Backup takes place in two sequential phases.– Phase 1
• Index merges are prevented from happening, crawling can still continue at this point.
• Indexes are copied from one query server per index partition• All search databases are backed up
– Phase 2• Crawls are paused• Any changes to the indexes since phase 1 are copied• Any changes to the search databases since phase 1 are backed up• Crawls and merges are resumed
![Page 19: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/19.jpg)
Restore - SearchIf restoring to existing Search Service App (overwrite)
All search components are unprovisioned (crawl/query stops working)Indexes are restoredDatabases are restoredCrawls and merges are resumedIf this is a restore from an earlier build, upgrade is run (i.e. backup from
RTM, restoring to SP1)If restoring to a new Search Service App
Existing Search Service Application continues to workIndexes are restoredDatabases are restoredCrawls and merges are resumedIf this is a restore from an earlier build, upgrade is run
![Page 20: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/20.jpg)
Backup – Search Solutions
![Page 21: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/21.jpg)
Backup – Service Apps• If the service applications has an associated
database(s)– SharePoint starts a SQL Server backup of the
database(s)• SharePoint starts a backup of the service
config
![Page 22: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/22.jpg)
Restore – Service Apps
• If restoring to existing service application (overwrite)– Existing service app is unprovisioned
• Otherwise, existing service app continues to work–Databases, if any, are restored–Config is restored– Service is started
![Page 23: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/23.jpg)
Backup – Service App Solutions
![Page 24: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/24.jpg)
Backup – Service App Details• Service configuration information• The databases if the service app has one or more
– Secure Store Service– Managed Metadata Service– Search (multiple databases – admin DB, crawl DB’s and property store
DB’s)– Usage and Health Data Collection– User Profile Service (profile, sync and social tags)– Business Data Catalog Service– Multi Tenant Service Settings– Performance Point
• Search Indexes• NEVER the session state or proxy groups
![Page 25: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/25.jpg)
Backup – Site Collection
SharePoint does backup by extracting data out of SQL using multiple SELECT statements, then writing data to file
Optional - Use PowerShell with the UseSqlSnapshot parameter. It creates a snapshot and exports the site collection from the snapshot. It then deletes the snapshot when it’s doneNOTE: Requires a version of SQL Server that supports snap shots (Enterprise)
![Page 26: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/26.jpg)
Restore – Site Collection
• Restore from an unattached content database– Do a site collection backup from the unattached
content db• Use PowerShell or stsadm to restore the site
collection from a backup– PowerShell: restore-spsite
![Page 27: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/27.jpg)
Backup – Site or List• Now possible from within central admin• SharePoint exports the identified site or list by
extracting data out of SQL using multiple SELECT statements, then writing data to a package– Optional: Use PowerShell (export-SPWeb) with the
UseSqlSnapshot parameter
![Page 28: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/28.jpg)
Restore – Site or List
Restore from an unattached content database
Export a site or listUse PowerShell to restore the site or list (import-SPWeb)
![Page 29: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/29.jpg)
Backup HistoryProvides execution time, warning and error counts
![Page 30: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/30.jpg)
Restore – Unattached Content DB
Granular restore and content browsing of “offline” database
Browse contentExplore site collection content
Backup site collectionBacks up to File System as .bak
Export site or listExports to File System as .cmp artifactCan include Security and Versions
Mitigates requirements to support expensive dedicated restore environments
![Page 31: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/31.jpg)
Restore – Unattached Content DB
Using PowerShell…
Use Restore-SPSite for site collectionRestore–SPSite –identity http://<server>/sites/site -path \\<share>\site.bak –force
Use Import-SPWeb for site or ListImport–SPWeb –identity http://<server>/sites/site/web -path \\<share>\list1.cmp -includeusersecurity
![Page 32: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/32.jpg)
Recovery Scenarios
Backups can be performed to support many recovery scenarios. Common scenarios include
Recreate a farm on new hardware, or in a different location, assuming that no parts of the original farm are available. (Disaster recovery)Create a new farm based on an existing farm’s configuration and backupsCreate backups to support highly-available farmsArchive versions of a siteUse unattached databases to recover site collections, sites or lists
![Page 33: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/33.jpg)
High Availability
![Page 34: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/34.jpg)
HA – Database Mirroring
Provides support for database mirroringAdds failover partner to ADO.NET connection stringDoes not implement the mirroring session
UI entry pointsAny place you add a new database you can put the failover server name
PowerShellAll databases, including configuration database
Configurable through APISPDatabase
AddFailoverServiceInstance (method, string)FailoverServiceInstance (property, SPServer)
![Page 35: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/35.jpg)
HA – User Interface
Failover Database Server
![Page 36: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/36.jpg)
HA – Object Model (C#)
string failoverServer = "mySqlServer/myServerInstance"; SPDatabase db = MyGetContentDatabaseMethod();db.AddFailoverServiceInstance(failoverServer);db.Update(); Or
SPDatabase db = MyGetContentDatabaseMethod();db.FailoverServiceInstance = MyGetFailoverDatabaseServiceInstance();db.Update();
![Page 37: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/37.jpg)
HA - Powershell
For ConfigDB:$db = Get-SPDatabase | where {$_.Name -eq "Configuration Database"}$db.AddFailoverServiceInstance("CP-SQ02L")$db.Update()
For Other Databases (Content or Service App):$db = get-spdatabase | where {$_.Name -eq "WSS_Logging"}$db.AddFailoverServiceInstance("phantas-mir")$db.Update()
![Page 38: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/38.jpg)
Disaster Recovery
![Page 39: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/39.jpg)
DR – Log Shipping
Config, Services database
s DB 1
Config, Services database
s DB 2
Content Log
Shipping
Primary
Search
D/RSearch
![Page 40: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/40.jpg)
DR – Log Shipping
![Page 41: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/41.jpg)
DR – Refresh site map
! Use PowerShell$db = get-spdatabase | where {$_.Name -eq "WSS_ContentDB1"}
$db.RefreshSitesInConfigurationDatabase()
![Page 42: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/42.jpg)
Read-only mode
![Page 43: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/43.jpg)
Read-only mode
Read-only mode introduced in SharePoint 2007 SP2Hides parts of UI that aren’t applicable in read only mode
Read-only support provided forContent databasesSome Service Applications
Some service apps don’t function when their databases are set to read-only, including those associated with Search and Project
Make it read only in SQLContent databases can set the IsReadOnly SPDatabase property programmatically
Link fix-up and list schema changes don’t occur in read-only mode
![Page 44: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/44.jpg)
Read-only mode
![Page 45: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/45.jpg)
Summary
Several new and extended features in SharePoint 2010 to support BCMReduced blocking for site deletionConfiguration-only backup and restoreExport sites and lists from central adminUsed unattached content databases for restoreUse SQL snapshots during backupUI trimmed for read-only environments
![Page 48: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/48.jpg)
For a chance to win cool prizes
Also Some Books1 Typemock Isolator LicenseA 2-5 Day Course from SetFocus on SharePointTelerik RAD Controls Set1 DeliverPoint WFE 2010 license (Worth $1500)1 BCS Meta Man license (Worth $1200)1 Lightning Conductor 2010 WFE license (Worth $800)1 Lightning Storm Forums license. (Worth $600)
2 ASUS Netbooks 3 Apple IPAD 32 GB Wifi
![Page 49: John Burkholder: Disaster Recovery in SharePoint 2010](https://reader033.vdocuments.net/reader033/viewer/2022061118/54699ce9af795925028b458f/html5/thumbnails/49.jpg)
Session Evaluation
Remember to fill out your evaluations• Presenter:– John Burkholder
• Session Name:– SharePoint 2010 in a multi-tenant & hosted
environment