10. By default, logging stops only if you set an expiration date as part of the logging
schedule. Using the options on the Stop Condition tab, you can confi gure the log
fi le to stop manually after a specifi ed period of time, such as seven days, or when
the log fi le is full (if you’ve set a maximum size limit).
11. Click OK when you’ve fi nished setting the logging schedule and stop conditions.
You can manage the data collector as explained in “Creating and Managing
Data Collector Sets” on page 364. If you want Windows to run a scheduled task
when data collection stops, confi gure the task on the Task tab in the Properties
dialog box.
Collecting Performance Trace Data
You can use data collectors to record performance trace data whenever events related
to their source providers occur. A source provider is an application or operating system
service that has traceable events.
To collect performance trace data, follow these steps:
1. In Reliability And Performance Monitor, under the Data Collector Sets node,
right-click the User Defi ned node in the left pane, point to New, and then choose
Data Collector Set.
2. In the Create New Data Collector Set wizard, type a name for the data collector,
such as Disk IO Trace or Logon Trace. Afterward, select the Create Manually
(Advanced) option and then click Next.
3. On the What Type Of Data Do You Want To Include page, the Create Data Logs
option is selected by default. Select the Event Trace Data check box and then click
Next.
4. On the Which Event Trace Providers Would You Like To Enable page, click Add.
5. In the Event Trace Providers dialog box, shown in Figure 12-9, select an event
trace provider to track, such as Active Directory Domain Services: Core, and then
click OK.
6. On the Which Event Trace Providers Would You Like To Enable page, you can
confi gure property values to track. By selecting individual properties in the
Properties list and clicking Edit, you can track particular property values rather
than all values for the provider. Repeat this process to select other event trace
Chapter 12
368 Chapter 12 Comprehensive Performance Analysis and Logging
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
To view data collector reports in Reliability And Performance Monitor, expand the
Reports node and then expand the individual report node for the data collector you
want to analyze. Under the data collector’s report node, you’ll fi nd individual reports
for each logging session. A logging session begins when logging starts and ends when
logging is stopped.
The most recent log is the one with the highest log number. To view a log and analyze
its related data graphically, double-click it. Keep in mind that if a data collector is
actively logging, you won’t be able to view the most recent log. You can stop collecting
data by right-clicking a data collector set and selecting Stop. Collected data is shown
by default in a graph view from the start of data collection to the end of data collection.
Only counters that you selected for logging will be available. If a report doesn’t have a
counter that you want to work with, you’ll need to modify the data collector properties,
restart the logging process, and then check the logs again.
You can modify the report details using the following techniques:
1. In Reliability And Performance Monitor, right-click the Performance Monitor
node and then select Properties. In the Performance Monitor Properties dialog
box, click the Source tab.
2. Specify data sources to analyze. Under Data Source, select Log Files and then
click Add to open the Select Log File dialog box. You can now select an additional
log fi le to analyze.
3. Specify the time window that you want to analyze. Click Time Range, and then
drag the Total Range bar to specify the appropriate starting and ending times.
Drag the left edge to the right to move up the start time. Drag the right edge to the
left to move down the end time.
4. Click the Data tab. You can now select counters to view. Select a counter and then
click Remove to remove it from the graph view. Click Add to display the Add
Counters dialog box, which you can use to select the counters that you want to
Repeat this process to confi gure other counters you’ve selected.
6. Complete steps 7–11 from the earlier procedure, “Collecting Performance Counter
Data,” on page 365.
Monitoring Performance from the Command Line
Windows Server 2008 includes a command-line utility called Typeperf for writing per-
formance data to the command line. You can use it to monitor the performance of both
local and remote computers. The available parameters for Typeperf are summarized in
Table 12-2.
Table 12-2 Parameters for Typeperf
Parameter Description
-cf <fi lename> Specifi es a fi le containing a list of performance counters to
monitor.
-confi g <fi lename> Specifi es the settings fi le containing command options.
-f <CSV|TSV|BIN|SQL> Sets the output fi le format. The default is .csv for comma-
separated values.
-o <fi lename> Sets the path of an output fi le or SQL database.
-q [object] Lists installed counters for the specifi ed object.
-qx [object] Lists installed counters with instances.
-s <ComputerName> Sets the server to monitor if no server is specifi ed in the
counter path.
-sc <samples> Sets the number of samples to collect.
-si <[[hh:]mm:]ss> Sets the time between samples. The default is 1 second.
-y Answers Yes to all questions without prompting.
Chapter 12
370 Chapter 12 Comprehensive Performance Analysis and Logging
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Looks complicated, I know, but Typeperf is fairly easy to use after you get started. In
fact, all you really need to provide to get basic monitoring information is the path to the
performance counter you want to track. The performance counter path has the follow-
ing syntax:
You might have noticed that I enclosed the counter path in double quotation marks.
Although this is good form for all counter paths, it is required in this example because
the counter path includes spaces.
Performance Logging 371
Chapter 12
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
using the -f parameter. The output format indicators are CSV for a comma-delimited
text fi le, TSV for a tab-delimited text fi le, BIN for a binary fi le, and SQL for a SQL binary
fi le. Consider the following example:
typeperf "\\corpsvr02\Memory\*" -o perf.bin -f bin
Here, you track all counters for the Memory object and write the output to a binary fi le
called Perf.bin in the current directory.
If you need help determining the available counters, type typeperf -q followed by the
object name for which you want to view counters, such as in the following:
typeperf -q Memory
If an object has multiple instances, you can list the installed counters with instances by
using the -qx parameter, such as in the following:
typeperf -qx PhysicalDisk
You can use this counter information as input to Typeperf as well. Add the -o parameter
and write the output to a text fi le, such as in the following:
typeperf -qx PhysicalDisk -o perf.txt
Then edit the text fi le so that only the counters you want to track are included. You can
then use the fi le to determine which performance counters are tracked by specifying
the -cf parameter followed by the fi le path to this counter fi le. Consider the following
example:
typeperf -cf perf.txt -o c:\perfl ogs\perf.bin -f bin
Here, Typeperf reads the list of counters to track from Perf.txt and then writes the per-
formance data in binary format to a fi le in the C:\PerfLogs directory.
The one problem with Typeperf is that it will sample data once every second until you
tell it to stop by pressing Ctrl+C. This is fi ne when you are working at the command line
schema.man.
The most basic way to use Tracerpt is to specify the name of the trace log to use. By
default trace logs are written to C:\PerfLogs, so if a log in this directory was named
SysP_000002.etl, you could analyze it by typing the following:
tracerpt C:\Perfl ogs\SysP_000002.etl
Here, four fi les are created in the current directory: The parsed output is written to
Dumpfi le.xml, a summary report is written to Summary.txt, a detailed report is written
to Workload.xml, and a event schema report fi le is written to schema.man.
You could also specify the exact fi les to use for output as shown in the following
example:
tracerpt C:\Perfl ogs\ SysP_000002.etl -o c:\sysp.csv
-summary c:\sysp-summary.txt -report sysp-report-.txt
Performance Logging 373
Chapter 12
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
PART 3
Managing Windows
Server 2008 Storage
and File Systems
CHAPTER 13
Boot Confi guration . . . . . . . . . . . . . . . . . . . . . 377
CHAPTER 14
Storage Management . . . . . . . . . . . . . . . . . . . 405
CHAPTER 15
TPM and BitLocker Drive Encryption . . . . . . 467
CHAPTER 16
Managing Windows Server 2008
File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
CHAPTER 17
ing careful consideration to how this could affect the operation of the computer. When
you install Windows Server 2008 on a desktop class system, it is critically important for
you to understand how computers designed for Windows Vista handle advanced con-
fi guration and power management in hardware and fi rmware. This will enable you to
modify the hardware and fi rmware settings so that they work with Windows Server 2008.
Never install Windows Server 2008 on a desktop class system without fi rst checking its
hardware and fi rmware confi guration settings for boot and power.
Note
Many administrators install Windows Server 2008 on desktop class systems without giv-
ing careful consideration to how this could affect the operation of the computer. When
you install Windows Server 2008 on a desktop class system, it is critically important for
you to understand how computers designed for Windows Vista handle advanced con-
fi guration and power management in hardware and fi rmware. This will enable you to
modify the hardware and fi rmware settings so that they work with Windows Server 2008.
Never install Windows Server 2008 on a desktop class system without fi rst checking its
hardware and fi rmware confi guration settings for boot and power.
Boot from Hardware and Firmware . . . . . . . . . . . . . . . . 377
Boot Environment Essentials . . . . . . . . . . . . . . . . . . . . . . 382
Managing Startup and Boot Configuration . . . . . . . . . 383
Managing the Boot Configuration Data Store
and Its Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
CHAPTER 13
Boot Confi guration
377 377
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Hardware and Firmware Power States
Before the boot environment is loaded, computers start up from hardware and fi rm-
ware. Windows Vista does things a bit differently from Windows Server 2008 when it
comes to power state management features. In Windows Vista, turning off a computer
and shutting down a computer are separate tasks. By default, when you turn off a
If you’ve reconfi gured the power options on the computer and set the power but-
ton to the Shut Down action, the computer can’t use the standby state and turn-
ing off the computer powers it down completely.
You can determine exactly how Windows Vista is confi gured by clicking Start and
looking at the power button icon. An amber power button, depicting a shield with a
line through the top of it, indicates that the computer will turn off and enter low-power
sleep state. A red power button, depicting a shield with a line in the middle of it, indi-
cates that the computer will shut down and completely power off.
Chapter 13
378 Chapter 13 Boot Configuration
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Diagnosing Hardware and Firmware Startup Problems
When you are working with Windows Vista or Windows Server 2008 and trying to
diagnose and resolve startup problems, it is important to remember that power state
management capabilities are provided by the hardware but are enabled by the operat-
ing system. Because of this, to fully diagnose and resolve problem boot issues, you must
look at the computer’s hardware and software, including:
Motherboard/chipset
Firmware
Operating system
To better understand the hardware aspects related to boot issues, let’s dig in and take
a look at Advanced Confi guration and Power Interface (ACPI). A computer’s mother-
board/chipset, fi rmware, and operating system must support ACPI for the advanced
power state features to work. There are many different types of motherboards/chipsets.
Although older motherboards/chipsets might not be updatable, most of the newer ones
have updatable fi rmware. Chipset fi rmware is separate from and different from the
computer’s underlying fi rmware interface.
Table 13-1 Power States for ACPI in Firmware and Hardware
State Type Description
S0 ON state The system is completely operational, fully powered, and completely
retains the context (such as the volatile registers, memory caches, and
RAM).
S1 Sleep state The system consumes less power than the S0 state. All hardware and
processor contexts are maintained.
S2 Sleep state The system consumes less power than the S1 state. The processor
loses power and processor context and contents of the cache are lost.
S3 Sleep state The system consumes less power than the S2 state. Processor and
hardware contexts, cache contents, and chipset context are lost. The
system memory is retained.
S4 Hibernate
state
The system consumes the least power compared to all other sleep
states. The system is almost at an OFF state. The context data is
written to the hard disk and there is no context retained. The system
can restart from the context data stored on the disk.
S5 OFF state The system is in a shutdown state and the system retains no context.
The system requires a full reboot to start.
Resolving Hardware and Firmware Startup Problems
On most computers, you can enter the BIOS or EFI during boot by pressing F2 or
another function key. When you are in fi rmware, you can go to the Power screen or a
similar screen to manage ACPI and related settings.
Power settings you might see include:
After Power Failure or AC Recovery
Determines the mode of operation if a power
loss occurs and for which you’ll see settings like Stay off/Off, Last state/Last,
Power on/On. Stay Off means the system will remain off after power is restored.
Enhanced Intel SpeedStep Technology (EIST or SpeedStep) allows the system to
dynamically adjust processor voltage and core frequency, which can result in decreased
average power consumption and decreased average heat production. When EIST or
a similar technology is enabled and in use, you’ll see two different processor speeds
on the System page in Control Panel. The fi rst speed listed is the specifi ed speed of
the processor. The second speed is the current operating speed, which should be less
than the fi rst speed. If Enhanced Intel SpeedStep Technology is off, then both proces-
sor speeds will be equal. Advanced Settings for Power Options under Processor Power
Management can also affect how this technology works. Generally speaking, although
you might want to use this technology with Windows Vista, you won’t want to use this
technology with Windows Server 2008.
Intel Quick Resume Technology Driver (QRTD) allows an Intel Viiv technology-based
computer to behave like a consumer electronic device with instant on/off after an initial
boot. Intel QRTD manages this behavior through the Quick Resume mode function of
the Intel Viiv chipset. Pressing the power button on the computer or a remote control
puts the computer in the Quick Sleep state, and you can switch the computer to the
Quick Resume state by moving the mouse, pressing an on/off key on the keyboard
(if available), or pressing the sleep button on the remote control. Quick Sleep mode is
different from standard sleep mode. In Quick Sleep mode, the computer’s video card
stops sending data to the display, the sound is muted, and the monitor LED indicates
a lowered power state on the monitor but the power continues to be supplied to vital
components on the system, such as the processor, fans, and so on. As this technology
was originally designed for Windows XP Media Center Edition, in many cases it does
not work with Windows Vista and generally should not be used with Windows Server
2008. You might need to disable this feature in fi rmware to allow Windows Vista to
properly sleep and resume.
After you look at the computer’s power settings in fi rmware, you should also review the
computer’s boot settings in fi rmware. Typically, you’ll be able to confi gure the following
boot settings:
different disk partitioning styles. Generally, computers with x86-based and x64-based
processors use the master boot record (MBR) disk partitioning style and BIOS. Comput-
ers with x64-based processors use the GUID partition table (GPT) disk partitioning
style and Extensible Firmware Interface (EFI).
BIOS and EFI currently are the two most prevalent fi rmware interfaces. With earlier
releases of the server operating system for Windows, BIOS-based computers use Ntldr
and Boot.ini to boot into the operating system. Ntldr handles the task of loading the
operating system while Boot.ini contains the parameters that enable startup, including
identity of the boot partitions. Through Boot.ini parameters, you can add options that
control the way the operating system starts, the way computer components are used,
and the way operating system features are used.
On the other hand, with earlier releases of the server operating system for Windows,
EFI-based computers use Ia64ldr.efi , Diskpart.efi , and Nvrboot.efi to boot into the oper-
ating system. Ia64ldr.efi handles the task of loading the operating system while Disk-
part.efi identifi es the boot partitions. Through Nvrboot.efi , you set the parameters that
enable startup.
Windows Server 2008 doesn’t use these boot facilities. Instead, it uses a pre–operating
system boot environment. Figure 13-1 provides a conceptual overview of how the boot
environment fi ts into the overall computer architecture.
The boot environment is an extensible abstraction layer that allows the operating sys-
tem to work with multiple types of fi rmware interfaces without requiring the operating
system to be specifi cally written to work with these fi rmware interfaces. Within the
boot environment, startup is controlled using the parameters in the Boot Confi guration
Data (BCD) store.
The BCD store is contained in a fi le called the BCD registry. The location of this registry
depends on the computer’s fi rmware:
On BIOS-based operating systems, the BCD registry fi le is stored in the
\Boot\Bcd directory of the active partition.
tools are used.
Managing Startup and Boot Configuration 383
Chapter 13
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Managing Startup and Recovery Options
The Startup And Recovery dialog box controls the basic options for the operating sys-
tem during startup. You can use these options to set the default operating system, the
time to display the list of available operating systems, and the time to display recovery
options when needed. Whether you boot a computer to different operating systems or
not, you’ll want to optimize these settings to reduce the wait time during startup and in
this way speed up the startup process.
You can access the Startup And Recovery dialog box by completing the following steps:
1. In Control Panel\System And Maintenance, click System to access the System
window.
2. In the System window, click Advanced System Settings under Tasks in the left
pane. This displays the System Properties dialog box.
3. On the Advanced tab of the System Properties dialog box, click Settings under
Startup And Recovery. This displays the Startup And Recovery dialog box, as
shown in Figure 13-2.
Figure 13-2 Configure system startup options.
4. On a computer with multiple operating systems, use the Default Operating
System list to specify the operating system that you want to start by default.
5. Set the timeout interval for the operating system list by selecting the Time To
Display List Of Operating Systems check box and specifying a timeout in seconds
Chapter 13
384 Chapter 13 Boot Configuration
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
in the fi eld provided. To speed up the startup process, you might want to use a
value of 5 seconds.
Clicking the Advanced Options button on the Boot tab displays the BOOT Advanced
Options dialog box shown in Figure 13-5. In addition to being able to lock PCI, detect
the correct HAL, and enable debugging, you can use the advanced options to:
Specify the number of processors the operating system should use. You should
use this option when you suspect there is a problem with additional processors
you’ve installed in a server and you want to pinpoint which processors are pos-
sibly causing startup problems. Consider the following scenario: A server shipped
with two processors and you installed two additional processors. Later, you fi nd
that you cannot start the server. You could eliminate the new processors as the
potential cause by limiting the computer to two processors.
Specify the maximum amount of memory the operating system should use. You
should use this option when you suspect there is a problem with additional mem-
ory you’ve installed in a server. Consider the following scenario: A server shipped
with 2 GB of RAM and you installed 2 additional GB of RAM. Later, you fi nd that
you cannot start the server. You could eliminate the new RAM as the potential
cause by limiting the computer to 2048 MB of memory.
Chapter 13
386 Chapter 13 Boot Configuration
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.