Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Fix Broken RAID 1

Status
Not open for further replies.

friendspc

Technical User
Apr 3, 2006
8
CA
Issue: Trying to Fix Broken Raid 1.

I have been trying to fix this strange issue but no success yet. I want to use this thread as a discussion about how to fix it and what I am/was doing wrong.

Configuration:
CPU: Pentuim 4 3.0
MB: Asus P5GD1
RAID Controller: Intel ICHR6
HD: 2x200 GB SATA Western Digital
Partions: 2 partitions (C & D)
RAID Setup: RAID 0 (HD mirroring)
Backup: BackedUp Image of C using Drive Image XML program.

Initially system was all perfectly fine. RAID 0 was all good. One day I noticed that I was able to see 4 local disks under "my computer". Right way I realized that my RAID was broken. If RAID was ok then I should only see 2 local disks i.e. local Disk C and Local Disk D, However, I was able to see the other Hard drive's partitions as well adding 2 more local disk partitions in "my computer"

I booted my machine and open the BIOS then realized that my system was set back to standard IDE configuration instead of RAID Array. I thought fix is very simple. I changed the BIOS back to RAID setup and try to boot the machine. I got the error "missing or corrupt hal.dll" file. I searched the internet about how to fix it.

Solution was, boot from win xp cd and run recovery console and issue few commands such as "bootcfg/rebuild". Not so simple. My SATA drives were not visible, offcourse thanks to SATA drivers not being installed automatically. I managed to installed the required RAID /SATA drivers and i ran the command. When I booted the system my winxp system dir was screwed and was unable to boot. Luckily I had the backed up image so I restored the image and was able to boot but without the raid configuration.

Then I thought about the second solution. I thought I will get another IDE hard drive, Install it and restore the backed Image to this new Hard drive and boot from it. Once I have the system booted from the new drive then I can delete and recreate RAID array and restore the system back from the backed image. Guess what?? Once I restored the image on the new dirve, I could not boot from it. I guess even the boot device was set to new drive but some how the image was not designed for this new IDE drive. Strange even though backed image was created in broken RAID setup. There must be some thing which prevent this. I error i got was theat no bootable media found. Looks like even the hard drive was ok but it did not have the bootable image on it. Or Image was not the right type.

Now I ask you smart folks to help me out. I think I have explained it well, if still there is any confusion I would try to explain again. I really appreciate your time and efforts to help me solve this issue. It really bothers me that I could not find a easy solutiion to this issue. Just to add here, please keep these points in mind when proposing a solution.

1. Data is very critical.
2. I want to avoid reinstalation of OS and All applications.

Thanks again,
kuldip











 
Opps...RAID 0 above should be read as RAID 1
 
Thanks for the reply. I looked at all the links but I did not find that can help me much. My situation is very simple but I need someone who fix this type of issue before.
 
If this PC has run with the raid 1 broken as you stated for any period of time the array situation is broken.

You can backup the drive serving as the main OS drive, rebuild the array as blank and restore the backed up data to it.

rvnguy
"I know everything..I just can't remember it all
 
Thanks for the info. Now I have few questions to ask you.

I use the following schema to represent the scenario.

During good Raid, I see only:
Disk(0)/Disk(1): Localdisk/partition c and D

In Broken Raid, I see:
Disk(0): LocalDisk/partiotn c and D.
Disk(1): LocalDisk/Partition F and G.

BackedUp Image during broken Raid:
Disk(0)/LocalDisk/Partition C.


My system runs just fine but raid is broken. What software should be good to backup active drive (OS Drive)? I used the DriveImage XML (very neat application) to create the Image of the partion C on broken raid.

Now Questions:
1. How to rebuild the raid array?
2. Can I restore tha image back once the raid is ok?
3. After restore, would the system boot properly even the image I have restored/used was created during broken Raid? What i mean is, would it have all the proper boot.ini etc files?

4. If above is true then why I can not boot from IDE drive with restored image of broken Raid C partition. Error says, it could not find the boot media. I thought since my image is created during broken raid time so it might not be of the proper type to be used on single IDE drive system. As I explained above, I backed up the image, restore to an IDE hd and took out all the SATA drives and set the bios to boot from the new IDE drive. But it did not boot.

