Search
Windows 7

Managing Disks : Understanding RAID & Using Disk Maintenance Tools

Published 7 min readBy Programming4us Editorial Team

1. Understanding RAID

One concern for any computer department is the loss of data and hard drive failures. Redundant Array of Independent Disks (RAID) allows an administrator to recover data from a single hard disk failure.

The important factor to remember about Microsoft RAID is that you can recover from only a single disk failure. If multiple hard disks fail, RAID will no longer be an option.

There are two types of RAID: hardware based and software based. Hardware RAID, which is the best option, is built into the physical machine. Software RAID is used through the use of the Windows operating system.

The downside to hardware RAID is cost. A server or computer that has hardware RAID built in can cost thousands of dollars. Software RAID is free, but remember the old saying, "You get what you pay for."

In the next section we will look at the different models of RAID and how each model operates.

1.1. RAID Models

There are many different models of RAID but Microsoft Windows 7 uses three main models: RAID-0, RAID-1, and RAID-5. Let's take a look at each.

RAID-0 (Stripped Volume) RAID-0 has no data recoverability but it is used for better performance. With RAID-0 you can have a minimum of two hard disks, and these two disks work together as a single volume. Because the two disks work together, the disks both use their own read/write heads, giving you better performance.

The downside to RAID-0 is that if you lose either disk, you lose the entire stripped volume. RAID-0 is good for temp files or noncritical data since RAID-0 is not recoverable in the event of a hard disk failure.

RAID-1 (Mirroring) RAID-1, also known as mirroring, allows you to set up two volumes or disks that mirror each other. The advantage to mirroring is that if you lose one disk or volume, you can boot to the second disk or volume (the mirror) and recover your data. The downside to mirroring is that it is more expensive than other RAID options.

RAID-5 Volume A RAID-5 volume, which many years ago was known as a stripe set with parity, uses a minimum of 3 disks (maximum of 32 disks) that work together as one volume. The advantage to a RAID-5 volume is that the volume uses a parity bit, which allows you to recover your data in the event of a single hard disk failure.

When it comes to hardware RAID and software RAID, recoverability is night and day. Hardware RAID is much faster and easier when a hard disk fails. Many hardware RAID systems are hot-swappable, meaning that when a disk fails, you just slide it out, place a new disk in, and the RAID gets back to work.

This is not the case with software RAID, Recoverability for a single hard disk failure can take time, which in turn costs an organization money. Software RAID is set up through the Disk Management utility  and is not available unless you have multiple hard disks installed in the Windows 7 machine.

2. Using Disk Maintenance Tools

As IT professionals, part of our job is to keep our systems running the best that they can. Most of us have seen machines running very quickly when they are new, but then they start to slow down over time, even when we do not install any new software.

Microsoft Windows 7 includes a few utilities that you can run to help keep your system running efficiently. In the next sections we will discuss three of these utilities: Disk Defragment, Disk Cleanup, and Check Disk.

2.1. Using the Disk Defragmenter Utility

Data is normally stored sequentially on the disk as space is available. Fragmentation naturally occurs as users create, delete, and modify files. The access of noncontiguous dara is transparent to the user; however, when data is stored in this manner, the operating system must search through the disk to access alt the pieces of a file. This slows down data access.

Disk defragmentation rearranges the existing files so they are stored contiguously, which optimizes access to them. In Windows 7, you use the Disk Defragmenter utility to defragment your disk.

To access the Disk Defragmenter, select Start => Control Panel => System And Maintenance => Administrative Tools => Computer Management. Expand Storage and select Disk Management, right-click the drive to defragment, select the Tools tab, and then click the Defragment Now button. The Disk Defragmenter window appears (Figure 1); you can schedule when the Disk Defragmenter should run or run the Disk Defragmenter tool immediately.

Figure 1. The Disk Defragmenter window


You can also defragment disks through the command-line utility Defrag. The disk needs to have at least 15 percent free space for Defrag to run properly. You can analyze the state of the disk by using Defrag VolumeName /a.


Complete Exercise 1 to defragment your Windows 7 machine.


It is a good practice to run Disk Defragmenter at least once a week on a Windows 7 machine that is constantly being used. If the machine is not used that often, you can space out how often you defrag the machine.

In the next section we will look at another tool that is included with Windows 7—the Disk Cleanup utility.

2.2. Using the Disk Cleanup Utility

One concern that we as IT professionals face is how to conserve hard disk space for our users. Hard drives continue to get larger and larger, but so do applications. This is where the Disk Cleanup utility can help.

The Disk Cleanup utility identifies areas of disk space that can be deleted to free up hard disk space. Disk Cleanup works by identifying temporary files, Internet cache files, and unnecessary program files.

To access this utility, select Start => Control Panel => System And Maintenance => Administrative Tools => Computer Management. Right-click the drive letter and choose Properties and then Disk Cleanup. The Disk Cleanup utility then runs and calculates the amount of disk space you can free up.

Complete Exercise 2 to run the Disk Cleanup utility on the Windows 7 operating system.


Another issue that you may run into is bad sectors on your hard disk. Windows 7 also includes a utility to help you troubleshoot disk devices and volumes.

2.3. Using the Check Disk Utility

If you are having trouble with your disk devices or volumes, you can use the Windows 7 Check Disk utility. This utility detects bad sectors, attempts to fix errors in the file system, and scans for and attempts to recover bad sectors. To use Check Disk, you must be logged in as a member of the Administrators group.

File system errors can be caused by a corrupted file system or by hardware errors. If you have software errors, the Check Disk utility may help you find them. There is no way to fix hardware errors through software, however. If you have excessive hardware errors, you should replace your disk drive.

Complete Exercise 3 to run the Check Disk utility.


Another way to run the Check Disk utility is from the command line, using the command Chkdsk. Chkdsk is used to create and display a status report, which is based on the file system you are using.