Contents Overview Lesson: Backing Up SharePoint Products and Technologies Lesson: Restoring SharePoint Products and Technologies Lesson: Restoring Individual Servers Lab A: Backing Up SharePoint Portal Server Data Lesson: Planning for Disaster Recovery Lesson: Monitoring SharePoint Products and Technologies Course Evaluation 1 2 16 29 38 41 44 52
Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. 2004 Microsoft Corporation. All rights reserved. Microsoft, MS-DOS, Windows, Windows NT, Windows Server, Active Directory, BizTalk, FrontPage, InfoPath, Microsoft Press, MSDN, OneNote, Outlook, PowerPoint, SharePoint, Visual Basic, Visual Studio, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.
iii
Instructor Notes
Presentation: 2 hours, 45 minutes Lab: 45 minutes A portal requires various maintenance tasks to ensure optimal performance, reliability, and availability. The student will learn the importance of backing up portal data on a regular basis to protect against data loss caused by server failure or accidental file deletion. A robust disaster recovery capability requires careful planning to ensure minimum downtime. Server monitoring yields valuable information about the health of the system. After completing this module, students will be able to:
!
Back up and restore Microsoft SharePoint Products and Technologies data. Design a disaster recovery plan. Monitor SharePoint Products and Technologies servers using Windows Server 2003 Event Viewer, SharePoint Portal Server 2003 diagnostic logs, and e-mail notifications.
! !
Required materials
Important It is recommended that you use PowerPoint 2002 or later to display the slides for this course. If you use PowerPoint Viewer or an earlier version of PowerPoint, all the features of the slides may not be displayed correctly. Preparation tasks To prepare for this module:
! ! !
Read all of the materials for this module. Complete the practices. Review the best practices listed at http://www.microsoft.com/sharepoint and search for Microsoft SharePoint Portal Server 2001 Disaster Recovery
iv
Backup Files
You can use the log data from the back up created in the previous instructor-led practice. Invite your students to discuss how these best practices compare with their real world experience. Suggest methods for moving closer to the best practices.
Stress the point that is critical to manage a list of document libraries, portals, and sites outside of the portal including the exact names and URLs for the document libraries. This will save administrators a lot of time and effort if they are not constantly searching for sites and libraries. Do not complete this instructor-led practice. If you want to practice a restoration, use this procedure.
There is a note at the end of this topic that states that some information for the portal site is not restored, and must be configured after restore has completed, including proxy settings, the configuration database, e-mail settings, and various registry settings described in the documentation. It is worth mentioning the time, accuracy and effort involved in this processso it is not a surprise to students if they need to perform a restoration. Remember that you will create a new configuration database but that you will not restore it in the next step of the process that calls for you to restore the server components. Ensure that you restore the single sign-on database, if you are using the single sign-on service in your deployment.
vi
Remember the location you designate for your backup files so that you can view the backup log manifest file at the end of the exercise.
E-mail settings must be properly configured to support e-mail notifications when a service shuts down or a server stops responding
vii
Lab Results
!
Lab A: Backing Up SharePoint Portal Server Data: Exercise 1: Backing Up an Entire Server Farm At the end of this exercise, students will know how to backup an entire server farm (including all portals) using the SharePoint Portal Server Data Backup and Restore feature. Data will be backed up to the following file location: \\Paris\SPSBackup\Monday\serverbackup\ You may view the log of the back up at C:\SPSBackup\Monday in the serverbackup.XML manifest file. Exercise 2: Selective Portal Site Backup At the end of this exercise, students will know how to perform a selective backup of only the http://PARIS portal site from the server farm. Data will be backed up to the following file location: \\Paris\SPSBackup\Monday\Paris To make this a selective backup, expand the Available components node in the tree view, expand Portal Sites, and then click http://paris/. You may view the log of the back up at C:\SPSBackup\Monday in the Paris.XML manifest file.
Overview
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction A portal requires various maintenance tasks to ensure optimal performance, reliability, and availability. It is critical to back up portal data on a regular basis to protect against data loss caused by server failure or accidental file deletion. A robust disaster recovery capability requires careful planning to ensure minimum downtime. Server monitoring yields valuable information about the health of the system. After completing this module, you will be able to:
! ! ! ! !
Objectives
Back up your Microsoft SharePoint Products and Technologies data. Restore your SharePoint Products and Technologies data. Restore data to individual servers. Design a disaster recovery plan. Monitor SharePoint Products and Technologies.
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You can back up and restore an entire server farm, an entire portal, or individual components of a SharePoint Products and Technologies deployment by using the SharePoint Portal Server Data Backup and Restore Program. You can run the program from the Start menu or from the command prompt. The SharePoint Data Backup and Restore Program also creates a BackupRestore log that you can use to troubleshoot a failed backup or restore. If you are using encryption, you must back up the encryption key in a secure manner. Lesson objectives After completing this lesson, you will be able to:
! ! ! ! ! ! !
Explain the SharePoint Portal Server Backup and Restore Program. Identify backup and manifest files. Back up SharePoint Products and Technologies data. Perform a command line backup. Back up and restore the encryption key. View backup logs. Explain the best practices for backup and restore.
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction The SharePoint Portal Server Data Backup and Restore Program is a program that backs up and restores SharePoint Portal Server databases and content indexes. It does not back up Internet Information Services (IIS) or the Web servers. To recover data in your server farm or single-server deployment, you must first use the operating system backup and restore for Web servers and the single-server deployments. You can then use the SharePoint Portal Server Data Backup and Restore Program to restore the remaining data. You can run the SharePoint Portal Server Data Backup and Restore Program from a GUI or from the command line, but the command line version performs only backups. Important You must install Microsoft SQL Server 2000 client tools on the front-end Web server from which you run the backup and restore process in a server farm. Capabilities The SharePoint Portal Server Backup and Restore Program successfully backs up and restores almost all of the data in your server farm. However, custom Web Parts will need to be reinstalled on every front-end Web server in the server farm. To avoid having to reinstall these custom Web Parts, you have the option of using the operating system backup and restore utility before using the SharePoint Portal Server Backup and Restore Program. You can restore all server farm components or individual components. Note Some information is not restored, and must be configured after restore has completed. This includes proxy settings, the configuration database, e-mail settings, and various registry settings described in the documentation.
Alternate access settings are not backed up, but are stored by the configuration database. If you restore to the same deployment and the configuration database is on a different server in that same deployment, these settings will be intact. Otherwise, you will have to reconfigure alternate access settings. Access rights for backup and restore To back up or restore an image successfully, the following accounts must have access to the directory containing the backup files:
! !
The service account for SQL Server must have write access to the directory. The search service and database access accounts for search must have write access to the directory. The current user must have write access to the directory.
Read access to all SQL Server databases. Write access to all site databases and the configuration database. Membership in the local administrators group on the document management server. Administrator rights on the database server, either as a member of the local administrators group or as a member of the SQL Server 2000 System Administrators server role.
You should maintain a list of all document libraries, portals, and pure team sites. Ensure that you have the exact names and URLs for the document libraries. In case of total server failure, you can build a server with the same name or with a new name and restore your SharePoint Portal Server data to it. Ensure that you have access privileges to all the files and databases that you intend to back up and restore. Also, ensure that you have write privileges to the area in which you intend to put the backed up and restored files.
Backup Files
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction Backup file When you perform a backup, the SharePoint Portal Server Data Backup and Restore Program creates two files types: the backup file and the manifest file. The SharePoint Portal Server Data Backup and Restore Program generates one file for each of the backed up services in the directory specified. The name of the files will follow the format of backupname-servername-service.bak. For example, if you were to run a backup of your site database and index components, your backup files may be named backup1-server01-sitedbs.bak, and backup1-server01-index.bak, respectively. An XML file called backupname.xml is created as part of each backup. This is the backup manifest that contains information on each of the files. The manifest file for the backup scenario described above would be named backup1.xml.
!
Manifest file
General information: Backup version. Backup type. Timestamp. Database specific information: Site ID. Site name. Database name. Server name. Application name. Description. Image file. Backup status.
The <Service Type> key separates each service and includes the type of service, site ID, URL, and other information pertinent to the service being backed up. A <BackupStatus> key appears below each <Service Type> key, indicating the status of the backup. In this example, the <Backup Status> key for the index server indicates that the index server backup failed. This error is displayed in the SharePoint Portal Server Data Backup and Restore Program and recorded in the backup log.
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction In the SharePoint Portal Server Data Backup and Restore Program, you perform all backup operations from the Backup utility. In this instructor-led practice, use the following values:
Variable Virtual Computer Virtual Computer - Domain controller Virtual Computer - SQL server comment Value Madrid Glasgow Melbourne Module 7 practice
5. In the Backup location and name box, do the following: a. Type or browse to the location where you want to store the backup files. For the purpose of this practice, type \\Madrid\SPSBackup\demo. Note demo is the file name that will be the prefix for each backup file. 6. Type the comment in the Backup comment box. Additionally, you can include the date. Note If you are going to overwrite an existing backup file, select the Overwrite existing files check box. 7. Under the Backup Item column, verify the check boxes are selected for every component in the list. 8. Click Backup. The backup process should take about five minutes to complete. 9. On the successful completion message box, click OK.
10
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You can perform a command-line backup if you run the SharePoint Portal Server Data Backup and Restore Program executable located in the Program Files\SharePoint Portal Server\BIN directory. This is useful if you want to use Scheduled Tasks to automate the backup of your portal at set intervals. Command line backup
You must choose one of the following for the type of data to back up: /all - Backs up all data from all portal sites and team databases. /teamdbs - Backs up all team databases. /ssodb - Backs up all data from single sign-on databases. /portalportalUrl - Backs up the portal site with the specified portalUrl.
11
You may also add the following optional parameter to the /portalportalUrl parameter: /service- Backs up a specific service, either sitedbs or index. The following parameters are added next: /filebackupfilepath\fileprefix - This required parameter specifies the files that contain the backup image. backupfilepath is the directory to the location of backup files, and fileprefix is the first few characters in the file names of the backup files. /overwrite - This optional parameter overwrites any previous backup image. /DMLocalPathLocalPath - Backs up all data from all portal sites and databases to the location specified in LocalPath. Run the backup and restore program with the following command line parameters: spsbackup/DMLocalPathLocalPath LocalPath is the local path of the document library server where you want to temporarily hold the backup image.
12
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction The encryption key is part of the encryption process for credentials. Because it is the key that decrypts the encrypted credentials stored in the database, the backup copy of the key should not be stored with the backup copy of the database. If an outsider obtains a copy of both the database and the key, the user names and passwords can be compromised. You must back up the key to a 3.5-inch floppy disk. Important You cannot manage the base system key remotely. To manage the encryption key, go to the computer running as the job server and specify these settings locally. Backing up the encryption key
13
14
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction Backup logs in the list are grouped by log type. The names of the backup logs end with _SPSBACKUP.LOG. In this instructor-led practice, use the following values:
Variable Virtual Computer Virtual Computer - Domain controller Virtual Computer - SQL server Value Madrid Glasgow Melbourne
15
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction Plan a backup schedule By adopting best-practices for backup and restore, you can avoid data loss due to system failure. Develop a backup schedule based on how frequently the data is changing in your environment. Weekly backups will often be appropriate, each in its folder. You can keep several weeks of backups on disk for ease of recovery. After a set period of time, the oldest folders can be moved to tape. You must balance the convenience of a quick restore with the amount of disk space available for backups. Backups consume memory and processing power; therefore schedule backups during times of light usage to avoid impacting performance for users. Keep three copies of the media. Keep at least one copy offsite in a properly controlled environment. Secure both the storage device and the backup media. It is possible for someone to access the data from a stolen medium by restoring the data to another server for which they are an administrator. Back up an entire volume to prepare for the unlikely event of a disk failure. It is more efficient to restore the entire volume in one operation. Always back up the directory services database on a domain controller to prevent the loss of user account and security information.
Perform backups when server usage is light Retain three copies Secure devices and media Back up the whole volume Back up directory services
16
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You have many restoring options when using SharePoint Products and Technologies. This lesson introduces you to the various processes involved in restoring a SharePoint Server. After completing this lesson, you will be able to:
! ! ! !
Lesson objectives
Explain the main considerations when restoring a server farm deployment. Restore a portal site. Restore a portal site using SharePoint Portal Server Central Administration. Restore a portal site using the SharePoint Portal Server Data Backup and Restore Program. Restore a single-server deployment. Restore a server farm deployment.
! !
17
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction In the SharePoint Portal Server Data Backup and Restore Program, you perform all restore operations from the Restore tab. In this instructor-led practice, use the following values:
Variable Virtual computer Virtual Computer - Domain controller Virtual Computer - SQL server Value Madrid Glasgow Melbourne
18
6. Click the component with a Ready status in the Restore Item column. Note Components that are ready to be restored are labeled as Ready in the Restore Item column. If a component is labeled as Parameters Needed, you cannot select the check box for the component. You must click the component, click Edit, and then provide the missing parameters. If a component is labeled as Dependent Item, you must first select the check box for the component on which it is dependent. This is typically the SITEDBS component corresponding to the portal site. 7. Close the Microsoft Office SharePoint Portal Server 2003 Backup and Restore dialog box. Ordinarily you would click Restore to begin this process, but the current configuration on Madrid needs to be preserved for use in later practices and labs. Caution Restore will overwrite existing data. Ensure that each backup image corresponds to the correct component.
19
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction If only one server in your Web farm is failing, you can restore just that server through the SharePoint Portal Server Data Backup and Restore Program. If it is a Web server that has failed, you can just reinstall that server and connect back to the existing database. You should maintain a list of all document libraries, portals, and Windows SharePoint Services Sites outside of the portal. Ensure that you have the exact names and URLs for the document libraries. In a server farm deployment, the SharePoint Data Backup and Restore Program must be run from a front-end Web server. In case of total server failure, you can build a server with the same name or with a new name and restore your SharePoint Portal Server data to it.
Restoring considerations
20
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You restore a portal site onto the original server using SharePoint Portal Server Central Administration or the SharePoint Portal Server Data Backup and Restore program. You can also restore a portal site to an empty virtual server on a different server farm.
21
Limitations
The following limits apply to the number of portal sites supported on a server farm:
!
If the server farm is not part of a shared services environment, the server farm supports up to 15 portal sites. If the server farm provides or uses shared services, the server farm supports up to 100 portal sites. Internet Information Services (IIS) limits the number of websites running on one server to 64. To create more than 64 websites on a front-end Web server in a server farm that provides or uses shared services, you must modify a registry setting.
22
*****************************ILLEGAL FOR NON-TRAINER USE****************************** You can restore a portal site from the Create Portal Site for server_name page. You can access the Create Portal Site for server_name page from multiple locations:
!
On the SharePoint Portal Server Central Administration for server_name page, in the Portal Site and Virtual Server Configuration section, click Create a portal site. On the SharePoint Portal Server Central Administration for server_name page, in the Portal Site and Virtual Server Configuration section, click List and manage portal sites. On the Manage Portal Sites page, click Create Portal Site. Note You can also click Restore Portal Site to get to that task directly.
This option restores the portal site without restoring the search configuration and content indexes. The information in the databases is restored, but the default search configuration for new portal sites is used. To fully restore a portal, see Restoring a Portal Site Using the SharePoint Portal Server Data Backup and Restore Program, later in this lesson. Regardless of how you restore the portal site, alternate access settings are not backed up but are stored by the configuration database. If you restore to the same deployment, these settings will be intact. If not, you must reconfigure alternate access settings.
23
24
Restoring a Portal Site Using the SharePoint Portal Server Data Backup and Restore Program
! To restore a portal site using the SharePoint Portal Server Data Backup
and Restore program 1. Create a virtual server on server B. 2. On server B, on the taskbar, click Start, point to All Programs, point to SharePoint Portal Server, then click SharePoint Portal Server Data Backup and Restore. 3. In the Microsoft Office SharePoint Portal Server 2003 Backup and Restore window, click the Restore tab. The Microsoft Office SharePoint Portal Server 2003 Backup and Restore dialog box opens. 4. In the Manifest file box, specify the location of the manifest file. You can also click Browse to find the location of the manifest file. The manifest file is the XML file in the directory that you specified for the backup files when you backed up the server. The file name is the prefix you specified for the backup file names. For example, you specified the prefix Adventure, the name of the manifest file would be Adventure.XML. 5. In the tree view, expand Available components by clicking the plus sign, and then click All server farm components. 6. Select the SITEDBS component, and then click Edit. 7. Specify the virtual server created in the first step, the URL for the portal site, and the database server name and database names for the site database, the user profile database, and the services database. Click OK.
25
8. For each TEAMDBS component: a. Select the component, and click Edit. b. Specify the database server name and database name for the TEAMDBS component, and then click OK. c. Make sure the check box next to the component is selected. 9. For each INDEX component: a. Select a component, and then click Edit. b. Specify the content index server to use for this component. Note The backup image corresponding to the job server must be restored to the current job server in the server farm. The server for that component is selected for you and cannot be changed. c. Make sure the check box next to the component is selected. 10. After every component is selected, click Restore. All databases are restored, the portal site is created, the team databases are added to the virtual server, and all content indexes on the appropriate servers are restored. Note Some information for the portal site is not restored, and must be configured after restore has completed. This includes proxy settings, the configuration database, e-mail settings, and various registry settings described in the documentation.
26
*****************************ILLEGAL FOR NON-TRAINER USE****************************** In case of total server failure, you can build a server with the same name or with a new name and restore your SharePoint Portal Server data.
27
*****************************ILLEGAL FOR NON-TRAINER USE****************************** You can restore data to all the servers in a farm. Data is restored to servers using the same name as the failed servers.
28
Note During restore, you will be asked to provide virtual server names and port numbers for portal sites and server names for document libraries. It is strongly recommended that you use the same settings for both portal sites and document libraries, which are provided by default. If you change the virtual server name for the portal site or the server name for the document library associated with that site, you will have to manually reconnect the document library in SharePoint Portal Server Central Administration. Using the same settings also ensures that other applications referring to the portal site can still access the portal site. 5. Configure the single sign-on service, if it is part of your deployment. 6. Restore the encryption key, if you have configured the single sign-on service. 7. Add additional Web servers and extend the IIS virtual server for each site.
29
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You have many restoring options when using SharePoint Portal Server 2003. This lesson introduces you to the various processes involved in restoring the individual servers that are included in and support SharePoint Portal Server. After completing this lesson, you will be able to:
! ! ! ! !
Lesson objectives
Restore a document library server. Restore an index or job server. Restore a database server. Restore data to a Web server. Restore data to a search server.
30
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You can restore a document library server to a server farm. You will use one of two procedures:
! !
Restoring to a server with the same name. Restoring to a server with a different name.
31
32
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You can restore an index management or job server to a server farm. You will use one of two procedures:
! !
Restoring to a server with the same name. Restoring to a server with a new name.
33
34
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You can restore a database server to a server farm. You will use one of two procedures:
! !
Restoring to a server with the same name. Restoring to a server with a new name. Use this procedure when moving a single server installation using SQL Server 2000 Desktop Engine to a SQL Server 2000 server on a server farm.
35
9. Restore the single sign-on database from the backup image, if you are using the single sign-on service in your deployment. 10. On each Web server, open a command prompt and type iisreset. Restoring to a server with a new name
36
*****************************ILLEGAL FOR NON-TRAINER USE****************************** You can restore data to a Web server.
If at least one Web server on the server farm is still active, add additional Web servers to the server farm and extend the sites. If all Web servers have failed, you must use the operating system backup.
37
*****************************ILLEGAL FOR NON-TRAINER USE****************************** You can restore data to the search server.
38
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Objective Prerequisites After completing this lab, you will be able to back up portal data using the Microsoft SharePoint Portal Server 2003 Wizard. Before working on this lab, you must have introductory-level knowledge of:
! ! ! ! !
Microsoft Windows Server 2003. Networking Fundamentals. DNS/DHCP. TCP/IP. SharePoint Portal Server 2003.
Scenario
You are Suzan Fine, a server administrator at Adventure Works. You need to perform a backup of your SharePoint Portal Server installation. Depending on the situation, you may have to back up the entire server farm, including all portals, or you may have to back up selective portals from the server farm. For this lab, you should only have the following virtual computers running: 1. 2012_0-Glasgow_DomainController. 2. 2012_1-Dublin_Simple SPS Server. 3. 2012_2-Paris_SPS Server Farm. 4. 2012_3-Melbourne_SQL Server.
Lab Setup
39
40
41
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction Successful disaster recovery requires planning and periodic attention. Failover options can provide a high level of availability for clustered server deployments. After completing this lesson, you will be able to:
! !
Lesson objectives
42
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Key planning activities Successful disaster recovery requires advanced planning. The following activities are needed to support the plan:
!
Gather input from key stakeholders, users, department managers, IT staff, and Web administration staff. You need to understand the expectations and requirements of all of the parties involved.
Define requirements: Response and recovery times. Make sure your capabilities are in line with expectations. System resources: disk space, memory, processing power. Backup operations consume system resources and can affect throughput. You need to balance the desire for continuous backups with the desire for maximum performance.
Define recovery procedures, including roles, responsibilities, and activities. Share this information with stakeholders to allay their concerns about your level of preparedness.
Note For more information on disaster planning, review the best-practices listed at http://www.microsoft.com/sharepoint and search for Microsoft SharePoint Portal Server 2001 Disaster Recovery.
43
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction Is your deployment compatible? By adopting best practices for disaster recovery planning, you can insure smooth operations, minimum downtime, and no data loss. If you plan to add servers in a manner that is not consistent with your organizations network infrastructure, you may have difficulty deploying a robust solution. Consult those in your organization who are responsible for network infrastructure to become familiar with your organizations clustering infrastructure and failover policies. Make sure that the server you are deploying is compatible with the existing environment. For example, if your network infrastructure employs Network Load Balancing, make sure that the server you are selecting supports network Load Balancing. Train staff in advance Make sure all staff members understand their roles and responsibilities according to the plan. In minimum-security and medium-security networks, grant backup rights to one user and restore rights to a different user. Train personnel with restore rights to perform all of the restore tasks if the administrator is unavailable. In a high-security network, only administrators should restore files. Always create and print a backup log for each backup. Keep a book of logs to make it easier to locate specific files. The backup log is helpful when restoring data; you can print it or read it from any text editor. Also, if the tape containing the backup set catalog is corrupted, the printed log can help you locate a file. Perform trial restorations periodically to verify that your files were properly backed up. A trial restoration can uncover hardware problems that do not show up with software verifications.
44
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction The corporate portal and divisional portals experience frequent activity. Therefore, it is important to monitor performance of both servers to ensure that you receive adequate response times and to identify potential bottlenecks. Monitor resource availability, such as memory and disk space, to identify when servers are nearing maximum resource usage. Monitor event logs and diagnostic logs to obtain information about system or application errors. After completing this lesson, you will be able to:
! ! ! ! !
Lesson objectives
Explain the types of event logs maintained by Windows Servers. Use Windows 2000 Event Viewer to monitor operating system events. View, configure, and delete SharePoint Portal Server 2003 diagnostic logs. Configure logging settings for components. Configure automatic e-mail notification for errors.
45
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction Windows Server 2003 maintains logs about application, security, and system events on your computer. With Windows Server 2003 Event Viewer, you can monitor events recorded in the event logs. You can view and manage the event logs, gather information about hardware and software problems, and monitor Windows security events. Typically a computer stores the application, security, and system logs. It could also contain other logs, depending on the computers role and the applications installed. Application log The application log contains events logged by applications or programs. For example, a database program might record a file error in the application log. Application developers decide which events to log. The security log records events such as valid and invalid logon attempts, as well as events related to resource use such as creating, opening, or deleting files or other objects. For example, if logon auditing is enabled, attempts to log on to the system are recorded in the security log. The system log contains events logged by Windows system components. For example, the failure of a driver or other system component to load during startup is recorded in the system log. The event types logged by system components are predetermined by the server.
Security log
System log
46
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction Use Windows Server 2003 Event Viewer to view event logs. In this instructor-led practice, use the following values:
Variable Virtual Computer Virtual Computer - Domain controller Virtual Computer - SQL server Value Madrid Glasgow Melbourne
47
Instructor-Led Practice: Viewing and Deleting SharePoint Portal Server 2003 Diagnostic Logs
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction By viewing the SharePoint Portal Server logs, you can obtain detailed information about diagnosing and troubleshooting problems. You can configure the amount and type of information collected in the logs. You can easily view or delete any diagnostic log from SharePoint Portal Server Central Administration. In this instructor-led practice, use the following values:
Variable Virtual Computer Virtual Computer - Domain controller Virtual Computer - SQL server Value Madrid Glasgow Melbourne
48
4. When done viewing the log file, click the Back button on your browser. Note Ordinarily you can click Delete or Delete Unused Log Files when necessary, but the current configuration on Madrid needs to be preserved for use in later practices and labs. When you need to delete log files, do one of the following steps: To delete the selected log, click Delete. To delete unused log files, click Delete Unused Log Files. You cannot delete log files that are in use.
49
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction You can specify the logging settings for components of SharePoint Products and Technologies, such as the single sign-on service and the search service. You can also choose to save a copy of the log automatically after a specified number of days, and you can choose to delete logs automatically after a specified number of days. Note You should select Log tracing information only for troubleshooting purposes. Logging tracing information might affect performance and disk use. In this instructor-led practice, use the following values:
Variable Virtual Computer Virtual ComputerDomain controller Virtual Computer- SQL server component logging_level Value Madrid Glasgow Melbourne Search Filter Process Log critical events only
50
3. On the Configure Diagnostic Settings for MADRID page, in the Logging Settings section, in the Components list, select the component to specify logging settings, and then click Edit. 4. On the Edit Logging Settings for Madrid page, in the Logging Settings section, select the logging_level for the component. 5. In the Frequency for Saving and Deleting section: To save a copy of the log, type 5 in the Save a copy every (in days) box. The server will save a copy of the log file for this component every five days. Note If you do not want to save a copy of the log, type 0. Type 14 in the Delete copies older than (in days) box. Log files for this component that are older than 14 days will be deleted automatically. Note To delete files manually, type 0. 6. Click Cancel. Ordinarily you would click OK to apply these settings, but the current configuration on Madrid needs to be preserved for use in later practices and labs.
51
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Introduction E-mail notifications for error conditions provide a proactive way to learn about system problems and enable the quickest problem resolution. SharePoint Portal Server 2003 supports two types of e-mail notification for error conditions: If e-mail settings are properly configured, you will receive e-mail notifications when any SharePoint Portal Server 2003 service shuts down. You can configure the e-mail settings from SharePoint Portal Server Central Administration. Under Server Configuration, click Configure e-mail settings. You can configure SharePoint Portal Server 2003 to automatically send reports to Microsoft of errors that cause SharePoint Portal Server 2003 to stop responding. Automatic error reporting uses a connection that uses the HTTP over SSL (HTTPS) protocol, which is more secure than an ordinary Internet connection. The data that Microsoft collects is used strictly for the purpose of tracking down and solving problems that you are experiencing. The information is stored in a secure database with limited access. You can view the Microsoft Error Reporting Data Collection Policy from a link on the Configure Diagnostic Settings page in SharePoint Portal Server Central Administration. You configure error reporting settings from Local Computer Policy in Microsoft Management Console.
52
Course Evaluation
*****************************ILLEGAL FOR NON-TRAINER USE****************************** Your evaluation of this course will help Microsoft understand the quality of your learning experience. At a convenient time before the end of the course, please complete a course evaluation, which is available at http://www.CourseSurvey.com. Microsoft will keep your evaluation strictly confidential and will use your responses to improve your future learning experience.