If I could have booted it then my issue would have been much easier to resolve. I also thought that there might be an issue with boot.ini file on this new IDE so I booted from WinXP CD to get to recoevery console. In half way through I got a blue screen saying my system is shutdown, check your newly installed hardware or drivers or some thing like that. My dream to run /bootcfg /rebuild was shattered.

Comment: Is it not strange that I can boot from the disk(0)/partition C alone. But when I restore this partition to a new drive I can not. I also like to add here that I even took raid mirror drive (disk 1) out, system still was able to boot from the active drive. I know mirrored drive is just sitting there to become active in case of failure, but still I thought there might be a linkage between then during boot.

I am waiting all smart folks to help me out. I know my situation is very simple and should be easy to fix without going through hassels.





 
Did a drive fail or did your raid card/component fail?

I have done this one time with a failed drive. I replaced the bad drive with a new one and entered the raid config and selected rebuild array and all was fine after that. The software copied the good image to the new drive. The bigger the image the longer thats going to take.

It sounds like you are using built in raid on a motherboard. If the raid component is bad I think you could be in for more than a simple fix.

Hope this helps a bit.
Ed
 
1. How to rebuild the raid array?
Start over just like it never existed..

2. Can I restore tha image back once the raid is ok?
This is a compliation of files that will write to the the RAID "0" array, the controller will mediate the striping.

3. After restore, would the system boot properly even the image I have restored/used was created during broken Raid? What i mean is, would it have all the proper boot.ini etc files?
I would hope that this would be the case, but you might look at these files as they are currently. By chance did you ever copy these when the array was functioning for comparison. These are editable if one knows what they should be.

Moving from SATA RAID to a single IDE is problematic as there is reference to the SATA driver interface at least in the XP registry if not else where.

As this is RAID '1' you could also attempt a rebuild if the array controller is still in charge. Diak Management shlould show a degraded array



rvnguy
"I know everything..I just can't remember it all
 
I think the system got reset to standard configuarion OR some one might have screwed the setting in BIOS. I belive all the hardware i.e Hard drive and raid controllers are ok.

I am sure RAID array is also good. Why??
You know where in BIOS, you do IDE configuration to make it RAID enable and turn SATA on. When I do that I can see the raid array through ctrl-I and it list my previous raid array.
However, In this setup I am not able to boot because of hal.dll missing error. Seems like it could not find the boot image from the raid hard drive setup.

How can I proceed further??


 
I also want to add one more point here:

My system is now in standard configuration. My IDE configuration in BIOS has raid disabled.
 
'hal' error...Opps...

Yes it sounds like some how this has been compromised.

1. pass word your BIOS

2. Read this FAQ and follow closely with all drivers available. Do the reinstall as listed sans the mobo switch. and hope that it replaces the entries in your hal list.

How to replace the motherboard on a computer that is running Windows Server 2003, Windows XP, or Windows 2000

How to perform an in-place upgrade (reinstallation) of Windows XP


rvnguy
"I know everything..I just can't remember it all
 
I think we are loosing the sight of my actual problem. I want to put my system back to raid.
How?? Don't know.
Tried different things?? Yes.
What is next?? NO idea.
 
You will have to re-enable raid in BIOS, but with the hal error & everything now pointing to IDE vs SATA is the reason I recommended a repair install to correct your HAL.

You can just try to re-enable & see if you still get the HAL error.

rvnguy
"I know everything..I just can't remember it all
 
I have tried already to enable raid in bios and booting from the right device but still get error hal.dll.

Would the repair install keep all the data and application intact?

thanks,
kuldip singh
 
If it is actually not a broken raid. but just a problem with the HAL...a repair install is the recommended course.

This is not intended to erase any programs or data files, only repair those portions of the OS that are not working.
It does this not by checking, but by replacing the OS code. You will lose certian profile settings, but this is a small price to pay.

rvnguy
"I know everything..I just can't remember it all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top