Computing.Net > Forums > Linux > Software RAID / accidentally raidho

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Software RAID / accidentally raidho

Reply to Message Icon

Name: commando
Date: March 28, 2004 at 15:34:51 Pacific
OS: Linux
CPU/Ram: p2 128
Comment:

Software RAID / accidentally raidhotadd to wrong md

Issue summary: Had problems with 1 of a 3 drive software raid array. Harddrive is not physically bad, but the array failed today on boot. Used “raidhotadd” to get all of the raid partitions (md0 – md3) up and running with the exception of the most important partition (md4).

I accidentally tried to “raidhotadd” 2 of the 3 drives from md4 into md2. Now hdb2 and hdc2 think they are part of md2 when they actually should be part of md4. This is not reflected in /etc/raidtab but must be stored somewhere I cannot find. (superblock?)

This leaves only 1 drive in md4 and therefore md4 will not start even degraded. md4 is a RAID 5 partition, which is supposed to include hda2, hdb2, and hdc2.

I used “raidsetfaulty” to deactivate hdb2 to stop interfering with the start of md2. (because hdb2 belongs in md4 and raidhotremove refuses to get hdb2 out of md2 without deactivating the partition)

lsraid reports md0 – md3 correctly. However, typing “lsraid –A –d /dev/hdb2” or “lsraid –A –d /dev/hdc2” shows them as a member of md2 still. They should be in md4 instead.

My question #1: Did my mistake hose the data in both hdb2 and hdc2 making it impossible to recover md4 (my most critical partition containing /home) or is hdb2 and hdc2 merely confused about where they belong but still within them is my critical data making recovery of md4 possible?

My question #2: If recovery is possible, should I then “mkraid /dev/md4 –f” and hope for the best or is there a safer way to _save_ my data?

If I failed to provide any details please let me know and I will elaborate further.

Thank you.




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Software RAID / accidentally raidho

Software RAID 5 using only 3 disc www.computing.net/answers/linux/software-raid-5-using-only-3-disc/12625.html

RH 7.3 install pb with software raid www.computing.net/answers/linux/rh-73-install-pb-with-software-raid/10673.html

Red Hat 8.0 & Software Raid Problem www.computing.net/answers/linux/red-hat-80-amp-software-raid-problem/17087.html