sharepoint upgrade (wss 2.0 to wss 3.0 and sps 2003 to moss 2007) by joel oleson and shane young

54
Shane Young Joel Oleson SharePoint MVP SharePointJoel.com SharePoint911 Microsoft

Upload: joel-oleson

Post on 21-Jan-2018

21.434 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Shane Young Joel OlesonSharePoint MVP SharePointJoel.comSharePoint911 Microsoft

Page 2: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 3: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Content ManagementServer 2002 Microsoft Office

SharePoint Server 2007

Windows SharePointServices 3.0

SharePoint PortalServer 2003

Windows SharePointServices 2.0

Page 4: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Scope and plan your upgrade Review Hardware End of Life, plan for upgrade capacity disk space, memory, processorTest your upgrade and estimate your upgrade duration

Review customizations Keep or decommission customizations

CleanupRemove orphans, increase close quotas, remove locks

Service offeringRedesign, training, communication plan

Page 5: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Do a backup Make sure you know how to recover from backup

Get all SharePoint servers to Service Pack 2 or laterRun prescan.exe early and repeat as necessary

Page 6: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

SharePoint Server: prescan.exe /c preupgradescanconfig.xml /allWindows SharePoint Services: prescan.exe /all

Prescan Log and Summary created in \%temp%\

Page 7: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Sites based on site templates: Site Template Upgrade Kithttp://www.microsoft.com/downloads/details.aspx?FamilyID=a70bd8f8-a0f0-4d00-9010-8e40b7c98f68&displaylang=en

Sites based on custom site definitionsUn-ghosted pagesOrphaned objectsCustom Web PartsSites that need language packs

Page 8: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 9: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Example of good Prescan results07/19/2006 17:17:01 Scan finished without failure07/19/2006 17:17:01 Number of sites skipped (already scanned): 007/19/2006 17:17:01 Number of sites scanned: 107/19/2006 17:17:01 Number of broken sites: 007/19/2006 17:17:01 Number of webs scanned: 1307/19/2006 17:17:01 Number of broken webs: 007/19/2006 17:17:01 Number of webs using custom template: 007/19/2006 17:17:01 Number of pages scanned: 007/19/2006 17:17:01 Number of unghosted pages: 63

Page 10: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Site/List not scanned error at the end of the log

Solution: Post-SP2 Hotfix

UpdateListSchemaInAllWebs() Method not found

Solution: Install SP2

Virtual server is not in a ready stateSolution: Run it against v2 Virtual server

Great resource for errors and resolutionshttp://blogs.technet.com/wbaer/archive/2006/12/22/prescan-errors-what-they-mean.aspx

Page 11: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

In-Place Upgrade

Gradual Upgrade: Side by Side Upgrade

Content DB Migration: Upgrade Into Separate Farm

Page 12: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

ProsSimple and fast upgradeBest for smaller or non-production environments

ConsEnvironment offline during upgradeRiskier in large environmentsUpgrade fails if it encounters errors; -fix then rerun

Not recommended for most deploymentsEven for customers whose production environment is perfect for this scenario, I still recommend gradual method. Why? Lack of flexibility and recoverability

Page 13: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

V2 Config DB

V2 Content DBs

V2 Search and User Profiles DBs

V3 Config DB

V3 Content DBs

SSP DBSearch DB

Page 14: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

ProsOld and new SharePoint versions run in parallelAllows upgrade with minimal downtime

Only the site collection you are upgrading is unavailable

Can roll back upgrades per site collectionCons

Redirector could cause user confusionUses URL redirects which aren’t compatible with Microsoft Office and most other applications

Additional impact from two SharePoint versionsRequires lots of extra SQL storage space

Page 15: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

SQL Instance

WSS Farm

WSS 2003Web App

Temp ConfigConfig Content Content

WSS 2007Web App

http://WSSold

http://WSS http://WSS

Page 16: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Current URL: http://portal.company.comDuring upgrade, define temporary URL

http://portal.company.com:8080 or http://temp-portal.company.com

All v2 content moved to temporary URLv3 automatically redirects requests to temp URL using 302 redirectsAs each site collection is upgraded v3 content is placed at current URLv2 content still available at temp URL

