Improve server performance and decrease backup times by scheduling defragmentation tasks
Disk defragmentation seems relatively unimportant compared with other systems management tasks, but fragmentation of files and free space can substantially degrade system performance and increase backup times on heavily used servers. Disk fragmentation is inevitable: Updated files that increase in size without having sufficient adjacent free space become fragmented, files that are deleted create free space between other files, and new files that are larger than available contiguous free space are spread over noncontiguous locations.
Although Windows 2000's disk defragmenter can reassemble your server's fragmented data files and consolidate much of your storage array's free space, it lacks a scheduling mechanism to help you manage the process efficiently on large numbers of servers. Manual defragmentation is cheap, but that benefit evaporates when you need to defragment drives overnight so that users won't experience degradation in server performance. Several third-party disk defragmentation tools for Windows servers offer scheduling features. These products include Executive Software's Diskeeper Server 7.0, O&O Software's O&O Defrag V4 Server Edition, Raxco Software's PerfectDisk 2000, and Winternals Software's Defrag Manager 2.0.
Benefits of the API
Like Win2K's built-in defragmentation utility (which is a basic version of Diskeeper), the third party products rely on Microsoft's FSCTL_MOVE_FILE API to safely move files while the OS is active. Microsoft originally implemented this API in Windows NT 4.0, then enhanced it in Windows XP and Win2K. The benefits of using the API include reduced risk of data loss or corruption and ensured compatibility with future Windows service packs and patches.
But the API also has its limitations. In NT 4.0, the API doesn't permit online defragmentation—defragmentation of the pagefile, the Master File Table (MFT), NTFS directories, or files used exclusively by the OS while it's running. Microsoft recommends that you defragment these files at boot time (a process known as offline defragmentation). In addition, the NT API limits online defragmentation of NTFS clusters to those that are 4KB or smaller. Win2K's enhanced API permits online defragmentation of NTFS directories.
With the introduction of XP (and in the forthcoming Windows .NET Server—Win.NET Server), Microsoft added API support for online defragmentation of the MFT and registry, placement of files in the MFT Zone (i.e., the disk space that NTFS usually reserves for MFT growth) when free space is very limited, and defragmentation of clusters larger than 4KB. However, you still need to defragment the pagefile offline. Some organizations forgo defragmenting system files—and the resulting performance improvement—so that they can keep servers online as much as possible. However, the pagefile is extremely large and can fragment into many smaller pieces, dividing the partition's free space to such an extent that other files are split around the pieces of the pagefile. Because XP's and Win.NET Server's built-in defragmentation utility doesn't support offline pagefile defragmentation or scheduling features, you still need a third-party program to maximize your Win.NET Server systems' performance.
When the Windows & .NET Magazine Lab tested enterprise defragmentation utilities (Tom Iwanski, "Enterprise Defragmentation Utilities," February 2001, InstantDoc ID 16442), we found one product, Symantec's Speed Disk 5.1, that circumvented the FSCTL_MOVE_FILE API and could defragment system files online. However, Symantec has since withdrawn the server version of that product from the market.
Surveying the Field
All the products I investigated let you install the defragmentation engine on the server and provide a management console from which the administrator can create defragmentation schedules for groups of servers. PerfectDisk 2000 provides a separate management console; the other products supply a Microsoft Management Console (MMC) snap-in.
Some applications are particularly sensitive to the server's software configuration. For enterprises that use such applications, Defrag Manager lets you distribute the 120KB defragmentation engine package to the server at the scheduled runtime, then removes it when defragmentation is complete so that the defragmentation software doesn't reside on the server permanently.
At $1194 for a 100-server license, Defrag Manager was the least expensive server defragmentation product I found. The Defrag Manager CD-ROM includes PageDefrag 2.2, a freeware product by Sysinternals, Winternals' sister company, that defragments your server's pagefile and registry at boot time. However, PageDefrag defragments only your pagefile and registry, not other system files.
After you install the software, all the products let you define groups of servers and schedule defragmentation runs as often as your servers require. Defrag Manager's administrative console, which Figure 1 shows, lets you define a schedule for particular Active Directory (AD) organizational units (OUs). Figure 2 shows the results of a PerfectDisk 2000 network query, which summarizes the schedules you've defined for particular servers or groups. At the scheduled time, the products typically analyze the partition to determine its level of fragmentation. All the products I investigated except Defrag Manager let the systems administrator set a fragmentation threshold below which the scheduled defragmentation run won't occur. Diskeeper Server ($11,200 for a 100-server license) also offers a feature called Smart Scheduling that lets Diskeeper Server establish a unique defragmentation schedule for each server based on how quickly the server reaches a fragmentation level that the software determines. Figure 3 shows Diskeeper Server's Smart Scheduling feature interface.
Diskeeper Server also provides a feature it calls Frag Guard, which minimizes fragmentation of the MFT and pagefile. In the case of the MFT, Diskeeper Server adds placeholder entries. If the OS writes files to the MFT Zone as the partition's free space nears depletion, the file entries replace the placeholder entries to let the MFT expand without fragmenting. Frag Guard also reserves disk space adjacent to the pagefile, allowing it to expand without fragmenting.
PerfectDisk 2000 ($10,900 for a 100-server license) provides similar protection against pagefile fragmentation. When PerfectDisk 2000 initially defragments the pagefile, the software places the pagefile at the partition's logical center and reserves free space on either side to accommodate future expansion. PerfectDisk 2000 also segregates infrequently accessed files. If these files remain untouched, subsequent defragmentation runs will have fewer files to defragment and runtimes might be shorter.
Like the other products I discuss, Diskeeper Server lets you use its scheduling mechanism to manage defragmentation on desktops equipped with the vendor's workstation defragmentation product. But if you were planning to use Diskeeper Server to remotely schedule Win2K Professional's defragmentation utility rather than buying the Diskeeper Server workstation product, you'll need to make other plans. Even though the Win2K utility uses Executive Software's technology, you can't use Diskeeper Server to schedule Win2K Pro's built-in defragmentation tool.
All the products I discuss can defragment a lightly fragmented partition that has plenty of free space, but as free space drops below about 20 percent, defragmentation becomes much more difficult, or even impossible. O&O Software, Raxco, and Winternals all claim that their products can defragment partitions that have as little as 5 percent free space. According to an O&O Software representative, on partitions that have from 5 percent to 15 percent free space, Defrag V4 Server Edition uses a Stealth mode that defragments files but doesn't defragment free space.
Raxco says that its products don't sacrifice functionality on drives that have extremely small amounts of free space. But you're likely to find that the effectiveness of all these products decreases as free space drops below 20 percent to 25 percent, especially on heavily fragmented partitions.
O&O Defrag V4 Server Edition ($11,913 for a 100-server license) provides a feature called ActivityGuard Pro that lets systems administrators define a disk-usage threshold, as Figure 4 shows. When applications drive disk usage above the threshold, defragmentation pauses until disk activity drops below the threshold. According to O&O Software, O&O Defrag V4 Server Edition can also put files in order alphabetically or by date during defragmentation.
So, Which to Choose?
Although useful features and attractive pricing will be important factors in your selection process, performance and effectiveness probably carry just as much weight. When the Lab tested software for "Enterprise Defragmentation Utilities," substantial differences were evident between products. Diskeeper Server and PerfectDisk 2000 are updated versions of products tested for that article, but you shouldn't assume that their present incarnations will perform similarly.
Visit the vendors' Web sites to obtain more information about products that appeal to you. Then, when you're ready to try out those on your short list, download evaluation copies for a test drive—that's the best way to determine which ones will satisfy your particular demands.
|Contact the Vendors|
| DISKEEPER SERVER. 7.0 |
Executive Software * 818-771-1600 or 800-829-6468
O&O DEFRAG V4 SERVER EDITION
Contact NORTHERN Parklife * 800-881-4950
Raxco Software * 301-527-0803 or 800-546-9728
Winternals Software * 512-330-9130