1 / 31

Scripted Farm Install

DM300. Scripted Farm Install. Ben Curry Sr. Instructor Mindsharp. Agenda. Why use scripted installs? Prerequisites Use setup.exe to Install Binaries Overview of config.xml Use PSConfig.exe to provision Farm Use stsadm.exe to build out Web apps and Shared Services Fun with stsadm.exe!.

edie
Télécharger la présentation

Scripted Farm Install

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DM300 Scripted Farm Install Ben Curry Sr. Instructor Mindsharp

  2. Agenda • Why use scripted installs? • Prerequisites • Use setup.exe to Install Binaries • Overview of config.xml • Use PSConfig.exe to provision Farm • Use stsadm.exe to build out Web apps and Shared Services • Fun with stsadm.exe!

  3. Why Use Scripted Installs? • Repeatable results for enterprise deployment • Rapid Deployment • Disaster Recovery • Just to be cool!

  4. My Farm Setup • SharePoint Server 2007 • SQL Server 2005 • SQL Client on App2 • Windows Server 2003 R2 WFE1 (query) WFE2 (query) APP2 Central Admin Index APP1 SQL Server

  5. Preparing For Installation • Add farm account to SQL Server with Security Administrator and DB Creator rights • Alternatively assign appropriate SQL permissions to pre-created databases • Run scripts as Installer/Farm account • Reporting Services requires farm admin/installer • Scaling to Query services is much easier • Need SQL Administrator rights during install • Installer account needs local admin during installation

  6. Create Scripts • Scripts will be available for free download at http://www.mindsharp.com (Premium Content) • Install on Index Server first • App2 In our Demo • Copy adsutil.vbs from inetpub\Adminscripts directory to install directory • Take your time, and don’t make it difficult • Test, test, test • Get ready to go!

  7. Lay Down the Bits • Don’t be afraid of the XML! • Config.xml files on the installation media • Standalone, Farm, Upgrade, Silent • Copy and edit • Setup.exe /config %location%\config.xml

  8. Config.xml • Detailed TechNet Reference • Must install sts • Windows SharePoint Services 3.0 • Must also install spswfe • SharePoint Server 2007 • Display Level should be none or basic • Basic for this demo so you can see what is going on • If none, wait for setup.exe to disappear from taskmgr.exe before continuing • SERVERROLE should be APPLICATION

  9. Examining Config.xml demo

  10. Create Farm Databases • Use sqlcmd.exe to create databases • In SQL Server program files\90\Tools\BINN • Secure with additional script if you do not want SharePoint accounts to be security administrator and DB Creator • Take your time editing the DB Create Script! • Copy and paste for additional databases • Collation MUST be Latin1_General_CI_AS_KS_WS • Don’t ask me why, I don’t know

  11. Create Databases • CREATE DATABASE SharePoint_Config_Contoso • ON • ( • NAME = SharePoint_Config_Contoso_data, • FILENAME = 'c:\MSSQL\Data\SharePoint_Config_Contoso.mdf' • ) • LOG ON • ( • NAME = SharePoint_Config_Contoso_log, • FILENAME = 'c:\MSSQL\Log\SharePoint_Config_Contoso.ldf' • ) • COLLATE Latin1_General_CI_AS_KS_WS

  12. Installing the binaries and creating the databases demo

  13. Provision the Farm • Use PSConfig.exe • It’s in the ‘12 Hive’ • Detailed TechNet Command-line reference • Psconfig.exe –cmdconfigdb <options> • Uses pre-created configuration database • Attaches server to farm (configDB) • Provision Central Admin • Create Web application (psconfig.exe –cmdadminvs –provision <options>) • Uses pre-created Central Admin content database • Prevents database GUID naming convention

  14. Provision the Farm • psconfig.exe -cmdconfigdb -create -server app1 -database SharePoint_Config_Contoso -user contoso\mossfarm -password P@ssw0rd -admincontentdatabaseCentral_Admin_Content

  15. Creating the farm and provisioning Central Administration demo

  16. Start Farm Services and Build the Shared Services Provider • Use stsadm.exe to start farm services • –o osearch to start SharePoint Search • -o spsearch to start Windows SharePoint Services 3.0 Search • Create My Site Provider • Use –o extendvsto create Web applications • Uses pre-created content databases • Create Shared Services Provider Web App • Uses pre-created content database

  17. Build supporting SSP Web applications, create the SSP, configure the SSP demo

  18. Create and Configure Portal • Create Web applications by using –o extendvs • Apply Collaboration Portal template (spsportal) • Add Host Headers • http://my and http://my.contoso.msft • http://portal and http://portal.contoso.msft • Allows access via either URL • MSDN ‘translate.js’

  19. Adding Host Headers • script.exe //nologo translate.js "Contoso Portal" > siteid.txt • for /f %%I in (siteid.txt) do SET SITEID=%%I • cscript.exe Adsutil.vbs set w3svc/%SITEID%/serverbindings ":80:portal.contoso.msft" ":80:portal" • Del siteid.txt

  20. Create Portal and Add Host Headers demo

  21. Configure Farm Operations • Logging Levels • Be smart • SMTP Server • Global outbound setting • Add Farm administrators • Remove local administrators • Best Practice

  22. Configure Farm Application Settings • Enable Recycle Bin • Change Recycle Bin retention period to 90 days • Change Recycle Bin 2nd stage to 20% • Change max upload size • Add managed paths • Create HR embedded managed path site • Much, much more

  23. Configure Farm Operations and Application Settings demo

  24. Add Servers to the Farm • Lay down the same bits • Use the same config.xml • Change psconfig.exe settings • Start Services • Start Search – no roles • Then start Query • Will fail without psconfig.exe –cmdsecureresrouces! • Don’t forget the Host Headers • Copy 12 Hive and inetpub customizations • Could use solutions

  25. Add Servers to the Farm • psconfig.exe -cmdconfigdb -connect -server app1 -database SharePoint_Config_Contoso -user contoso\mossfarm -password P@ssw0rd • IMPORTANT!! • Psconfig.exe –cmdsecureresources

  26. Add WFE Servers to the Farm demo

  27. Questions?

  28. Post Event DVD brought to you courtesy of:

  29. SUBMIT AN EVALUATION For a chance to win an 8GB ZUNE! Submit evaluations on MySPC www.MicrosoftSharePointConference.com

  30. © 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.

More Related