Page 17: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

On existing hardware, install SP2, .NET Framework 3.0, then run PrescanPrepare URL Redirect DomainInstall Binaries and Choose Gradual Upgrade optionRun Configuration Wizard to setup a new farm

Install Language Packs

Deploy Upgrade Definition, Site Definition and Feature FilesDeploy Custom Web Part Packages and any other custom code (only if in Bin directory)

Upgrade stepsUpgrade steps

Page 18: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Review log files and resolve any issuesRepeat setup and upgrade on each server in the farmStart content upgrade thru UI or stsadmReview your upgraded content

If customized sites, reset pages to 2007 site definition versionsFix issues and reapply customizations using SharePoint DesignerIf upgrade result is undesirable, revert to 2003 site

Upgrade stepsUpgrade steps

Page 19: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

When upgrade result is undesirable, “revert” deletes 2007and resets redirect to 2003Confirm 2003 site still exists before reverting to itRevert to 2003 via UI or command line

UI: Select Sites for Upgrade > Revert SiteCommand line: stsadm –o upgrade –revert

Once complete, re-upgrade originalUse SharePoint Designer to merge changes from “fixed”and re-upgraded versions

Revert to 2003Revert to 2003

Page 20: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Business/Customer approvalRemoves gradual upgrade redirectorYou can remove SharePoint 2003 afterwardsYou can still upgrade using database attach method

Finalize UpgradeFinalize Upgrade

Page 21: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Works best for staging environmentEnvironments with heavy customizationsRecommended for large databases and site collectionsUpgrade a subset of site collections only Environments requiring minimal migration window

ScenariosScenarios

Page 22: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

ProsFast upgrade methodBest option if you have 1000s of site collections

ConsYou must redeploy custom configuration

Install Web PartsDefine inclusion rulesSetup search and related components

Note: This does still require Prescan. Method Required for scalable hosting mode/account creation mode, and host header mode deployments

Page 23: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

2003 Farm 2007 Farm

2003Content

2007Content

2007Config

2003Config

– SQL CPU– SQL Disk I/O

SQL Server

2003Content

Page 24: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Create new 2007 farm on clean hardwareInstall prerequisitesConfigure farm-level settingsCreate a new Web application for each 2007 virtual server

Manually re-apply configuration settingsEnsure all inclusions re-created in 2007 (required)Deploy Upgrade Definition, Site Definition and Feature FilesDeploy custom Web Parts to GAC or BIN

Page 25: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Run Prescan on farm or Web application and correct any issuesBack up 2003 content database using SQLRestore backup to copy in 2007 farmAdd content DB to Web application via command line

Ensure root site included in first databasestsadm –o addcontentdb

Upgrade triggers automatically, runs until it completes

For large databases, command line preferable

Review log files for any issuesRepeat for all additional content and search/user profile databases

stsadm –o restoressp

ContinuedContinued

Page 26: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Moving to new hardware or a new architecture Customers who need to maximize upgrade throughputRequired for Scalable Hosting Mode or Active Directory Account Creation ModeRecommended for large farms

ScenariosScenarios

Page 27: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

In-Place Gradual DB Attach

Pros

Simple

Uses existing hardware

Provides granularity

Provides revert back option

Reduces user impact

Uses existing hardware

Upgrade to new farm

Existing, 2003, farm not affected

Cons

Entire farm offline during upgrade

No revert back option

Failure will stop upgrade

Hardware-intensive, memory and storage

URL Redirects during upgrade

Performance impact on 2003 farm

WSS Scalable Hosting mode not supported

Complex, many manual steps

Requires new farm an up to double storage

ScenariosDev/Test platforms

Medium, large farms

Customized environments

Large databases and site collections

New hardware and topology

WSS Scalable Hosting modes

Large databases

Page 28: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Content Migration UpgradeMulti Threaded Database AttachVirtual In Place UpgradeMigrate Then Upgrade

http://blogs.msdn.com/joelo/archive/2007/05/22/3-methods-to-upgrade-let-me-give-you-4-more.aspx

Page 29: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

SQL Instance

.

Multithreaded DB AttachMultithreaded DB Attach

.

