Logo
PREGNANCY
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows 7

Managing Disks : Understanding RAID & Using Disk Maintenance Tools

7/27/2011 5:41:07 PM

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.

Real World Scenario: Disk Defragmenter Issues

One issue that I have run into with Disk Defragmenter is the amount of time the process may take to complete. As a consultant, I am asked by every client to make their machine quicker. One thing I always do is run the Disk Defragmenter utility, but the problem is that most users have never run it before.

So when I run the utility, it could take hours to defrag the machine. It is important to inform your users of the importance of running this utility on a regular basis.

Make sure that all programs are closed (including antivirus software) before running the Disk Defragmenter utility. If applications are open when the Disk Defragmenter utility runs, it could cause the Disk Defragmenter utility to stop working or run even slower than normal.


Complete Exercise 1 to defragment your Windows 7 machine.

Exercise 1: Defragmenting Windows 7

  1. Start the Disk Defragmenter utility by opening Computer Management.

  2. Right-click the C: drive and choose Properties.

  3. Click the Tools tab.

  4. Click the Defragment Now button.

  5. Either schedule a defragment or click the Defragment Disk button to start the defragment immediately.


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.

Exercise 2: Running the Disk Cleanup Utility

  1. Select Start => Control Panel => System And Maintenance => Administrative Tools => Computer Management.

  2. Right-click the drive and choose Properties.

  3. On the General tab, click the Disk Cleanup button.

  4. The Disk Cleanup utility will start to calculate the system data.

  5. After the analysis is complete, you will see the Disk Cleanup dialog box listing files that are suggested for deletion and showing how much space will be gained by deleting those files. Click OK.



  6. When you are asked to confirm that you want to delete the files, click the Yes button. The Disk Cleanup utility deletes the files and automatically closes the Disk Cleanup dialog box.


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.

Exercise 3: Using the Check Disk Utility

  1. Select Start => Control Panel => System And Maintenance => Administrative Tools.

  2. Double-click Computer Management, and then expand Storage and select Disk Management.

  3. Right-click the C: drive and choose Properties.

  4. Click the Tools tab, and then click the Check Now button.

  5. In the Check Disk dialog box, you can choose one or both of the options to automatically fix file system errors and to scan for and attempt recovery of bad sectors. For this exercise, check both of the disk option check boxes. Then click the Start button.




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.

Other -----------------
- Managing Disks : Managing Data Encryption with EFS
- Microsoft Excel 2010 : Building More Powerful Worksheets - Creating Scenarios
- Microsoft Excel 2010 : Building More Powerful Worksheets - Looking at Alternatives with Data Tables
- Microsoft Excel 2010 : Building More Powerful Worksheets - Using Data Analysis Tools & Using the Euro Conversion
- Microsoft Visio 2010 : Setting Theme Options
- Microsoft Visio 2010 : Customizing Themes
- Managing Disks : Troubleshooting Disk Management & Managing Data Compression
- Managing Disks : Managing Dynamic Storage - Creating an Extended Volume
- Visual Studio 2010 : Deploying Web Applications
- Visual Studio 2010 : Deploying Smart Client Applications (part 2) - Making a Windows Installer
- Visual Studio 2010 : Deploying Smart Client Applications (part 1) - From No Touch to ClickOnce
- Microsoft Visio 2010 : Applying Themes to Your Diagrams (part 2)
- Microsoft Visio 2010 : Applying Themes to Your Diagrams (part 1)
- Microsoft Visio 2010 : Turning Off the Grid
- Managing Disks : Using the Disk Management Utility (part 2) - Understanding the Disk Management Utility
- Managing Disks : Using the Disk Management Utility (part 1) - Using the Microsoft Management Console
- Managing Disks : Configuring File Systems & Configuring Disk Storage
- Microsoft Excel 2010 : Saving and Managing a Chart Template
- Microsoft Excel 2010 : Adding and Deleting a Data Series
- Microsoft Visio 2010 : Using the Format Painter
 
 
Most view of day
- Microsoft LynServer 2013 : Windows Client - Peer-to-Peer Conversations (part 2) - Making Audio Calls, Making Video Calls
- Windows Live Services That Make Windows 7 Better (part 3) - Windows Live Photos, Windows Live Spaces, Windows Live Events
- Microsoft Exchange Server 2013 : Working with cmdlets (part 1) - Using Windows PowerShell cmdlets, Using cmdlet parameters
- Windows Phone 8 : Configuring Basic Device Settings - Passwords and Screen Timeouts (part 2) - Enabling a Password
- Windows Phone 8 : Playing Music Through the Phone (part 3) - Playing a Music Genre,Playing a Specific Artist
- Microsoft Content Management Server : The ASP.NET Stager Application (part 3) - Staging Attachments
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 1)
- Planning Deployment : Starting Deployment Workbench, Updating BDD 2007 Components
- How to Troubleshoot USB Problems : How to Solve USB Driver and Hardware Problems, Understanding USB Limitations
- Sharepoint 2013 : Managing Site Security - Create a SharePoint Group for a Site
Top 10
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Grouping shapes
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Inserting fields: the basics
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Using shape data
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Adding ScreenTips and comments
- Microsoft Visio 2013 : Adding Sophistication to Your Drawings - Positioning shape text
- Microsoft Sharepoint 2013 : Working with documents - Checking documents in and out
- Microsoft Sharepoint 2013 : Working with documents - Requiring and displaying document check out
- Microsoft Sharepoint 2013 : Working with documents - Uploading multiple documents
- Microsoft Sharepoint 2013 : Working with documents - Customizing document templates
- Microsoft Sharepoint 2013 : Working with documents - Managing documents with a document library
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro