Hi, I work at a small school as a Teacher and as IT. In reality there isn't much on site, and I have little experience with linux. As you will see this is a comedy of errors, but advice is very welcome!
We have a small server that is using raid 1 to mirror a disk incase of failure. This was setup by someone else before I came along, and I have only been learning the details now as I go.
Mistake 1: I added a script to startup to use 'redir' and didn't put an '&' at the end of the command, so on next startup it was just sitting there on startup before completing the boot. After some reading, I decided to use a live cd, mount the drive, and fix the script.
Mistake 2: I didnt know this server used software raid, and mounted hda1, not md0. I soon realised my error and re-fixed my script by mounting md0 from the live cd.
Mistake 3: The server is back up and running, but only on the one drive. hda is missing from /proc/mdstat . So being the clever newbie I am, I added /dev/hdc to the raid. However I did something completely wrong - somehow I made it sync with the corrupted hda, not the in use hdc.
Result: Now the server is sitting there, still working, but unable to log in as it can't access the disk.
Is the data corrupted? (I know from that previous experience I could grab the config files if I mount it as hda, etc)
And can it be repaired and put back into operation?
So I have done some reading and I beleive that I need to boot off a live cd, rebuild the superblocks on both drives, and then cross my fingers and reboot. Does this sound reasonble in theory? - or will that not be enough?
Thank you in advance for any advice,
David