2007 Farm2007 Farm

2007 Farm2007 Farm

2007 Farm2003 Farm

Page 30: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Customization Common Choice Recommendation

Site Template Revert to Site Definition Use Site Template Upgrade Toolkit

Custom Web PartWorks most of the time (Gradual)

Test it out on a sample server with .NET 2.0 (DB Attach)

Event HandlerWorks most of the time (Gradual)

Rewrite and Redeploy as a Feature

Un-ghosted Page Revert to site definitionReview options: Retain customizations or revert

Themes and Stylesheets Reapply ThemeCreate Masterpage or stylesheet to apply standardization

Custom Site DefinitionCreate v3 Site DefinitionCreate Upgrade Mapping and Prescan Mapping

Migrate sites to out of box site Definition, upgrade then apply features with Solution Deployment

Code or pages in /_Layouts Ignore and re-evaluate (gradual)Analyze and create solution deployments for requirements

Inclusions/Exclusions Ignore with GradualRecreate Inclusions (DB attach)Exclusions are assumed

Add-ons Workflow, Web Parts, Server Controls

Determine per solutionContact vendor

Determine per solutionContact vendor

Page 31: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

UnchangedCustom content sourcesCrawl rules

Upgraded but should be checked for conflicts

Custom crawl file types

ChangedScopes are lost, must recreateOnly 1 index now, default in SharePoint Server Docicon.xml modifications must be redoneThesaurus/noise file modifications must be redoneSearch schedule lost, must recreate

If using gradual upgrade both v2 and v3 index will be running Disable v2 indexer ASAP to reduce strain on hardware

Page 32: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Portal alerts are lost during upgrade (site alerts are retained)Link listing: upgraded to a special links list called listingsContent listing: upgraded to news article pageBuckets (“c12”) are moved to real URLIf conflict, number appended starting with zero

http://portal/c12/finance becomes http://portal/finance (retains structure)

Areas are upgraded to publishing sitesAfter upgrade you can only create publishing sites as subsite can be changed http://msmvps.com/blogs/shane/archive/2007/02/08/moss-after-an-upgrade-you-can-only-create-publishing-sub-sites.aspx

Page 33: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Local administrator on server no longer has full access to SharePoint

Can be re-granted http://msmvps.com/blogs/shane/archive/2007/01/21/become-administrator-of-the-entire-web-application.aspx

New blocked file typesASMX, REM, RESX, SOAP, ASHX

E-mail enabled document libraries don’t work. Look at new feature “Incoming e-mail”

Page 34: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Office Web Components not available in 2007Discussion lists are changed

Multithreaded discussion upgraded to single thread

Site Directory now creates sites (sub-sites)

Page 35: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Important consideration: keep customizations or move to 2007

Custom pages kept by default during upgradeBe aware: customized pages do not match rest of site

“Reset to Site Definition” Returns page to layout in site definition Option exists to reset all pages during Gradual upgrade Available in site settings or within SharePoint Designer

Page 36: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

SQL Instance

Config Content

2003 Farm2007 Farm

60\TEMPLATE\1033\STS\default.aspx

12\TEMPLATE\SiteTemplates\STS\

default.aspx

Page 37: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Most will work post-upgradeTest in Windows SharePoint Services 2003 SP2 with ASP.NET 2.0 Must re-build custom parts if you used ASP.NET 1.1 “obfuscation” tools Must re-deploy Web Parts if

Moving to a new server farm (Content DB Migration)Web Part in the \bin (Gradual Upgrade)

Deploying Web Partsstsadm –o addwppack

Page 38: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Prescan logs%temp%Prescan.logPrescan Report and Summary

Log files Upgrade and Server logsLogs are in\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Logs

Watch the Event Viewer

Page 39: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

CorasWorks MigratorRe-ghost multiple sites at onceMigrate customizations and Web Parts to sites post upgradeHelps you add layouts, master pages, Web Parts en masse

EchoHelps you quickly roll out customizations and settings and permissions across your farm with no site collection boundaries2007 version coming soon

AvePoint DocAveUsed to connect to 2003 and move content to 2007 without dependencies on customizations. Quickly and easily move your lists and libraries into a clean slate (out-of-box site definitions)

CodePlex SPMigrationhttp://www.codeplex.com/SPMigration/

Page 40: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Prepare, plan and test your customizations!Become familiar with Prescan and upgradeConsider customization policies in the new platform, using features over site definitions

Page 41: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Windows SharePoint Services Content DB orphans

Post-SP2 Hotfix, KB 918743 and KB 918744stsadm -o databaserepair -url http://WSSSite -databasename DatabaseNamestsadm -o databaserepair -url http://WSSSite -databasename DatabaseName –deletecorruption

SharePoint Server Config DB orphansPost SP2 Hotfix, KB 918742spsadm –o repairorphans http://PortalSite

Windows SharePoint Services Config DB orphans

Remove and then reattach the content databases on the virtual server

Page 42: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Don’t forget Quest Migration ProductsPublic Folder MigratorFile MigratorSharePoint 2003 to 2007 Migration toolRecovery Manager

Page 43: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 44: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 45: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 46: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 47: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 48: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 49: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 50: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young
Page 51: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Migration and Upgrade Information for SharePoint Developers

http://msdn2.microsoft.com/en-us/office/aa905505.aspx

Migration and Upgrade Information for SharePoint Server (IT Pros)

http://technet.microsoft.com/en-us/sharepointserver/bb421259.aspxUpgrade Documentation

http://technet2.microsoft.com/Office/en-us/library/396c85d9-4b86-484e-9cc5-f6c4d725c5781033.mspx?mfr=true

Upgrade Toolkit for Windows SharePoint Services Sites and Templates Guidehttp://www.microsoft.com/technet/solutionaccelerators/collaboration/default.mspx

Upgrade in WSS SDK http://msdn2.microsoft.com/en-us/library/ms460185.aspx

Fix your Orphans HotFixesrepair content databases in Windows SharePoint Services http://support.microsoft.com/kb/918744

Spsadm.exe command line tool that you can use to clean up orphaned items in the configuration database in

SharePoint Portal Server 2003 http://support.microsoft.com/kb/918742/

Page 52: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

Supportability2003 Best Practices to ensure upgradeability http://msdn2.microsoft.com/en-us/library/ms916859.aspx

KB Article on Site Definition Supportability in 2003 http://support.microsoft.com/Default.aspx?id=898631

Supported and unsupported scenarios for working with custom site definitions and custom area definitions in Windows SharePoint Services and in SharePoint Portal Server 2003 http://support.microsoft.com/kb/898631/en-us

Community ToolsSharePoint Configuration Analyzer http://www.microsoft.com/downloads/details.aspx?FamilyID=918f8c18-89dc-4b47-82ca-34b393ea70e1&DisplayLang=en

SharePoint Utility http://www.microsoft.com/sharepoint/downloads/components/detail.asp?a1=724

SPReport http://workspaces.gotdotnet.com/spreportsManaging SharePoint Products and Technologies Performance at Microsoft http://www.microsoft.com/technet/itshowcase/content/spsperfnote.mspx#ETKAE

Microsoft SQL Server Report Pack for Microsoft Office SharePoint Portal Server 2003 http://www.microsoft.com/downloads/details.aspx?FamilyID=49159368-544b-4b09-8eed-4844b4e33d3d&DisplayLang=en

BlogsResources and Recommendations for Upgrading Site Definitions and Site Templates http://blogs.msdn.com/joelo/archive/2007/01/03/resources-and-recommendations-for-upgrading-site-definitions-and-site-templates.aspx

Upgrade Content IT Pros may not have seen http://blogs.msdn.com/joelo/archive/2006/12/06/upgrade-content-it-pros-may-not-have-seen.aspx

Other Upgrade Topics from Joel’s Blog http://blogs.msdn.com/joelo/archive/tags/Upgrade/default.aspx

Page 53: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

New Upgrade Paper for customizationshttps://msmvps.com/blogs/shane/archive/2007/11/11/a-new-upgrade-paper.aspx

Page 54: SharePoint Upgrade (WSS 2.0 to WSS 3.0 and SPS 2003 to MOSS 2007) by Joel Oleson and Shane Young

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market

conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.